BloomOfflineException class
Exception thrown when a simulated offline network call is executed.
Example:
if (BloomDev.isOffline) {
throw BloomOfflineException('Device is simulated offline', uri);
}
- Implemented types
Constructors
- BloomOfflineException([String message = 'Device is offline (simulated).', Uri? uri])
-
Creates a BloomOfflineException with an optional
messageand targeturi.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- message → String
-
Description of the simulated offline error.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- uri → Uri?
-
Target request URI that was rejected due to offline simulation.
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