[**Documentation**](../../../../README)

***

[Documentation](../../../../README) / [@zerotal/client](../../README) / [index](../README) / CircuitBreakerOpenError

# Class: CircuitBreakerOpenError

Defined in: [client/src/CircuitBreaker.ts:30](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/client/src/CircuitBreaker.ts#L30)

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

- [`ZerotalError`](../../../core/index/classes/ZerotalError)

## Constructors

### Constructor

> **new CircuitBreakerOpenError**(): `CircuitBreakerOpenError`

Defined in: [client/src/CircuitBreaker.ts:31](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/client/src/CircuitBreaker.ts#L31)

#### Returns

`CircuitBreakerOpenError`

#### Overrides

[`ZerotalError`](../../../core/index/classes/ZerotalError).[`constructor`](../../../core/index/classes/ZerotalError#constructor)

## Properties

### code

> `readonly` **code**: `string`

Defined in: [core/src/errors/ZerotalError.ts:18](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/core/src/errors/ZerotalError.ts#L18)

#### Inherited from

[`ZerotalError`](../../../core/index/classes/ZerotalError).[`code`](../../../core/index/classes/ZerotalError#code)

***

### status

> `readonly` **status**: `number` = `500`

Defined in: [core/src/errors/ZerotalError.ts:19](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/core/src/errors/ZerotalError.ts#L19)

#### Inherited from

[`ZerotalError`](../../../core/index/classes/ZerotalError).[`status`](../../../core/index/classes/ZerotalError#status)

***

### context?

> `readonly` `optional` **context?**: `Record`\<`string`, `unknown`\>

Defined in: [core/src/errors/ZerotalError.ts:20](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/core/src/errors/ZerotalError.ts#L20)

#### Inherited from

[`ZerotalError`](../../../core/index/classes/ZerotalError).[`context`](../../../core/index/classes/ZerotalError#context)
