Sha256: 046933f0521b72552740d491989a6e582d685c2f10470df15b97e3d3ba880a32

Contents?: true

Size: 454 Bytes

Versions: 56

Compression:

Stored size: 454 Bytes

Contents

'use strict';


function YAMLException(reason, mark) {
  this.name    = 'YAMLException';
  this.reason  = reason;
  this.mark    = mark;
  this.message = this.toString(false);
}


YAMLException.prototype.toString = function toString(compact) {
  var result;

  result = 'JS-YAML: ' + (this.reason || '(unknown reason)');

  if (!compact && this.mark) {
    result += ' ' + this.mark.toString();
  }

  return result;
};


module.exports = YAMLException;

Version data entries

56 entries across 42 versions & 5 rubygems

Version Path
entangled-0.0.13 spec/dummy/public/node_modules/bower/node_modules/insight/node_modules/configstore/node_modules/js-yaml/lib/js-yaml/exception.js
entangled-0.0.13 spec/dummy/public/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/exception.js
entangled-0.0.13 spec/dummy/public/node_modules/bower/node_modules/update-notifier/node_modules/configstore/node_modules/js-yaml/lib/js-yaml/exception.js
entangled-0.0.12 spec/dummy/public/node_modules/bower/node_modules/update-notifier/node_modules/configstore/node_modules/js-yaml/lib/js-yaml/exception.js
entangled-0.0.12 spec/dummy/public/node_modules/bower/node_modules/insight/node_modules/configstore/node_modules/js-yaml/lib/js-yaml/exception.js
entangled-0.0.12 spec/dummy/public/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/exception.js
entangled-0.0.11 spec/dummy/public/node_modules/bower/node_modules/update-notifier/node_modules/configstore/node_modules/js-yaml/lib/js-yaml/exception.js
entangled-0.0.11 spec/dummy/public/node_modules/bower/node_modules/insight/node_modules/configstore/node_modules/js-yaml/lib/js-yaml/exception.js
entangled-0.0.11 spec/dummy/public/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/exception.js
entangled-0.0.10 spec/dummy/public/node_modules/bower/node_modules/insight/node_modules/configstore/node_modules/js-yaml/lib/js-yaml/exception.js
entangled-0.0.10 spec/dummy/public/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/exception.js
entangled-0.0.10 spec/dummy/public/node_modules/bower/node_modules/update-notifier/node_modules/configstore/node_modules/js-yaml/lib/js-yaml/exception.js
opal-0.7.1 stdlib/nodejs/node_modules/js-yaml/lib/js-yaml/exception.js
trans-0.5.10 template/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/exception.js
trans-0.5.9 template/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/exception.js
cssesc-source-0.1.0 vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/exception.js