4 function YAMLException(reason, mark) {
5 this.name = 'YAMLException';
8 this.message = this.toString(false);
12 YAMLException.prototype.toString = function toString(compact) {
15 result = 'JS-YAML: ' + (this.reason || '(unknown reason)');
17 if (!compact && this.mark) {
18 result += ' ' + this.mark.toString();
25 module.exports = YAMLException;