public class RestException extends RuntimeException
| Constructor and Description |
|---|
RestException(String message,
org.everit.http.client.HttpMethod httpMethod,
String requestUrl,
Optional<org.everit.http.client.async.AsyncContentProvider> requestBody,
int status,
Optional<String> responseBody,
Throwable cause)
Constructor.
|
RestException(String message,
int status,
Optional<String> responseBody)
Constructor.
|
RestException(String message,
int status,
Optional<String> responseBody,
Throwable cause)
Constructor.
|
RestException(String message,
String requestUrl,
int status,
Optional<String> responseBody)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getHttpCode()
Deprecated.
Use
getStatus() instead. |
Optional<String> |
getResponseBody() |
int |
getStatus() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic RestException(String message, org.everit.http.client.HttpMethod httpMethod, String requestUrl, Optional<org.everit.http.client.async.AsyncContentProvider> requestBody, int status, Optional<String> responseBody, Throwable cause)
message - Message of the exception.httpMethod - The method of the request.requestUrl - The URL of the http request.requestBody - The body of the request if there is one.status - The status code of the HTTP request.responseBody - The body of the request if there is one.cause - The cause of the exeption if there is any.public RestException(String message, int status, Optional<String> responseBody)
message - Message of the exception.status - The status code of the HTTP request.responseBody - The body of the request if there is one.public RestException(String message, int status, Optional<String> responseBody, Throwable cause)
message - Message of the exception.status - 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 status, Optional<String> responseBody)
message - Message of the exception.requestUrl - The URL of the http request.status - The status code of the HTTP request.responseBody - The body of the request if there is one.@Deprecated public int getHttpCode()
getStatus() instead.public int getStatus()
Copyright © 2011–2021 Everit Kft.. All rights reserved.