Package com.exoscale.sdk.client
Class ApiException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.exoscale.sdk.client.ApiException
-
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.4.0") public class ApiException extends Exception
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ApiException()
ApiException(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCode()
Get the HTTP status code.String
getResponseBody()
Get the HTTP response body.HttpHeaders
getResponseHeaders()
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 Detail
-
ApiException
public ApiException()
-
ApiException
public ApiException(Throwable throwable)
-
ApiException
public ApiException(String message)
-
ApiException
public ApiException(String message, Throwable throwable, int code, HttpHeaders responseHeaders, String responseBody)
-
ApiException
public ApiException(String message, int code, HttpHeaders responseHeaders, String responseBody)
-
ApiException
public ApiException(String message, Throwable throwable, int code, HttpHeaders responseHeaders)
-
ApiException
public ApiException(int code, HttpHeaders responseHeaders, String responseBody)
-
ApiException
public ApiException(int code, String message)
-
ApiException
public ApiException(int code, String message, HttpHeaders responseHeaders, String responseBody)
-
-
Method Detail
-
getCode
public int getCode()
Get the HTTP status code.- Returns:
- HTTP status code
-
getResponseHeaders
public HttpHeaders getResponseHeaders()
Get the HTTP response headers.- Returns:
- Headers as an HttpHeaders object
-
getResponseBody
public String getResponseBody()
Get the HTTP response body.- Returns:
- Response body in the form of string
-
-