Package org.openapitools.client
Class ApiException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.openapitools.client.ApiException
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-12-04T04:53:25.428492722Z[Etc/UTC]",
comments="Generator version: 7.8.0")
public class ApiException
extends Exception
ApiException class.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstructor for ApiException.ApiException
(int code, String message) Constructor for ApiException.ApiException
(int code, String message, Map<String, List<String>> responseHeaders, String responseBody) Constructor for ApiException.Constructor for ApiException.ApiException
(String message) Constructor for ApiException.ApiException
(String message, int code, Map<String, List<String>> responseHeaders, String responseBody) Constructor for ApiException.ApiException
(String message, Throwable throwable, int code, Map<String, List<String>> responseHeaders) Constructor for ApiException.ApiException
(String message, Throwable throwable, int code, Map<String, List<String>> responseHeaders, String responseBody) Constructor for ApiException.ApiException
(Throwable throwable) Constructor for ApiException. -
Method Summary
Modifier and TypeMethodDescriptionint
getCode()
Get the HTTP status code.Get the exception message including HTTP response data.Get the HTTP response body.Get the HTTP response headers.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
code
private int code -
responseHeaders
-
responseBody
-
-
Constructor Details
-
ApiException
public ApiException()Constructor for ApiException.
-
ApiException
Constructor for ApiException.
- Parameters:
throwable
- aThrowable
object
-
ApiException
Constructor for ApiException.
- Parameters:
message
- the error message
-
ApiException
public ApiException(String message, Throwable throwable, int code, Map<String, List<String>> responseHeaders, String responseBody) Constructor for ApiException.
-
ApiException
public ApiException(String message, int code, Map<String, List<String>> responseHeaders, String responseBody) Constructor for ApiException.
- Parameters:
message
- the error messagecode
- HTTP status coderesponseHeaders
- aMap
of HTTP response headersresponseBody
- the response body
-
ApiException
public ApiException(String message, Throwable throwable, int code, Map<String, List<String>> responseHeaders) Constructor for ApiException.
-
ApiException
Constructor for ApiException.
- Parameters:
code
- HTTP status coderesponseHeaders
- aMap
of HTTP response headersresponseBody
- the response body
-
ApiException
Constructor for ApiException.
- Parameters:
code
- HTTP status codemessage
- aString
object
-
ApiException
public ApiException(int code, String message, Map<String, List<String>> responseHeaders, String responseBody) Constructor for ApiException.
- Parameters:
code
- HTTP status codemessage
- the error messageresponseHeaders
- aMap
of HTTP response headersresponseBody
- the response body
-
-
Method Details
-
getCode
public int getCode()Get the HTTP status code.- Returns:
- HTTP status code
-
getResponseHeaders
Get the HTTP response headers.- Returns:
- A map of list of string
-
getResponseBody
Get the HTTP response body.- Returns:
- Response body in the form of string
-
getMessage
Get the exception message including HTTP response data.- Overrides:
getMessage
in classThrowable
- Returns:
- The exception message
-