← Files RivetARCHIVED FILE

node_modules/forwarded-parse/lib/error.js

465 Bytes · Nov 5, 2026 · 12:09 UTC

↓ Download file

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

SHA-256: 93f40ac7cae83899bf6494ed300e3e0e564d41afef76e4a15528c7eb8405279a