public class RestException extends RuntimeException
| Constructor and Description |
|---|
RestException(String message,
int httpCode,
Optional<String> responseBody)
Constructor.
|
RestException(String message,
int httpCode,
Optional<String> responseBody,
Throwable cause)
Constructor.
|
RestException(String message,
String requestUrl,
int httpCode,
Optional<String> responseBody)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getHttpCode() |
Optional<String> |
getResponseBody() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic RestException(String message, int httpCode, Optional<String> responseBody)
message - Message of the exception.httpCode - The status code of the HTTP request.responseBody - The body of the request if there is one.public RestException(String message, int httpCode, Optional<String> responseBody, Throwable cause)
message - Message of the exception.httpCode - The status code of the HTTP request.responseBody - The body of the request if there is one.cause - The cause of the exception.public RestException(String message, String requestUrl, int httpCode, Optional<String> responseBody)
message - Message of the exception.requestUrl - The URL of the http request.httpCode - The status code of the HTTP request.responseBody - The body of the request if there is one.Copyright © 2011–2020 Everit Kft.. All rights reserved.