/
dimamir
/
passport
Обзор
Документация
Войти
/
dimamir
/
passport
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
lib/errors/authenticationerror.js
20 строк
438 B
Jared Hanson
Simplify JSDoc of AuthenticationError.
01 апр 2016, 03:51
01 апр 2016, 03:51
6bc59cb
Код
Авторство
О чём код?
/** * `AuthenticationError` error. * * @constructor * @api private */ function AuthenticationError(message, status) { Error.call(this); Error.captureStackTrace(this, arguments.callee); this.name = 'AuthenticationError'; this.message = message; this.status = status || 401; } // Inherit from `Error`. AuthenticationError.prototype.__proto__ = Error.prototype; // Expose constructor. module.exports = AuthenticationError;