| 87 | } |
| 88 | |
| 89 | export class HttpError extends Error { |
| 90 | status: number; |
| 91 | url: string; |
| 92 | constructor(status: number, url: string, message: string) { |
| 93 | super(message); |
| 94 | this.status = status; |
| 95 | this.url = url; |
| 96 | } |
| 97 | } |
| 98 | |
| 99 | const sleep = (ms: number) => new Promise((r) => setTimeout(r, ms)); |
| 100 |
nothing calls this directly
no outgoing calls
no test coverage detected