(name: string, msg: string, response: Response)
| 27 | export class ResponseFailError extends Error { |
| 28 | response: Response; |
| 29 | constructor(name: string, msg: string, response: Response) { |
| 30 | super(msg); |
| 31 | this.name = name || 'ResponseFailError'; |
| 32 | this.response = response; |
| 33 | } |
| 34 | } |
| 35 | |
| 36 | export const isApiError = (error: unknown): error is ResponseFailError => { |
nothing calls this directly
no outgoing calls
no test coverage detected