Files
openaccounting-web/src/app/shared/error.ts

8 lines
191 B
TypeScript
Raw Normal View History

2018-10-19 11:28:08 -04:00
export class AppError extends Error {
constructor(m: string, public code?: number) {
super(m);
// Set the prototype explicitly.
Object.setPrototypeOf(this, AppError.prototype);
}
}