Thrown when a user tries to get() an instance from the container, before calling build().

Example

container.register(Foo);

// container.build(); // Should be called here

container.get(Foo); // Error: Container not ready!

Hierarchy

  • Error
    • ContainerNotReadyError

Properties

prepareStackTrace?: ((err, stackTraces) => any)

Optional override for formatting stack traces

Type declaration

stackTraceLimit: number
cause?: unknown
name: string
message: string
stack?: string

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Generated using TypeDoc