BindingException class
Raised by DiBinding.bind when a handler's declared dependency is not registered in the host app's DI container.
- Inheritance
-
- Object
- CliEdgeCaseException
- BindingException
- Available extensions
Constructors
- BindingException({required String commandName, required String dependencyName, required String reason})
-
const
Properties
- code → String
-
The error code, one of the CliExitCodes vocabulary names as a string
(e.g.
'notFound','conflict'). Used in the JSON error shape'scodefield and translated to the contract exit code by CliApp.no setteroverride - commandName → String
-
The command whose binding failed.
final
- dependencyName → String
-
The dependency that could not be resolved.
final
-
details
→ Map<
String, Object?> -
Additional context for the JSON error shape's
detailsfield.no setteroverride - hashCode → int
-
The hash code for this object.
no setterinherited
- message → String
-
Human-readable error message.
no setteroverride
- reason → String
-
Why the binding failed (e.g.
'not registered in host DI').final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toFailure(
[StackTrace? stackTrace]) → AppFailure -
Available on Exception, provided by the ExceptionToFailure extension
Convert this exception to an AppFailure -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited