Skip to main content
zerotal

Documentation


Documentation / zerotal / index / ContainerLockedError

Class: ContainerLockedError

Defined in: packages/core/src/errors/ContainerErrors.ts:51

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

Constructors

Constructor

new ContainerLockedError(method): ContainerLockedError

Defined in: packages/core/src/errors/ContainerErrors.ts:52

Parameters

method

string

Returns

ContainerLockedError

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