mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 07:07:35 +01:00
9 lines
232 B
JavaScript
9 lines
232 B
JavaScript
// Base class for custom application errors
|
|
// It extends Error and capture the stack trace
|
|
export default class CustomError extends Error {
|
|
constructor () {
|
|
super();
|
|
Error.captureStackTrace(this, this.constructor);
|
|
}
|
|
}
|