package exception
Type Members
- class ClientStoppedException extends RedisException
-
class
ClusterInitializationException extends RedisException
Thrown when RedisClusterClient is unable to fetch initial cluster state from any of the seed nodes.
Thrown when RedisClusterClient is unable to fetch initial cluster state from any of the seed nodes. This happens e.g. when none of the seed nodes can be contacted or when they aren't Redis Cluster members.
- class ConnectionBusyException extends RedisIOException
-
class
ConnectionClosedException extends RedisIOException
Command or operation is failed with this exception when it has been already sent through network but the connection was closed before receiving a response.
Command or operation is failed with this exception when it has been already sent through network but the connection was closed before receiving a response. Even though connections are automatically restarted, such command cannot be resent because we don't know whether it was actually executed on the Redis instance or not. In a Redis Cluster deployment, this is likely to happen when a node fails.
- class ConnectionFailedException extends RedisIOException
- class ConnectionInitializationFailure extends RedisException
-
class
CrossSlotException extends RedisException
Thrown when some multi-keyed command or
MULTI
-EXEC
block executed by RedisClusterClient contains keys that hash to different slots. -
class
ErrorReplyException extends RedisException
Thrown when Redis server replies with an error.
-
class
ForbiddenCommandException extends RedisException
Thrown when trying to execute command unsupported by particular client type.
Thrown when trying to execute command unsupported by particular client type. For example, it's impossible to execute connection state changing commands like
CLIENT SETNAME
using a RedisNodeClient. -
class
InvalidDataException extends RedisException
Throw when response sent back by Redis server is corrupt according to Redis protocol.
-
class
NoKeysException extends RedisException
Thrown when trying to execute command or
MULTI
-EXEC
block that does not contain any keys using RedisClusterClient. - class NodeInitializationFailure extends RedisException
-
class
NodeRemovedException extends RedisException
Thrown when some command was queued for execution on a RedisNodeClient connected to one of the master nodes in Redis Cluster and RedisClusterClient detected that this node is no longer a master before the command could be sent to it.
-
class
OptimisticLockException extends RedisException
Thrown when transactions fails due to one of watched keys having been modified by another client, i.e.
Thrown when transactions fails due to one of watched keys having been modified by another client, i.e. when
EXEC
command in aWATCH
-MULTI
-EXEC
transaction returns null bulk response. - class RedisException extends RuntimeException
- class RedisIOException extends RedisException
-
class
TooManyConnectionsException extends RedisException
Thrown when there is too many concurrent blocking commands being executed on a node client and blocking connection pool is exhausted.
-
class
TooManyRedirectionsException extends RedisException
Thrown when too many consecutive cluster redirections occurred during execution of some command by RedisClusterClient.
Thrown when too many consecutive cluster redirections occurred during execution of some command by RedisClusterClient. This might indicate a problem with configuration of Redis Cluster deployment itself.
Maximum number of consecutive redirections is configured by ClusterConfig
-
class
UnexpectedReplyException extends RedisException
Thrown when Redis server returns a reply unexpected by a decoder of a particular command.
-
class
UnmappedSlotException extends RedisException
Throw when (according to current cluster state) some slot is not served by any master.
Throw when (according to current cluster state) some slot is not served by any master. This most likely indicates problem with setup of the Redis Cluster deployment itself.
-
class
WriteFailedException extends RedisIOException
Thrown when an I/O error occ