SocketException class

Exception thrown when there is a socket-related error in Redis operations.

This can occur due to network issues, socket timeouts, or other socket-related problems.

Example:

try {
  await storage.put('key', 'value');
} catch (e) {
  if (e is SocketException) {
    // Handle socket error
  }
}
Implemented types

Constructors

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

Properties

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