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

hashCode int
The hash code for this object.
no setterinherited
message String
The error message describing the connection issue.
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