mirror of
https://github.com/danbulant/ester_os
synced 2026-05-19 04:08:44 +00:00
Base error class
This commit is contained in:
parent
ed56908271
commit
cd0d4db830
1 changed files with 8 additions and 0 deletions
8
client/src/errors/error.ts
Normal file
8
client/src/errors/error.ts
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
class BaseError extends Error {
|
||||
constructor(m: string) {
|
||||
super(m);
|
||||
Object.setPrototypeOf(this, BaseError.prototype);
|
||||
}
|
||||
}
|
||||
|
||||
export default BaseError;
|
||||
Loading…
Reference in a new issue