11 lines
297 B
JavaScript
11 lines
297 B
JavaScript
|
/**
|
||
|
* 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';
|
||
|
}
|
||
|
}
|