CircularDependencyException class
Thrown when a circular dependency is detected.
This exception is raised when two or more services depend on each other in a way that creates an infinite resolution loop.
- Inheritance
-
- Object
- KernelException
- CircularDependencyException
Constructors
-
CircularDependencyException(List<
Type> dependencyChain) - Creates a new CircularDependencyException with the given dependency chain.
Properties
-
dependencyChain
→ List<
Type> -
The dependency chain that caused the circular reference.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- message → String
-
The error message describing what went wrong.
finalinherited
- previous → Object?
-
The underlying exception that caused this error, if any.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stackTrace → StackTrace?
-
The stack trace captured at the time of the exception.
finalinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited