Files
link-free/src/utils/error.ts
T

9 lines
200 B
TypeScript
Raw Normal View History

2021-12-15 14:05:27 -03:00
export class ExceptionError extends Error {
status: number
constructor(message: string, status: number = 400) {
super(message)
this.name = 'ExceptionError'
this.status = status
}
}