Thrown when a service requires itself as a dependency (prevents infinite loops).

Example

container.register(Foo, [Foo, Bar]); // Error: Cyclical dependency for 'Foo'

Hierarchy

  • Error
    • CyclicalDependencyError

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