| 21 | |
| 22 | /** A GitHub REST API error response. */ |
| 23 | export class ApiError extends Error { |
| 24 | constructor(readonly status: number, method: string, path: string, message: string, readonly retryAfterMs?: number) { |
| 25 | super(`GitHub ${method} ${path}: HTTP ${status}: ${message}`); |
| 26 | } |
nothing calls this directly
no outgoing calls
no test coverage detected