@Experimental public class RedisRestException extends RuntimeException
| Constructor and Description |
|---|
RedisRestException(String message)
Creates a new
RedisRestException with the specified error message. |
RedisRestException(String message,
int statusCode,
String responseBody)
Creates a new
RedisRestException with the specified error message, HTTP status code, and response body. |
RedisRestException(String message,
Throwable cause)
Creates a new
RedisRestException with the specified error message and cause. |
| Modifier and Type | Method and Description |
|---|---|
String |
getResponseBody()
Returns the HTTP response body associated with this exception, or null if not available.
|
int |
getStatusCode()
Returns the HTTP status code associated with this exception, or -1 if not applicable.
|
String |
toString() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTracepublic RedisRestException(String message, int statusCode, String responseBody)
RedisRestException with the specified error message, HTTP status code, and response body.message - the error messagestatusCode - the HTTP status coderesponseBody - the HTTP response bodypublic RedisRestException(String message, Throwable cause)
RedisRestException with the specified error message and cause.message - the error messagecause - the cause of the exceptionpublic RedisRestException(String message)
RedisRestException with the specified error message.message - the error messagepublic int getStatusCode()
public String getResponseBody()
Copyright © 2026 lettuce.io. All rights reserved.