Public Access
latest changes before server transfer
Deploy to Firebase Hosting on merge / build_and_deploy (push) Has been cancelled
Deploy to Firebase Hosting on merge / build_and_deploy (push) Has been cancelled
This commit is contained in:
1 parent
bb60182164
commit
d0e8d36c33
1273 files changed
+143295
-1312
No files matched your search
+20
@@ -0,0 +1,20 @@
|
||||
/**
|
||||
* `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;
|
||||
Reference in new issue
Block a user