Serializablepublic class ApiException extends Exception
| Constructor | Description |
|---|---|
ApiException() |
|
ApiException(int code,
String message) |
|
ApiException(int code,
String message,
Map<String,List<String>> responseHeaders,
String responseBody) |
|
ApiException(int code,
Map<String,List<String>> responseHeaders,
String responseBody) |
|
ApiException(String message) |
|
ApiException(String message,
int code,
Map<String,List<String>> responseHeaders,
String responseBody) |
|
ApiException(String message,
Throwable throwable,
int code,
Map<String,List<String>> responseHeaders) |
|
ApiException(String message,
Throwable throwable,
int code,
Map<String,List<String>> responseHeaders,
String responseBody) |
|
ApiException(Throwable throwable) |
| Modifier and Type | Method | Description |
|---|---|---|
int |
getCode() |
Get the HTTP status code.
|
String |
getResponseBody() |
Get the HTTP response body.
|
Map<String,List<String>> |
getResponseHeaders() |
Get the HTTP response headers.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ApiException()
public ApiException(Throwable throwable)
public ApiException(String message)
public ApiException(String message, Throwable throwable, int code, Map<String,List<String>> responseHeaders, String responseBody)
public ApiException(String message, int code, Map<String,List<String>> responseHeaders, String responseBody)
public ApiException(String message, Throwable throwable, int code, Map<String,List<String>> responseHeaders)
public ApiException(int code,
Map<String,List<String>> responseHeaders,
String responseBody)
public ApiException(int code,
String message)
public int getCode()
public Map<String,List<String>> getResponseHeaders()
public String getResponseBody()
Copyright © 2025. All rights reserved.