public class ApiException extends Exception
| Constructor and Description |
|---|
ApiException(ApiExceptionType exceptionType,
String response)
Generate an API exception
|
ApiException(ApiExceptionType exceptionType,
String response,
int responseCode,
String url)
Generate an API exception
|
ApiException(ApiExceptionType exceptionType,
String response,
int responseCode,
String url,
Throwable cause)
Generate an API exception
|
ApiException(ApiExceptionType exceptionType,
String response,
int responseCode,
URL url)
Generate an API exception
|
ApiException(ApiExceptionType exceptionType,
String response,
int responseCode,
URL url,
Throwable cause)
Generate an API exception
|
ApiException(ApiExceptionType exceptionType,
String response,
String url)
Generate an API exception
|
ApiException(ApiExceptionType exceptionType,
String response,
String url,
Throwable cause)
Generate an API exception
|
ApiException(ApiExceptionType exceptionType,
String response,
URL url)
Generate an API exception
|
ApiException(ApiExceptionType exceptionType,
String response,
URL url,
Throwable cause)
Generate an API exception
|
| Modifier and Type | Method and Description |
|---|---|
ApiExceptionType |
getExceptionType()
The enumerated type of the exception
|
String |
getResponse()
The response message associated with the exception
|
int |
getResponseCode()
The response code, such as the HTTP status from a web request
|
String |
getUrl()
The URL that cause the exception or is associated with it
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ApiException(ApiExceptionType exceptionType, String response)
exceptionType - The type of the exception to throwresponse - A response message associated with the exceptionpublic ApiException(ApiExceptionType exceptionType, String response, URL url)
exceptionType - The type of the exception to throwresponse - A response message associated with the exceptionurl - The URL that cause the exception or is associated with itpublic ApiException(ApiExceptionType exceptionType, String response, int responseCode, URL url)
exceptionType - The type of the exception to throwresponse - A response message associated with the exceptionresponseCode - A response code, such as the HTTP status from a web
requesturl - The URL that cause the exception or is associated with itpublic ApiException(ApiExceptionType exceptionType, String response, String url)
exceptionType - The type of the exception to throwresponse - A response message associated with the exceptionurl - The URL that cause the exception or is associated with itpublic ApiException(ApiExceptionType exceptionType, String response, int responseCode, String url)
exceptionType - The type of the exception to throwresponse - A response message associated with the exceptionresponseCode - A response code, such as the HTTP status from a web
requesturl - The URL that cause the exception or is associated with itpublic ApiException(ApiExceptionType exceptionType, String response, URL url, Throwable cause)
exceptionType - The type of the exception to throwresponse - A response message associated with the exceptionurl - The URL that cause the exception or is associated with itcause - The underlying exception that was the cause of this API
Exceptionpublic ApiException(ApiExceptionType exceptionType, String response, int responseCode, URL url, Throwable cause)
exceptionType - The type of the exception to throwresponse - A response message associated with the exceptionresponseCode - A response code, such as the HTTP status from a web
requesturl - The URL that cause the exception or is associated with itcause - The underlying exception that was the cause of this API
Exceptionpublic ApiException(ApiExceptionType exceptionType, String response, String url, Throwable cause)
exceptionType - The type of the exception to throwresponse - A response message associated with the exceptionurl - The URL that cause the exception or is associated with itcause - The underlying exception that was the cause of this API
Exceptionpublic ApiException(ApiExceptionType exceptionType, String response, int responseCode, String url, Throwable cause)
exceptionType - The type of the exception to throwresponse - A response message associated with the exceptionresponseCode - A response code, such as the HTTP status from a web
requesturl - The URL that cause the exception or is associated with itcause - The underlying exception that was the cause of this API
Exceptionpublic ApiExceptionType getExceptionType()
public String getResponse()
public int getResponseCode()
public String getUrl()
Copyright © 2013-2015. All Rights Reserved.