Package com.xero.api
Class XeroApiException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.xero.api.XeroException
com.xero.api.XeroApiException
- All Implemented Interfaces:
Serializable
Legacy XeroApiException general exception class for returning exception details
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionXeroApiException(int responseCode) Init Xero API ExceptionXeroApiException(int responseCode, Error error, Exception e) Init Xero API ExceptionXeroApiException(int responseCode, String message, Error error, Exception e) Init Xero API ExceptionXeroApiException(int responseCode, String message, Exception e) Init Xero API ExceptionXeroApiException(int responseCode, Map<String, String> map) Init Xero API Exception -
Method Summary
Modifier and TypeMethodDescriptiongetError()Init Xero API ExceptionInit Xero API ExceptionInit Xero API ExceptionintInit Xero API ExceptionMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
XeroApiException
public XeroApiException(int responseCode) Init Xero API Exception- Parameters:
responseCode- int of the status code returned by the API
-
XeroApiException
-
XeroApiException
-
XeroApiException
-
XeroApiException
Init Xero API Exception- Parameters:
responseCode- int of the status code returned by the APImessage- String details about the exceptionerror- Error details about the exceptione- Exception the original exception thrown
-
-
Method Details
-
getResponseCode
public int getResponseCode()Init Xero API Exception- Returns:
- int of the status code returned by the API
-
getMessage
Init Xero API Exception- Overrides:
getMessagein classThrowable- Returns:
- String with the details about the exception
-
getMessages
-
getError
Init Xero API Exception- Returns:
- Error object with information about the exception
-