lib/errors.js
function ParseError(msg) {
  this.name = 'ParseError';
  this.message = msg;
  if (Error.captureStackTrace) {
    Error.captureStackTrace(this, ParseError);
  }
}
function ParseError(msg) {
  this.name = 'ParseError';
  this.message = msg;
  if (Error.captureStackTrace) {
    Error.captureStackTrace(this, ParseError);
  }
}
function ParseError ( msg ) { this . name = 'ParseError' ; this . message = msg ; if ( Error . captureStackTrace ) { Error . captureStackTrace ( this , ParseError ) ; } }
Initialize a new `ParseError` with the given `msg`.

@param {String} msg
@api private
Initialize a new ParseError with the given msg .