Module lettuce.core

Class RedisException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
CacheFrontend.ValueRetrievalException, CommandCreationException, PartitionException, RedisCommandExecutionException, RedisCommandInterruptedException, RedisCommandTimeoutException, RedisConnectionException, RedisProtocolException

public class RedisException
extends RuntimeException
Exception thrown when Redis returns an error message, or when the client fails for any reason.
Author:
Will Glozer, Mark Paluch
See Also:
Serialized Form
  • Constructor Details

    • RedisException

      public RedisException​(String msg)
      Create a RedisException with the specified detail message.
      Parameters:
      msg - the detail message.
    • RedisException

      public RedisException​(String msg, Throwable cause)
      Create a RedisException with the specified detail message and nested exception.
      Parameters:
      msg - the detail message.
      cause - the nested exception.
    • RedisException

      public RedisException​(Throwable cause)
      Create a RedisException with the specified nested exception.
      Parameters:
      cause - the nested exception.