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

10 lines
200 B
TypeScript

export class ExceptionError extends Error {
status: number
constructor(message: string, status: number = 400) {
super(message)
this.name = 'ExceptionError'
this.status = status
}
}