public class RedisConnectionException extends RedisException
| Constructor and Description |
|---|
RedisConnectionException(String msg)
Create a
RedisConnectionException with the specified detail message. |
RedisConnectionException(String msg,
Throwable cause)
Create a
RedisConnectionException with the specified detail message and nested exception. |
| Modifier and Type | Method and Description |
|---|---|
static RedisConnectionException |
create(SocketAddress remoteAddress,
Throwable cause)
|
static RedisConnectionException |
create(String remoteAddress,
Throwable cause)
|
static RedisConnectionException |
create(Throwable cause)
Create a new
RedisConnectionException given cause. |
static boolean |
isProtectedMode(String error) |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic RedisConnectionException(String msg)
RedisConnectionException with the specified detail message.msg - the detail message.public static RedisConnectionException create(SocketAddress remoteAddress, Throwable cause)
remoteAddress - remote socket address.cause - the nested exception.RedisConnectionException.public static RedisConnectionException create(String remoteAddress, Throwable cause)
remoteAddress - remote address.cause - the nested exception.RedisConnectionException.public static RedisConnectionException create(Throwable cause)
RedisConnectionException given cause.cause - the exception.RedisConnectionException.public static boolean isProtectedMode(String error)
error - the error message.true if the error message indicates Redis protected mode.Copyright © 2020 lettuce.io. All rights reserved.