Thrown when dependencies form a cycle.

Example:

var injector = Injector.resolveAndCreate( provide("one", useFactory: (two) => "two", deps: [[new Inject("two")]]), provide("two", useFactory: (one) => "one", deps: [[new Inject("one")]]) );

expect(() => injector.get("one"), throws);

Retrieving A or B throws a CyclicDependencyError as the graph above cannot be constructed.

Inheritance

Constructors

CyclicDependencyError(ReflectiveInjector injector, ReflectiveKey key)

Properties

constructResolvingMessage → Function

read / write, inherited
context → dynamic

read-only, inherited
hashCode → int

Get a hash code for this object.

read-only, inherited
injectors → List<ReflectiveInjector>

read / write, inherited
keys → List<ReflectiveKey>

read / write, inherited
message → String

read / write, inherited
runtimeType → Type

A representation of the runtime type of the object.

read-only, inherited
stackTrace → StackTrace

read-only, inherited

Operators

operator ==(other) → bool

The equality operator.

inherited

Methods

addKey(ReflectiveInjector injector, ReflectiveKey key) → void

inherited
noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

inherited
toString() → String

Returns a string representation of this object.

inherited