Package io.lettuce.core
Class RedisException
- 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 aRedisException
with the specified detail message.RedisException(String msg, Throwable cause)
Create aRedisException
with the specified detail message and nested exception.RedisException(Throwable cause)
Create aRedisException
with 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 Detail
-
RedisException
public RedisException(String msg)
Create aRedisException
with the specified detail message.- Parameters:
msg
- the detail message.
-
RedisException
public RedisException(String msg, Throwable cause)
Create aRedisException
with the specified detail message and nested exception.- Parameters:
msg
- the detail message.cause
- the nested exception.
-
RedisException
public RedisException(Throwable cause)
Create aRedisException
with the specified nested exception.- Parameters:
cause
- the nested exception.
-
-