Skip to main content

Class: OAuth2Error

Extends​

Constructors​

new OAuth2Error()​

new OAuth2Error(error, description?, uri?): OAuth2Error

Parameters​

• error: string | OAuth2ErrorResponse

• description?: string

• uri?: string

Returns​

OAuth2Error

Overrides​

AuthSdkError.constructor

Properties​

prepareStackTrace()?​

static optional prepareStackTrace: (err, stackTraces) => any

Optional override for formatting stack traces

Parameters​

• err: Error

• stackTraces: CallSite[]

Returns​

any

See​

https://v8.dev/docs/stack-trace-api#customizing-stack-traces

Inherited from​

AuthSdkError.prepareStackTrace


stackTraceLimit​

static stackTraceLimit: number

Inherited from​

AuthSdkError.stackTraceLimit


name​

name: string

Inherited from​

AuthSdkError.name


message​

message: string

Inherited from​

AuthSdkError.message


stack?​

optional stack: string

Inherited from​

AuthSdkError.stack


description?​

optional description: string


uri?​

optional uri: string

Accessors​

error​

get error(): string

Returns​

string

Methods​

captureStackTrace()​

static captureStackTrace(targetObject, constructorOpt?): void

Create .stack property on a target object

Parameters​

• targetObject: object

• constructorOpt?: Function

Returns​

void

Inherited from​

AuthSdkError.captureStackTrace