Files
habitica/common/script/api-v3/errors.js
2016-03-03 00:16:28 +01:00

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.';
}
}