@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-06-12T23:33:57.654989Z[Etc/UTC]") public class ApiException extends Exception
ApiException class.
| Constructor and Description |
|---|
ApiException()
Constructor for ApiException.
|
ApiException(int code,
Map<String,List<String>> responseHeaders,
String responseBody)
Constructor 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.
|
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.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCode()
Get the HTTP status code.
|
String |
getMessage()
Get the exception message including HTTP response data.
|
String |
getResponseBody()
Get the HTTP response body.
|
Map<String,List<String>> |
getResponseHeaders()
Get the HTTP response headers.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ApiException()
Constructor for ApiException.
public ApiException(Throwable throwable)
Constructor for ApiException.
throwable - a Throwable objectpublic ApiException(String message)
Constructor for ApiException.
message - the error messagepublic ApiException(String message, Throwable throwable, int code, Map<String,List<String>> responseHeaders, String responseBody)
Constructor for ApiException.
public ApiException(String message, int code, Map<String,List<String>> responseHeaders, String responseBody)
Constructor for ApiException.
message - the error messagecode - HTTP status coderesponseHeaders - a Map of HTTP response headersresponseBody - the response bodypublic ApiException(String message, Throwable throwable, int code, Map<String,List<String>> responseHeaders)
Constructor for ApiException.
public ApiException(int code,
Map<String,List<String>> responseHeaders,
String responseBody)
Constructor for ApiException.
code - HTTP status coderesponseHeaders - a Map of HTTP response headersresponseBody - the response bodypublic ApiException(int code,
String message)
Constructor for ApiException.
code - HTTP status codemessage - a String objectpublic int getCode()
public Map<String,List<String>> getResponseHeaders()
public String getResponseBody()
public String getMessage()
getMessage in class ThrowableCopyright © 2023. All rights reserved.