@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen") public class ApiException extends Exception
ApiException class.
| 构造器和说明 |
|---|
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.
|
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getCode()
Get the HTTP status code.
|
AbstractOpenApiSchema |
getErrorObject()
Get the error object.
|
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.
|
void |
setErrorObject(AbstractOpenApiSchema errorObject)
Get the error object.
|
public 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 在类中 Throwablepublic AbstractOpenApiSchema getErrorObject()
public void setErrorObject(AbstractOpenApiSchema errorObject)
errorObject - Error objectCopyright © 2024. All rights reserved.