Skip to content
Myr

TimeoutError.ts

This file

Path

source/errors/TimeoutError.ts

9 lines · 193 bytes · TypeScript

Last changed by

Minor tweaksSindre Sorhusbefore adoption453846e

History of this file

Take it

Move to TypeScript (#330)Olivier Louvignesbefore adoption2d8d68a

lines 1–2why, one step back
1export class TimeoutError extends Error {
2 public request: Request;

Minor tweaksSindre Sorhusbefore adoption453846e

line 3why, one step back
3

Move to TypeScript (#330)Olivier Louvignesbefore adoption2d8d68a

lines 4–9why, one step back
4 constructor(request: Request) {
5 super('Request timed out');6 this.name = 'TimeoutError';7 this.request = request;8 }9}