LockAcquisitionException class

Exception thrown when a lock cannot be acquired in Redis.

This typically occurs when trying to acquire a lock that is already held by another process or when the Redis server is unavailable.

Example:

try {
  await acquireLock();
} catch (e) {
  if (e is LockAcquisitionException) {
    // Handle lock acquisition failure
  }
}
Implemented types

Constructors

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

Properties

hashCode int
The hash code for this object.
no setterinherited
message String
The error message describing why the lock could not be acquired.
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