ServiceContainerException class
Exception thrown by ServiceContainer operations.
- Implemented types
Constructors
- ServiceContainerException({required Type type, String? name, String? message})
- ServiceContainerException.circularDependencyResolution({required Type type, String? name})
- Thrown when a circular dependency is detected during resolution.
- ServiceContainerException.duplicateRegistration({required Type type, String? name})
- Thrown when registering a type/name that's already bound.
- ServiceContainerException.nullInstanceUnallowed({required Type type, String? name})
-
Thrown when
bindInstanceis called with anullinstance. - ServiceContainerException.registrationNotFound({required Type type, String? name})
-
Thrown when
makeis called for an unregistered service.
Properties
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