Documents injecute 1.x · Migrating from 0.x
Skip to content

Class: CircularDependencyError ​

Defined in: src/errors.ts:76

Thrown when services depend on each other in a cycle; path is the cycle.

Extends ​

Constructors ​

Constructor ​

new CircularDependencyError(cycle): CircularDependencyError

Defined in: src/errors.ts:80

Parameters ​

cycle ​

readonly ServiceKey[]

Returns ​

CircularDependencyError

Overrides ​

InjecuteError.constructor

Properties ​

cause? ​

optional cause?: unknown

Defined in: node_modules/typescript/lib/lib.es2022.error.d.ts:24

Inherited from ​

InjecuteError.cause


code ​

readonly code: "INJECUTE_NOT_REGISTERED" | "INJECUTE_ALREADY_REGISTERED" | "INJECUTE_CIRCULAR_DEPENDENCY" | "INJECUTE_NOTHING_TO_REPLACE" | "INJECUTE_NO_PREVIOUS_DEFINITION" | "INJECUTE_INVALID_FACTORY" | "INJECUTE_INVALID_DEPENDENCY" | "INJECUTE_CLASS_NOT_CONSTRUCTED" | "INJECUTE_RESOLUTION_FAILED" | "INJECUTE_NOT_A_FUNCTION" | "INJECUTE_NAMESPACE_CONFLICT" | "INJECUTE_NAMESPACE_RESULT" | "INJECUTE_EXTENSION_RESULT" | "INJECUTE_SEALED" | "INJECUTE_DISPOSED" | "INJECUTE_DISPOSE_FAILED" | "INJECUTE_WIRING_FAILED" | "INJECUTE_INVALID_OPTION" | "INJECUTE_UNKNOWN_EVENT" | "INJECUTE_READ_ONLY" | "INJECUTE_INVALID_HOOK" | "INJECUTE_UNDO_FAILED" | "INJECUTE_LIFECYCLE_STOPPED"

Defined in: src/errors.ts:47

Stable identifier of the error.

Inherited from ​

InjecuteError.code


docs ​

readonly docs: string

Defined in: src/errors.ts:51

Link to the documentation page of this error.

Inherited from ​

InjecuteError.docs


message ​

message: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1075

Inherited from ​

InjecuteError.message


name ​

readonly name: string = 'CircularDependencyError'

Defined in: src/errors.ts:78

'CircularDependencyError'.

Overrides ​

InjecuteError.name


path ​

readonly path: readonly ServiceKey[]

Defined in: src/errors.ts:49

Service keys being resolved when the error happened, outermost first.

Inherited from ​

InjecuteError.path


stack? ​

optional stack?: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1076

Inherited from ​

InjecuteError.stack

Released under the MIT License.