TimeoutError.ts
This file
Path
source/errors/TimeoutError.ts
9 lines · 193 bytes · TypeScript
Last changed by
Minor tweaksSindre Sorhusbefore adoption453846e
History of this fileTake it
Move to TypeScript (#330)Olivier Louvignesbefore adoption2d8d68a
lines 1–2why, one step back1export class TimeoutError extends Error {2 public request: Request;Minor tweaksSindre Sorhusbefore adoption453846e
line 3why, one step back3Move to TypeScript (#330)Olivier Louvignesbefore adoption2d8d68a
lines 4–9why, one step back4 constructor(request: Request) {5 super('Request timed out');6 this.name = 'TimeoutError';7 this.request = request;8 }9}