passport-eve-oauth2
Version:
EVE Online ESI (OAuth 2.0) authentication strategy for Passport.
23 lines (19 loc) • 427 B
JavaScript
/**
* `EsiError` error.
*
* @constructor
* @param {string} [message]
* @param {string} [code]
* @access public
*/
function EsiError(message, code) {
Error.call(this);
Error.captureStackTrace(this, arguments.callee);
this.name = 'EsiError';
this.message = message;
this.code = code;
}
// Inherit from `Error`.
EsiError.prototype.__proto__ = Error.prototype;
// Expose constructor.
module.exports = EsiError;