12 lines
195 B
JavaScript
12 lines
195 B
JavaScript
|
|
'use strict';
|
||
|
|
|
||
|
|
class AuthError extends Error {
|
||
|
|
constructor() {
|
||
|
|
super('Authorization required');
|
||
|
|
this.name = 'AuthError';
|
||
|
|
this.isAuthError = true;
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
module.exports = AuthError;
|