salix/print/lib/exceptions/userException.js

13 lines
270 B
JavaScript
Raw Normal View History

2019-01-22 08:55:35 +00:00
module.exports = class UserException extends Error {
/**
* UserException
* @param {String} message - Error message
*/
constructor(message) {
super(message);
this.httpStatusCode = 400;
this.name = 'UserException';
}
};