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.10.6 stdlib/nodejs/node_modules/js-yaml/lib/js-yaml/exception.js
opal-0.10.6.beta stdlib/nodejs/node_modules/js-yaml/lib/js-yaml/exception.js
opal-0.10.5 stdlib/nodejs/node_modules/js-yaml/lib/js-yaml/exception.js
opal-0.10.4 stdlib/nodejs/node_modules/js-yaml/lib/js-yaml/exception.js
opal-0.10.3 stdlib/nodejs/node_modules/js-yaml/lib/js-yaml/exception.js
opal-0.10.2 stdlib/nodejs/node_modules/js-yaml/lib/js-yaml/exception.js
opal-0.10.1 stdlib/nodejs/node_modules/js-yaml/lib/js-yaml/exception.js
opal-0.10.0 stdlib/nodejs/node_modules/js-yaml/lib/js-yaml/exception.js
opal-0.10.0.rc2 stdlib/nodejs/node_modules/js-yaml/lib/js-yaml/exception.js
opal-0.9.4 stdlib/nodejs/node_modules/js-yaml/lib/js-yaml/exception.js
opal-0.9.3 stdlib/nodejs/node_modules/js-yaml/lib/js-yaml/exception.js
opal-0.10.0.rc1 stdlib/nodejs/node_modules/js-yaml/lib/js-yaml/exception.js
opal-0.10.0.beta5 stdlib/nodejs/node_modules/js-yaml/lib/js-yaml/exception.js
opal-0.10.0.beta4 stdlib/nodejs/node_modules/js-yaml/lib/js-yaml/exception.js
opal-0.10.0.beta3 stdlib/nodejs/node_modules/js-yaml/lib/js-yaml/exception.js
opal-0.10.0.beta2 stdlib/nodejs/node_modules/js-yaml/lib/js-yaml/exception.js
opal-0.10.0.beta1 stdlib/nodejs/node_modules/js-yaml/lib/js-yaml/exception.js
opal-0.9.2 stdlib/nodejs/node_modules/js-yaml/lib/js-yaml/exception.js
opal-0.9.0 stdlib/nodejs/node_modules/js-yaml/lib/js-yaml/exception.js
opal-0.9.0.rc1 stdlib/nodejs/node_modules/js-yaml/lib/js-yaml/exception.js