salix/front/core/lib/user-error.js

11 lines
297 B
JavaScript
Raw Permalink Normal View History

/**
* Errors that can be visible and understood by the end user.
* Used mainly in the global error handler.
*/
export default class UserError extends Error {
constructor(message, fileName, lineNumber) {
super(message, fileName, lineNumber);
this.name = 'UserError';
}
}