public class ApiException extends Exception
| Constructor and Description |
|---|
ApiException() |
ApiException(int code,
String message) |
ApiException(int code,
String message,
Error error) |
ApiException(int code,
String message,
Error error,
Map<String,List<String>> responseHeaders,
String responseBody) |
ApiException(int code,
String message,
Map<String,List<String>> responseHeaders,
String responseBody) |
| Modifier and Type | Method and Description |
|---|---|
int |
getCode() |
Error |
getError()
Get the response deserialized as an Error object.
|
String |
getMessage() |
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()
public ApiException(int code,
String message)
public ApiException(int code,
String message,
Map<String,List<String>> responseHeaders,
String responseBody)
public int getCode()
public String getMessage()
getMessage in class Throwablepublic Error getError()
public Map<String,List<String>> getResponseHeaders()
public String getResponseBody()
Copyright © 2016. All Rights Reserved.