mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
10 lines
236 B
JavaScript
10 lines
236 B
JavaScript
import CustomError from './customError';
|
|
|
|
export class NotAuthorized extends CustomError {
|
|
constructor (customMessage) {
|
|
super();
|
|
this.name = this.constructor.name;
|
|
this.message = customMessage || 'Not authorized.';
|
|
}
|
|
}
|