ConnectionException class
Exception thrown when there is a connection error with the Redis server.
This can occur when the Redis server is unreachable, the connection is lost, or there are network issues.
Example:
try {
await storage.get<String>('key');
} catch (e) {
if (e is ConnectionException) {
// Handle connection error
}
}
- Implemented types
Constructors
- ConnectionException.new(String message)
-
Creates a new ConnectionException with the given
message
.
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