forked from ddrilling/asb_cloud_front
12 lines
221 B
TypeScript
12 lines
221 B
TypeScript
export class ErrorFetch extends Error {
|
|
public status: number
|
|
|
|
constructor(status: number, message?: string) {
|
|
super(message)
|
|
this.name = 'ErrorFetch'
|
|
this.status = status
|
|
}
|
|
}
|
|
|
|
export default ErrorFetch
|