You've already forked openaccounting-web
mirror of
https://github.com/openaccounting/oa-web.git
synced 2025-12-09 09:01:24 +13:00
8 lines
191 B
TypeScript
8 lines
191 B
TypeScript
export class AppError extends Error {
|
|
constructor(m: string, public code?: number) {
|
|
super(m);
|
|
|
|
// Set the prototype explicitly.
|
|
Object.setPrototypeOf(this, AppError.prototype);
|
|
}
|
|
} |