Skip to content

API Reference


API Reference / CircuitOpenError

Class: CircuitOpenError ​

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

Extends ​

Constructors ​

Constructor ​

new CircuitOpenError(message?, cause?): CircuitOpenError

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

Parameters ​

message? ​

string = "Circuit breaker open: too many recent failures"

cause? ​

unknown

Returns ​

CircuitOpenError

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

Community project — not affiliated with Dhan. MIT License.