Package dev.restate.admin.client
Class ApiException
java.lang.Object
java.lang.Throwable
java.lang.Exception
dev.restate.admin.client.ApiException
- All Implemented Interfaces:
Serializable
- See Also:
-
Constructor Summary
ConstructorDescriptionApiException
(int code, String message) ApiException
(int code, String message, HttpHeaders responseHeaders, String responseBody) ApiException
(int code, HttpHeaders responseHeaders, String responseBody) ApiException
(String message) ApiException
(String message, int code, HttpHeaders responseHeaders, String responseBody) ApiException
(String message, Throwable throwable, int code, HttpHeaders responseHeaders) ApiException
(String message, Throwable throwable, int code, HttpHeaders responseHeaders, String responseBody) ApiException
(Throwable throwable) -
Method Summary
Modifier and TypeMethodDescriptionint
getCode()
Get the HTTP status code.Get the HTTP response body.Get the HTTP response headers.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ApiException
public ApiException() -
ApiException
-
ApiException
-
ApiException
public ApiException(String message, Throwable throwable, int code, HttpHeaders responseHeaders, String responseBody) -
ApiException
-
ApiException
-
ApiException
-
ApiException
-
ApiException
-
-
Method Details
-
getCode
public int getCode()Get the HTTP status code.- Returns:
- HTTP status code
-
getResponseHeaders
Get the HTTP response headers.- Returns:
- Headers as an HttpHeaders object
-
getResponseBody
Get the HTTP response body.- Returns:
- Response body in the form of string
-