Skip to the content.

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

Class: UnauthorizedError

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

+ new UnauthorizedError(message: string, response: Response): UnauthorizedError

Parameters

Name Type
message string
response Response

Returns: UnauthorizedError

Defined in: src/errors.ts:53

Properties

message

message: string

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


name

name: string= ‘UnauthorizedError’

Defined in: src/errors.ts:51


prepareStackTrace

Optional 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


response

response: Response

Defined in: src/errors.ts:53


stack

Optional stack: string

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


stackTraceLimit

stackTraceLimit: number

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

Methods

captureStackTrace

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