UNPKG

contentfully

Version:

A simple but performant REST client for Contentful.

21 lines (12 loc) 488 B
import {Class} from "type-fest"; import {ContentfulError} from "./ContentfulError"; export class RateLimitError extends ContentfulError<RateLimitError> { public readonly waitTime: number; constructor(message: string, waitTime: number); constructor(message: string, waitTime: number, ErrorType?: Class<Error>) { // call base super(message, ErrorType || RateLimitError); // initialize instance variables this.waitTime = waitTime; } }