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 |
|---|---|
Object |
getData()
Returns data about the steps that completed successfully before an error was raised.
|
List<Error> |
getErrors()
Getter for the list of errors.
|
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()
public Object getData()
Copyright © 2022. All rights reserved.