13 lines
270 B
JavaScript
13 lines
270 B
JavaScript
|
module.exports = class UserException extends Error {
|
||
|
/**
|
||
|
* UserException
|
||
|
* @param {String} message - Error message
|
||
|
*/
|
||
|
constructor(message) {
|
||
|
super(message);
|
||
|
|
||
|
this.httpStatusCode = 400;
|
||
|
this.name = 'UserException';
|
||
|
}
|
||
|
};
|