UNPKG

passport-37signals

Version:

37signals authentication strategy for Passport.

26 lines (22 loc) 408 B
/** * `APIError` error. * * @constructor * @param {String} [message] * @api 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 `APIError`. */ module.exports = APIError;