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
Properties
cause?
optionalcause?:unknown
Defined in: node_modules/typescript/lib/lib.es2022.error.d.ts:24
Inherited from
code
readonlycode:"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
docs
readonlydocs:string
Defined in: src/errors.ts:51
Link to the documentation page of this error.
Inherited from
message
message:
string
Defined in: node_modules/typescript/lib/lib.es5.d.ts:1075
Inherited from
name
readonlyname:string='CircularDependencyError'
Defined in: src/errors.ts:78
'CircularDependencyError'.
Overrides
path
readonlypath: readonlyServiceKey[]
Defined in: src/errors.ts:49
Service keys being resolved when the error happened, outermost first.
Inherited from
stack?
optionalstack?:string
Defined in: node_modules/typescript/lib/lib.es5.d.ts:1076