UNPKG

passport-shogi

Version:

Lishogi authentication strategy for Passport.

23 lines (19 loc) 422 B
/** * `APIError` error. * * @constructor * @param {string} [message] * @param {number} [code] * @access public */ function APIError(message) { Error.call(this); Error.captureStackTrace(this, arguments.callee); this.name = 'APIError'; this.message = message; this.status = 500; } // Inherit from `Error`. APIError.prototype.__proto__ = Error.prototype; // Expose constructor. module.exports = APIError;