(message: string, resetSeconds: number)
| 29 | resetSeconds: number; |
| 30 | |
| 31 | constructor(message: string, resetSeconds: number) { |
| 32 | super(message); |
| 33 | if (resetSeconds < 0) { |
| 34 | this.resetSeconds = 1; |
| 35 | } else if (resetSeconds > 60 * 60) { |
| 36 | this.resetSeconds = 60 * 60; |
| 37 | } else { |
| 38 | this.resetSeconds = resetSeconds; |
| 39 | } |
| 40 | } |
| 41 | } |
| 42 | |
| 43 | async function parseJsonResponse(response: Response) { |
nothing calls this directly
no outgoing calls
no test coverage detected