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
public class XeroApiException extends XeroException
Legacy XeroApiException general exception class for returning exception details- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description XeroApiException(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ErrorgetError()Init Xero API ExceptionStringgetMessage()Init Xero API ExceptionMap<String,String>getMessages()Init Xero API ExceptionintgetResponseCode()Init Xero API Exception-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
XeroApiException
public XeroApiException(int responseCode)
Init Xero API Exception- Parameters:
responseCode- int of the status code returned by the API
-
XeroApiException
public XeroApiException(int responseCode, String message, Exception e)Init Xero API Exception- Parameters:
responseCode- int of the status code returned by the APImessage- String details about the exceptione- Exception the original exception thrown
-
XeroApiException
public XeroApiException(int responseCode, Map<String,String> map)Init Xero API Exception- Parameters:
responseCode- int of the status code returned by the APImap- Map<String, String> array of details about the exception
-
XeroApiException
public XeroApiException(int responseCode, Error error, Exception e)Init Xero API Exception- Parameters:
responseCode- int of the status code returned by the APIerror- Error details about the exceptione- Exception the original exception thrown
-
XeroApiException
public XeroApiException(int responseCode, String message, Error error, Exception e)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 Detail
-
getResponseCode
public int getResponseCode()
Init Xero API Exception- Returns:
- int of the status code returned by the API
-
getMessage
public String getMessage()
Init Xero API Exception- Overrides:
getMessagein classThrowable- Returns:
- String with the details about the exception
-
getMessages
public Map<String,String> getMessages()
Init Xero API Exception- Returns:
- Map<String, String> array of messages about the exception
-
getError
public Error getError()
Init Xero API Exception- Returns:
- Error object with information about the exception
-
-