Skip to content
Last updated

PERS SDK - v2.3.26 / Exports / PersApiError

Class: PersApiError

API error with backend StructuredError details

Hierarchy

Implements

  • StructuredError

Table of contents

Constructors

Properties

Constructors

constructor

• new PersApiError(message, endpoint, method, statusCode?, backendError?): PersApiError

Parameters

NameType
messagestring
endpointstring
methodstring
statusCode?number
backendError?Partial<StructuredError>

Returns

PersApiError

Overrides

Error.constructor

Defined in

core/errors/index.ts:249

Properties

code

• Readonly code: CommonErrorCode

Implementation of

StructuredError.code

Defined in

core/errors/index.ts:239


domain

• Readonly domain: ErrorDomain

Implementation of

StructuredError.domain

Defined in

core/errors/index.ts:240


category

• Readonly category: ErrorCategory

Implementation of

StructuredError.category

Defined in

core/errors/index.ts:241


retryable

• Readonly retryable: boolean

Implementation of

StructuredError.retryable

Defined in

core/errors/index.ts:242


message

• Readonly message: string

Implementation of

StructuredError.message

Overrides

Error.message

Defined in

core/errors/index.ts:243


status

• Readonly status: number

Implementation of

StructuredError.status

Defined in

core/errors/index.ts:244


title

• Readonly title: string

Implementation of

StructuredError.title

Defined in

core/errors/index.ts:245


detail

• Readonly detail: string

Implementation of

StructuredError.detail

Defined in

core/errors/index.ts:246


details

• Optional Readonly details: Record<string, unknown>

Implementation of

StructuredError.details

Defined in

core/errors/index.ts:247


endpoint

• endpoint: string

Defined in

core/errors/index.ts:251


method

• method: string

Defined in

core/errors/index.ts:252