OpenException class

Exception thrown when there is an error opening a Redis connection or cache.

This can occur due to invalid configuration, authentication failures, or other connection-related issues.

Example:

try {
  await storage.open<String>(expiry: Duration(hours: 1));
} catch (e) {
  if (e is OpenException) {
    // Handle open failure
  }
}
Implemented types

Constructors

OpenException.new(String message)
Creates a new OpenException with the given message.

Properties

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