lib/error.js
function ParseError(message, input) {
  Error.captureStackTrace(this, ParseError);

  this.name = this.constructor.name;
  this.message = message;
  this.input = input;
}
function ParseError(message, input) {
  Error.captureStackTrace(this, ParseError);

  this.name = this.constructor.name;
  this.message = message;
  this.input = input;
}
function ParseError ( message , input ) { Error . captureStackTrace ( this , ParseError ) ; this . name = this . constructor . name ; this . message = message ; this . input = input ; }
An error thrown by the parser on unexpected input.

@constructor
@param {string} message The error message.
@param {string} input The unexpected input.
@public
An error thrown by the parser on unexpected input .