public class APIException extends Exception
| Constructor and Description |
|---|
APIException(String reason)
Initialization constructor
|
APIException(String reason,
HttpContext context)
Initialization constructor
|
| Modifier and Type | Method and Description |
|---|---|
HttpContext |
getHttpContext()
The HTTP response body from the API request
|
int |
getResponseCode()
The HTTP response code from the API request
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic APIException(String reason)
reason - The reason for throwing exceptionpublic APIException(String reason, HttpContext context)
reason - The reason for throwing exceptioncontext - The http context of the API exceptionpublic int getResponseCode()
public HttpContext getHttpContext()
Copyright © 2017. All rights reserved.