Hierarchy (view full)

Constructors

  • Parameters

    • body: {
          error?: {
              code: "TooManyRequests";
              message: string;
          };
      }
      • Optional error?: {
            code: "TooManyRequests";
            message: string;
        }
        • code: "TooManyRequests"

          Description

          Error code: * TooManyRequests - The request is throttled.

          Example

          TooManyRequests
          @enum {string}
        • message: string

          Example

          request throttled
          
    • response: Response

    Returns CommonError429

Properties

cause?: unknown
errorCode: string
message: string
name: string
response: Response
responseBody: {
    error?: {
        code: "TooManyRequests";
        message: string;
    };
}

Type declaration

  • Optional error?: {
        code: "TooManyRequests";
        message: string;
    }
    • code: "TooManyRequests"

      Description

      Error code: * TooManyRequests - The request is throttled.

      Example

      TooManyRequests
      @enum {string}
    • message: string

      Example

      request throttled
      
retryAfter: number = 0
stack?: string
statusCode: 429
prepareStackTrace?: ((err, stackTraces) => any)

Optional override for formatting stack traces

Type declaration

    • (err, stackTraces): any
    • Parameters

      • err: Error
      • stackTraces: CallSite[]

      Returns any

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void