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

***

[Documentation](../../../README) / [zerotal](../../README) / [index](../README) / ContainerLockedError

# Class: ContainerLockedError

Defined in: [packages/core/src/errors/ContainerErrors.ts:51](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/core/src/errors/ContainerErrors.ts#L51)

Raised when application code tries to register a binding through the `App`
facade after `Application.boot()` has completed.

The container is process-global and shared across every concurrent request,
so mutating it at request time would leak state between requests. Register
bindings at boot — in the bootstrap `App.bind()` callback, a `ServiceProvider`,
the `app/services` convention, or top-of-module code — and use a `scoped`
binding for anything that must be per-request.

## Extends

- [`ZerotalError`](ZerotalError)

## Constructors

### Constructor

> **new ContainerLockedError**(`method`): `ContainerLockedError`

Defined in: [packages/core/src/errors/ContainerErrors.ts:52](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/core/src/errors/ContainerErrors.ts#L52)

#### Parameters

##### method

`string`

#### Returns

`ContainerLockedError`

#### Overrides

[`ZerotalError`](ZerotalError).[`constructor`](ZerotalError#constructor)

## Properties

### code

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

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

#### Inherited from

[`ZerotalError`](ZerotalError).[`code`](ZerotalError#code)

***

### status

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

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

#### Inherited from

[`ZerotalError`](ZerotalError).[`status`](ZerotalError#status)

***

### context?

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

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

#### Inherited from

[`ZerotalError`](ZerotalError).[`context`](ZerotalError#context)
