Thrown a user tries to override() a class when build() was already called.

Example

container.build(); // 'Build' was already called

container.override(IFoo, ConcreteFoo); // Error: Overrides already applied!

Hierarchy

  • Error
    • OverrideUserError

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