ModularityException class
Base exception for all Modularity framework errors.
Provides a human-readable message and serves as the root of the exception hierarchy. Catch this type to handle any Modularity error generically.
try {
binder.get<MyService>();
} on ModularityException catch (e) {
debugPrint(e.message);
}
See also:
- DependencyNotFoundException for missing dependencies.
- CircularDependencyException for import cycles.
- ModuleConfigurationException for configuration errors.
- ModuleLifecycleException for lifecycle failures.
- Implemented types
Constructors
- ModularityException(String message)
-
Creates a Modularity exception with the given
message.const
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