You've already forked openaccounting-web
forked from cybercinch/openaccounting-web
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);
|
|
}
|
|
} |