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:

Implemented types

Constructors

ModularityException(String message)
Creates a Modularity exception with the given message.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
message String
Human-readable description of the error.
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
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited