GT2/GT2-iOS/node_modules/pegjs/lib/grammar-error.js

19 lines
417 B
JavaScript
Raw Normal View History

2018-02-12 17:26:06 +00:00
"use strict";
var classes = require("./utils/classes");
/* Thrown when the grammar contains an error. */
function GrammarError(message, location) {
this.name = "GrammarError";
this.message = message;
this.location = location;
if (typeof Error.captureStackTrace === "function") {
Error.captureStackTrace(this, GrammarError);
}
}
classes.subclass(GrammarError, Error);
module.exports = GrammarError;