Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
24 lines
465 B
Plaintext
24 lines
465 B
Plaintext
'use strict';
|
|
|
|
var util = require('util');
|
|
|
|
/**
|
|
* An error thrown by the parser on unexpected input.
|
|
*
|
|
* @constructor
|
|
* @param {string} message The error message.
|
|
* @param {string} input The unexpected input.
|
|
* @public
|
|
*/
|
|
function ParseError(message, input) {
|
|
Error.captureStackTrace(this, ParseError);
|
|
|
|
this.name = this.constructor.name;
|
|
this.message = message;
|
|
this.input = input;
|
|
}
|
|
|
|
util.inherits(ParseError, Error);
|
|
|
|
module.exports = ParseError;
|