(
status: TStatus,
error: TError,
message: string | undefined,
headers: THeaders,
)
| 13 | status?: string; |
| 14 | } |
| 15 | |
| 16 | export interface GoogleCalendarError { |
| 17 | error: GoogleCalendarErrorBody; |
| 18 | } |
| 19 | |
| 20 | export class APIError< |
| 21 | TStatus extends number | undefined = number | undefined, |
| 22 | THeaders extends Headers | undefined = Headers | undefined, |
| 23 | TError extends GoogleCalendarError | undefined = |
| 24 | | GoogleCalendarError |
| 25 | | undefined, |
| 26 | > extends Error { |
| 27 | /** HTTP status for the response that caused the error */ |
| 28 | readonly status: TStatus; |
nothing calls this directly
no test coverage detected