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
opal-0.9.0.beta2 stdlib/nodejs/node_modules/js-yaml/lib/js-yaml/exception.js
opal-0.9.0.beta1 stdlib/nodejs/node_modules/js-yaml/lib/js-yaml/exception.js
opal-0.8.1 stdlib/nodejs/node_modules/js-yaml/lib/js-yaml/exception.js
opal-0.8.1.rc1 stdlib/nodejs/node_modules/js-yaml/lib/js-yaml/exception.js
opal-wedge-0.9.0.dev stdlib/nodejs/node_modules/js-yaml/lib/js-yaml/exception.js
opal-0.8.0 stdlib/nodejs/node_modules/js-yaml/lib/js-yaml/exception.js
opal-0.8.0.rc3 stdlib/nodejs/node_modules/js-yaml/lib/js-yaml/exception.js
opal-0.8.0.rc2 stdlib/nodejs/node_modules/js-yaml/lib/js-yaml/exception.js
opal-0.8.0.rc1 stdlib/nodejs/node_modules/js-yaml/lib/js-yaml/exception.js
opal-0.8.0.beta1 stdlib/nodejs/node_modules/js-yaml/lib/js-yaml/exception.js
opal-0.7.2 stdlib/nodejs/node_modules/js-yaml/lib/js-yaml/exception.js
entangled-0.0.16 spec/dummy/public/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/exception.js
entangled-0.0.16 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.16 spec/dummy/public/node_modules/bower/node_modules/insight/node_modules/configstore/node_modules/js-yaml/lib/js-yaml/exception.js
entangled-0.0.15 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.15 spec/dummy/public/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/exception.js
entangled-0.0.15 spec/dummy/public/node_modules/bower/node_modules/insight/node_modules/configstore/node_modules/js-yaml/lib/js-yaml/exception.js
entangled-0.0.14 spec/dummy/public/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/exception.js
entangled-0.0.14 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.14 spec/dummy/public/node_modules/bower/node_modules/insight/node_modules/configstore/node_modules/js-yaml/lib/js-yaml/exception.js