| 104 | } |
| 105 | |
| 106 | export class APIConnectionError extends APIError { |
| 107 | override readonly status: undefined = undefined; |
| 108 | |
| 109 | constructor({message, cause}: {message?: string; cause?: Error}) { |
| 110 | super(undefined, undefined, message || 'Connection error.', undefined); |
| 111 | if (cause) (this as Error).cause = cause; |
| 112 | } |
| 113 | } |
| 114 | |
| 115 | export class APIConnectionTimeoutError extends APIConnectionError { |
| 116 | constructor({message}: {message?: string} = {}) { |
nothing calls this directly
no outgoing calls
no test coverage detected