Files
openaccounting-web/src/app/shared/error.ts
Patrick Nagurny 5ff09d328d initial commit
2018-10-19 11:28:08 -04:00

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);
}
}