mirror of
https://github.com/dsoaress/link-free.git
synced 2026-11-21 19:08:33 +00:00
10 lines
200 B
TypeScript
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
|
|
}
|
|
}
|