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
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