asb_cloud_front/src/components/ErrorFetch.ts

12 lines
221 B
TypeScript
Raw Normal View History

2021-10-11 13:41:54 +05:00
export class ErrorFetch extends Error {
public status: number
constructor(status: number, message?: string) {
super(message)
this.name = 'ErrorFetch'
2021-10-11 13:41:54 +05:00
this.status = status
}
}
export default ErrorFetch