You've already forked openaccounting-web
mirror of
https://github.com/openaccounting/oa-web.git
synced 2025-12-11 21:20:40 +13:00
initial commit
This commit is contained in:
8
src/app/shared/error.ts
Normal file
8
src/app/shared/error.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
export class AppError extends Error {
|
||||
constructor(m: string, public code?: number) {
|
||||
super(m);
|
||||
|
||||
// Set the prototype explicitly.
|
||||
Object.setPrototypeOf(this, AppError.prototype);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user