Package io.vrap.rmf.base.client
Class ApiHttpException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.vrap.rmf.base.client.error.BaseException
io.vrap.rmf.base.client.ApiHttpException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ApiClientException
,ApiServerException
,AuthException
- See Also:
-
Constructor Summary
ConstructorDescriptionApiHttpException
(int statusCode, String body, ApiHttpHeaders headers) ApiHttpException
(int statusCode, String body, ApiHttpHeaders headers, ApiHttpResponse<byte[]> response) ApiHttpException
(int statusCode, String body, ApiHttpHeaders headers, String message, ApiHttpResponse<byte[]> response) ApiHttpException
(int statusCode, String body, ApiHttpHeaders headers, String message, ApiHttpResponse<byte[]> response, ApiHttpRequest request) ApiHttpException
(int statusCode, String body, ApiHttpHeaders headers, String message, ApiHttpResponse<byte[]> response, ApiHttpRequest request, ResponseSerializer serializer) ApiHttpException
(int statusCode, String body, ApiHttpHeaders headers, String message, ApiHttpResponse<byte[]> response, ApiHttpRequest request, ResponseSerializer serializer, Throwable cause) ApiHttpException
(int statusCode, String body, ApiHttpHeaders headers, String message, ApiHttpResponse<byte[]> response, ResponseSerializer serializer) ApiHttpException
(int statusCode, String body, ApiHttpHeaders headers, String message, ApiHttpResponse<byte[]> response, Throwable cause) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ApiHttpException
-
ApiHttpException
public ApiHttpException(int statusCode, String body, ApiHttpHeaders headers, ApiHttpResponse<byte[]> response) -
ApiHttpException
public ApiHttpException(int statusCode, String body, ApiHttpHeaders headers, String message, ApiHttpResponse<byte[]> response) -
ApiHttpException
public ApiHttpException(int statusCode, String body, ApiHttpHeaders headers, String message, ApiHttpResponse<byte[]> response, Throwable cause) -
ApiHttpException
public ApiHttpException(int statusCode, String body, ApiHttpHeaders headers, String message, ApiHttpResponse<byte[]> response, ResponseSerializer serializer) -
ApiHttpException
public ApiHttpException(int statusCode, @Nullable String body, @Nullable ApiHttpHeaders headers, @Nullable String message, @Nullable ApiHttpResponse<byte[]> response, @Nullable ApiHttpRequest request) -
ApiHttpException
public ApiHttpException(int statusCode, @Nullable String body, @Nullable ApiHttpHeaders headers, @Nullable String message, @Nullable ApiHttpResponse<byte[]> response, @Nullable ApiHttpRequest request, ResponseSerializer serializer, Throwable cause) -
ApiHttpException
public ApiHttpException(int statusCode, @Nullable String body, @Nullable ApiHttpHeaders headers, @Nullable String message, @Nullable ApiHttpResponse<byte[]> response, @Nullable ApiHttpRequest request, ResponseSerializer serializer)
-
-
Method Details
-
getBodyAs
- Throws:
SerializationException
-
getStatusCode
public int getStatusCode() -
getBody
-
getHeaders
-
getResponse
-
getRequest
-
getMessage
- Overrides:
getMessage
in classThrowable
-