java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.lettuce.core.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 Summary
Constructors Constructor Description RedisException(String msg)Create aRedisExceptionwith the specified detail message.RedisException(String msg, Throwable cause)Create aRedisExceptionwith the specified detail message and nested exception.RedisException(Throwable cause)Create aRedisExceptionwith the specified nested exception. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
RedisException
Create aRedisExceptionwith the specified detail message.- Parameters:
msg- the detail message.
-
RedisException
Create aRedisExceptionwith the specified detail message and nested exception.- Parameters:
msg- the detail message.cause- the nested exception.
-
RedisException
Create aRedisExceptionwith the specified nested exception.- Parameters:
cause- the nested exception.
-