Skip to the content.

@goodwaygroup/lib-tradedesk - v1.3.1 / RateLimitError

Class: RateLimitError

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

+ new RateLimitError(message: string, attempts: number, response: Response): RateLimitError

Parameters

Name Type
message string
attempts number
response Response

Returns: RateLimitError

Defined in: src/errors.ts:8

Properties

attempts

attempts: number

Defined in: src/errors.ts:6


message

message: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:974


name

name: string= ‘RateLimitError’

Defined in: src/errors.ts:4


response

response: Response

Defined in: src/errors.ts:8


stack

Optional stack: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:975


prepareStackTrace

Optional Static prepareStackTrace: (err: Error, stackTraces: CallSite[]) => any

Optional override for formatting stack traces

see https://github.com/v8/v8/wiki/Stack%20Trace%20API#customizing-stack-traces

Type declaration

▸ (err: Error, stackTraces: CallSite[]): any

Parameters

Name Type
err Error
stackTraces CallSite[]

Returns: any

Defined in: node_modules/@types/node/globals.d.ts:11


stackTraceLimit

Static stackTraceLimit: number

Defined in: node_modules/@types/node/globals.d.ts:13

Methods

captureStackTrace

Static captureStackTrace(targetObject: object, constructorOpt?: Function): void

Create .stack property on a target object

Parameters

Name Type
targetObject object
constructorOpt? Function

Returns: void

Defined in: node_modules/@types/node/globals.d.ts:4