Skip to main content

Class: TanqoryValidationError

Defined in: tanqory-platform-packages/packages/api/sdk/src/core/errors.ts:110

Validation Error - 422 Unprocessable Entity

Extends​

Constructors​

Constructor​

new TanqoryValidationError(message?, validationErrors?, options?): TanqoryValidationError

Defined in: tanqory-platform-packages/packages/api/sdk/src/core/errors.ts:113

Parameters​

message?​

string = 'Validation failed'

validationErrors?​

Record<string, string[]>

options?​

TanqoryErrorOptions = {}

Returns​

TanqoryValidationError

Overrides​

TanqoryAPIError.constructor

Properties​

cause?​

optional cause?: unknown

Defined in: tanqory-platform-docs/node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es2022.error.d.ts:24

Inherited from​

TanqoryAPIError.cause


code?​

readonly optional code?: string

Defined in: tanqory-platform-packages/packages/api/sdk/src/core/errors.ts:24

Inherited from​

TanqoryAPIError.code


details?​

readonly optional details?: Record<string, unknown>

Defined in: tanqory-platform-packages/packages/api/sdk/src/core/errors.ts:27

Inherited from​

TanqoryAPIError.details


headers?​

readonly optional headers?: Record<string, string>

Defined in: tanqory-platform-packages/packages/api/sdk/src/core/errors.ts:30

Inherited from​

TanqoryAPIError.headers


message​

message: string

Defined in: tanqory-platform-docs/node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1075

Inherited from​

TanqoryAPIError.message


name​

name: string

Defined in: tanqory-platform-docs/node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1074

Inherited from​

TanqoryAPIError.name


param?​

readonly optional param?: string

Defined in: tanqory-platform-packages/packages/api/sdk/src/core/errors.ts:26

Inherited from​

TanqoryAPIError.param


requestId?​

readonly optional requestId?: string

Defined in: tanqory-platform-packages/packages/api/sdk/src/core/errors.ts:28

Inherited from​

TanqoryAPIError.requestId


retryAfter?​

readonly optional retryAfter?: number

Defined in: tanqory-platform-packages/packages/api/sdk/src/core/errors.ts:29

Inherited from​

TanqoryAPIError.retryAfter


stack?​

optional stack?: string

Defined in: tanqory-platform-docs/node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1076

Inherited from​

TanqoryAPIError.stack


statusCode?​

readonly optional statusCode?: number

Defined in: tanqory-platform-packages/packages/api/sdk/src/core/errors.ts:23

Inherited from​

TanqoryAPIError.statusCode


timestamp​

readonly timestamp: Date

Defined in: tanqory-platform-packages/packages/api/sdk/src/core/errors.ts:31

Inherited from​

TanqoryAPIError.timestamp


type?​

readonly optional type?: string

Defined in: tanqory-platform-packages/packages/api/sdk/src/core/errors.ts:25

Inherited from​

TanqoryAPIError.type


validationErrors?​

readonly optional validationErrors?: Record<string, string[]>

Defined in: tanqory-platform-packages/packages/api/sdk/src/core/errors.ts:111

Methods​

toJSON()​

toJSON(): object

Defined in: tanqory-platform-packages/packages/api/sdk/src/core/errors.ts:52

Returns​

object

code​

code: string

details​

details: Record<string, unknown>

message​

message: string

name​

name: string

param​

param: string

requestId​

requestId: string

statusCode​

statusCode: number

timestamp​

timestamp: Date

type​

type: string

Inherited from​

TanqoryAPIError.toJSON