Your IP : 216.73.216.40


Current Path : /var/www/html/test/wetty2/node_modules/pegjs/lib/
Upload File :
Current File : /var/www/html/test/wetty2/node_modules/pegjs/lib/grammar-error.js

"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;