2014-05-08 11:48:56 +02:00
|
|
|
var classes = require("./utils/classes");
|
2012-11-10 09:47:22 +01:00
|
|
|
|
|
|
|
/* Thrown when the grammar contains an error. */
|
2014-05-04 14:11:44 +02:00
|
|
|
function GrammarError(message) {
|
2012-11-10 09:47:22 +01:00
|
|
|
this.name = "GrammarError";
|
|
|
|
this.message = message;
|
2014-05-04 14:11:44 +02:00
|
|
|
}
|
2012-11-10 09:47:22 +01:00
|
|
|
|
2014-05-08 11:48:56 +02:00
|
|
|
classes.subclass(GrammarError, Error);
|
2014-05-04 14:11:44 +02:00
|
|
|
|
|
|
|
module.exports = GrammarError;
|