Skip to content
Last updated

PERS SDK - v2.3.26 / Exports / AuthenticationError

Class: AuthenticationError

API error with backend StructuredError details

Hierarchy

Table of contents

Constructors

Properties

Constructors

constructor

• new AuthenticationError(message, endpoint, method, backendError?): AuthenticationError

Parameters

NameType
messagestring
endpointstring
methodstring
backendError?Partial<StructuredError>

Returns

AuthenticationError

Overrides

PersApiError.constructor

Defined in

core/errors/index.ts:273

Properties

code

• Readonly code: CommonErrorCode

Inherited from

PersApiError.code

Defined in

core/errors/index.ts:239


domain

• Readonly domain: ErrorDomain

Inherited from

PersApiError.domain

Defined in

core/errors/index.ts:240


category

• Readonly category: ErrorCategory

Inherited from

PersApiError.category

Defined in

core/errors/index.ts:241


retryable

• Readonly retryable: boolean

Inherited from

PersApiError.retryable

Defined in

core/errors/index.ts:242


message

• Readonly message: string

Inherited from

PersApiError.message

Defined in

core/errors/index.ts:243


status

• Readonly status: number

Inherited from

PersApiError.status

Defined in

core/errors/index.ts:244


title

• Readonly title: string

Inherited from

PersApiError.title

Defined in

core/errors/index.ts:245


detail

• Readonly detail: string

Inherited from

PersApiError.detail

Defined in

core/errors/index.ts:246


details

• Optional Readonly details: Record<string, unknown>

Inherited from

PersApiError.details

Defined in

core/errors/index.ts:247


endpoint

• endpoint: string

Inherited from

PersApiError.endpoint

Defined in

core/errors/index.ts:251


method

• method: string

Inherited from

PersApiError.method

Defined in

core/errors/index.ts:252