Skip to content

API Reference


API Reference / ValidationError

Class: ValidationError ​

Defined in: src/errors/ValidationError.ts:5

Extends ​

Constructors ​

Constructor ​

new ValidationError(error): ValidationError

Defined in: src/errors/ValidationError.ts:8

Parameters ​

error ​

ZodError

Returns ​

ValidationError

Overrides ​

DhanError.constructor

Properties ​

code ​

readonly code: string

Defined in: src/errors/DhanError.ts:2

Inherited from ​

DhanError.code


status? ​

readonly optional status?: number

Defined in: src/errors/DhanError.ts:3

Inherited from ​

DhanError.status


details? ​

readonly optional details?: unknown

Defined in: src/errors/DhanError.ts:4

Inherited from ​

DhanError.details


cause? ​

readonly optional cause?: unknown

Defined in: src/errors/DhanError.ts:5

Inherited from ​

DhanError.cause


issues ​

readonly issues: $ZodIssue[]

Defined in: src/errors/ValidationError.ts:6

Community project — not affiliated with Dhan. MIT License.