public class APIException extends Exception implements APIResponse
Modifier and Type | Class and Description |
---|---|
static class |
APIException.FailedRequestException |
static class |
APIException.MalformedResponseException |
Constructor and Description |
---|
APIException() |
APIException(String message) |
APIException(String header,
String message,
Throwable e) |
APIException(String message,
Throwable e) |
APIException(Throwable e) |
Modifier and Type | Method and Description |
---|---|
APIException |
getException() |
String |
getHeader() |
String |
getRawResponse() |
com.google.gson.JsonObject |
getRawResponseAsJsonObject() |
APINode |
head() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public APIException()
public APIException(Throwable e)
public APIException(String message)
public APINode head()
head
in interface APIResponse
public APIException getException()
getException
in interface APIResponse
public String getRawResponse()
getRawResponse
in interface APIResponse
public com.google.gson.JsonObject getRawResponseAsJsonObject()
getRawResponseAsJsonObject
in interface APIResponse
public String getHeader()
getHeader
in interface APIResponse
Copyright © 2020. All rights reserved.