java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.lettuce.core.RedisException
io.lettuce.core.RedisConnectionException
- All Implemented Interfaces:
Serializable
public class RedisConnectionException extends RedisException
Exception for connection failures.
- Author:
- Mark Paluch
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description RedisConnectionException(String msg)Create aRedisConnectionExceptionwith the specified detail message.RedisConnectionException(String msg, Throwable cause)Create aRedisConnectionExceptionwith the specified detail message and nested exception. -
Method Summary
Modifier and Type Method Description static RedisConnectionExceptioncreate(String remoteAddress, Throwable cause)static RedisConnectionExceptioncreate(Throwable cause)Create a newRedisConnectionExceptiongivencause.static RedisConnectionExceptioncreate(SocketAddress remoteAddress, Throwable cause)static booleanisProtectedMode(String error)Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
RedisConnectionException
Create aRedisConnectionExceptionwith the specified detail message.- Parameters:
msg- the detail message.
-
RedisConnectionException
Create aRedisConnectionExceptionwith the specified detail message and nested exception.- Parameters:
msg- the detail message.cause- the nested exception.
-
-
Method Details
-
create
- Parameters:
remoteAddress- remote socket address.cause- the nested exception.- Returns:
- the
RedisConnectionException. - Since:
- 4.4
-
create
- Parameters:
remoteAddress- remote address.cause- the nested exception.- Returns:
- the
RedisConnectionException. - Since:
- 5.1
-
create
Create a newRedisConnectionExceptiongivencause.- Parameters:
cause- the exception.- Returns:
- the
RedisConnectionException. - Since:
- 5.1
-
isProtectedMode
- Parameters:
error- the error message.- Returns:
trueif theerrormessage indicates Redis protected mode.- Since:
- 5.0.1
-