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
Properties
code
readonlycode:string
Defined in: packages/core/src/errors/ZerotalError.ts:18
Inherited from
status
readonlystatus:number=500
Defined in: packages/core/src/errors/ZerotalError.ts:19
Inherited from
context?
readonlyoptionalcontext?:Record<string,unknown>
Defined in: packages/core/src/errors/ZerotalError.ts:20