Skip to main content

DependencyError

Thrown when resolution fails, most commonly an unregistered token.
In development (IS_DEV), errors are also logged through the internal Logger.

Common messages

Circular dependencies

The resolver detects dependency cycles and throws with a descriptive DependencyError chain. Use container.observe or monitor to trace which token triggered the cycle.

Container error events

When observers are attached, failed resolves emit error events before re-throwing. See Container events.