Skip to main content
zerotal

Documentation


Documentation / zerotal / client / CircuitBreakerOpenError

Class: CircuitBreakerOpenError

Defined in: packages/client/src/CircuitBreaker.ts:30

Base class for all framework errors.

Param

code

Stable machine-readable identifier (e.g. E_BINDING_NOT_FOUND), safe to switch on; unlike the message, it is not meant to change.

Param

status

HTTP status to respond with when this error reaches the handler.

Param

context

Structured detail attached to logs and error pages.

Extends

Constructors

Constructor

new CircuitBreakerOpenError(): CircuitBreakerOpenError

Defined in: packages/client/src/CircuitBreaker.ts:31

Returns

CircuitBreakerOpenError

Overrides

ZerotalError.constructor

Properties

code

readonly code: string

Defined in: packages/core/src/errors/ZerotalError.ts:18

Inherited from

ZerotalError.code


status

readonly status: number = 500

Defined in: packages/core/src/errors/ZerotalError.ts:19

Inherited from

ZerotalError.status


context?

readonly optional context?: Record<string, unknown>

Defined in: packages/core/src/errors/ZerotalError.ts:20

Inherited from

ZerotalError.context