Package com.xero.api
Class XeroForbiddenException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.xero.api.XeroException
-
- com.xero.api.XeroAuthenticationException
-
- com.xero.api.XeroForbiddenException
-
- All Implemented Interfaces:
Serializable
public class XeroForbiddenException extends XeroAuthenticationException
handle forbidden exception- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description XeroForbiddenException(int statusCode, String message, Exception e)XeroForbiddenException
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetMessage()get messageintgetStatusCode()get status code-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
XeroForbiddenException
public XeroForbiddenException(int statusCode, String message, Exception e)XeroForbiddenException- Parameters:
statusCode- Integer the server status code returned.message- String with details about the exceptione- Exception object with details about the original exception
-
-
Method Detail
-
getStatusCode
public int getStatusCode()
get status code- Returns:
- statusCode
-
getMessage
public String getMessage()
get message- Overrides:
getMessagein classThrowable- Returns:
- message
-
-