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