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 bindInstance is called with a null instance.
ServiceContainerException.registrationNotFound({required Type type, String? name})
Thrown when make is called for an unregistered service.

Properties

hashCode int
The hash code for this object.
no setterinherited
message String?
final
name String?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type Type
final

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