Package com.xero.api
Class XeroMethodNotAllowedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.xero.api.XeroException
com.xero.api.XeroMethodNotAllowedException
-
Constructor Summary
ConstructorsConstructorDescriptionXeroMethodNotAllowedException(Integer statusCode, String message) XeroMethodNotAllowedExceptionXeroMethodNotAllowedException(String objectType, Error error) XeroMethodNotAllowedExceptionXeroMethodNotAllowedException(String objectType, Error error) XeroMethodNotAllowedExceptionXeroMethodNotAllowedException(String objectType, FeedConnections error) XeroMethodNotAllowedExceptionXeroMethodNotAllowedException(String objectType, Statements error) XeroMethodNotAllowedExceptionXeroMethodNotAllowedException(String objectType, Problem problem, Exception e) XeroMethodNotAllowedExceptionXeroMethodNotAllowedException(String objectType, Problem problem, Exception e) XeroMethodNotAllowedException -
Method Summary
Modifier and TypeMethodDescriptionaddElementsItem(Element elementsItem) XeroMethodNotAllowedExceptionXeroMethodNotAllowedExceptionXeroMethodNotAllowedExceptionaddStatementItem(Statement item) XeroMethodNotAllowedExceptionXeroMethodNotAllowedExceptionbooleanfeedConnectionItems(List<FeedConnection> feedConnectionItems) XeroMethodNotAllowedExceptionfieldValidationErrorsElements(List<FieldValidationErrorsElement> fieldValidationErrorsElements) XeroMethodNotAllowedExceptionArray of Elements of validation ErrorsArray of FeedConnection of Errors ArrayArray of Assets Errors ArrayException messageException typeException typeArray of Statements Items of Errors ArrayException numbergetType()Exception typeinthashCode()XeroMethodNotAllowedExceptionpayrollNzProblem(Problem problem) XeroMethodNotAllowedExceptionpayrollUkProblem(Problem problem) XeroMethodNotAllowedExceptionvoidsetElements(List<Element> elements) XeroMethodNotAllowedExceptionvoidsetFeedConnectionItems(List<FeedConnection> feedConnectionItems) XeroMethodNotAllowedExceptionvoidsetFieldValidationErrorsElements(List<FieldValidationErrorsElement> fieldValidationErrorsElements) XeroMethodNotAllowedExceptionvoidsetMessage(String message) XeroMethodNotAllowedExceptionvoidsetPayrollNzProblem(Problem problem) XeroMethodNotAllowedExceptionvoidsetPayrollUkProblem(Problem problem) XeroMethodNotAllowedExceptionvoidsetStatementItems(List<Statement> statementItems) XeroMethodNotAllowedExceptionvoidsetStatusCode(Integer statusCode) XeroMethodNotAllowedExceptionvoidXeroMethodNotAllowedExceptionstatementItems(List<Statement> statementItems) XeroMethodNotAllowedExceptionstatusCode(Integer statusCode) XeroMethodNotAllowedExceptiontoString()XeroMethodNotAllowedExceptionMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
XeroMethodNotAllowedException
-
XeroMethodNotAllowedException
-
XeroMethodNotAllowedException
XeroMethodNotAllowedException- Parameters:
objectType- String object type being interacted with when the error was returned.error- Statements object with details specific to Bank Feeds API
-
XeroMethodNotAllowedException
XeroMethodNotAllowedException- Parameters:
objectType- String object type being interacted with when the error was returned.error- FeedConnections object with details specific to Bank Feeds API
-
XeroMethodNotAllowedException
XeroMethodNotAllowedException- Parameters:
objectType- String object type being interacted with when the error was returned.problem- Problem object with details specific to UK Payroll APIe- Exception object with details about the original exception
-
XeroMethodNotAllowedException
XeroMethodNotAllowedException- Parameters:
objectType- String object type being interacted with when the error was returned.problem- Problem object with details specific to UK Payroll APIe- Exception object with details about the original exception
-
XeroMethodNotAllowedException
-
-
Method Details
-
statusCode
XeroMethodNotAllowedException- Parameters:
statusCode- Integer the server status code returned- Returns:
- XeroMethodNotAllowedException an instance the bad request exception
-
getStatusCode
-
setStatusCode
XeroMethodNotAllowedException- Parameters:
statusCode- Integer the server status code returned
-
type
XeroMethodNotAllowedException- Parameters:
type- String the server status code returned- Returns:
- XeroMethodNotAllowedException an instance the bad request exception
-
getType
-
setType
XeroMethodNotAllowedException- Parameters:
type- String the server status code returned
-
message
XeroMethodNotAllowedException- Parameters:
message- String with the details about the exception- Returns:
- XeroMethodNotAllowedException an instance the bad request exception
-
getMessage
Exception message- Overrides:
getMessagein classThrowable- Returns:
- message
-
setMessage
XeroMethodNotAllowedException- Parameters:
message- String with the details about the exception
-
elements
XeroMethodNotAllowedException- Parameters:
elements- List<Element> with the details about the exception- Returns:
- XeroMethodNotAllowedException an instance the bad request exception
-
addElementsItem
XeroMethodNotAllowedException- Parameters:
elementsItem- Element object with the details about the exception- Returns:
- XeroMethodNotAllowedException an instance the bad request exception
-
getElements
-
setElements
-
statementItems
XeroMethodNotAllowedException- Parameters:
statementItems- List <Statement> a list of bank statements- Returns:
- XeroMethodNotAllowedException an instance the bad request exception
-
addStatementItem
XeroMethodNotAllowedException- Parameters:
item- Statement object containing bank statement details- Returns:
- XeroMethodNotAllowedException an instance the bad request exception
-
getStatementItems
-
setStatementItems
-
feedConnectionItems
XeroMethodNotAllowedException- Parameters:
feedConnectionItems- List <FeedConnection> a list of feed connections- Returns:
- XeroMethodNotAllowedException an instance the bad request exception
-
addFeedConnectionItems
XeroMethodNotAllowedException- Parameters:
item- FeedConnection a list of feed connections- Returns:
- XeroMethodNotAllowedException an instance the bad request exception
-
getFeedConnectionItems
Array of FeedConnection of Errors Array- Returns:
- statementItems
-
setFeedConnectionItems
XeroMethodNotAllowedException- Parameters:
feedConnectionItems- List <FeedConnection> a list of feed connections
-
fieldValidationErrorsElements
public XeroMethodNotAllowedException fieldValidationErrorsElements(List<FieldValidationErrorsElement> fieldValidationErrorsElements) XeroMethodNotAllowedException- Parameters:
fieldValidationErrorsElements- List <FieldValidationErrorsElement> a list of field validation errors- Returns:
- XeroMethodNotAllowedException an instance the bad request exception
-
addFieldValidationErrorsElement
public XeroMethodNotAllowedException addFieldValidationErrorsElement(FieldValidationErrorsElement element) XeroMethodNotAllowedException- Parameters:
element- FieldValidationErrorsElement a list of field validation errors- Returns:
- XeroMethodNotAllowedException an instance the bad request exception
-
getFieldValidationErrorsElements
Array of Assets Errors Array- Returns:
- statementItems
-
setFieldValidationErrorsElements
public void setFieldValidationErrorsElements(List<FieldValidationErrorsElement> fieldValidationErrorsElements) XeroMethodNotAllowedException- Parameters:
fieldValidationErrorsElements- List <FieldValidationErrorsElement> a list of field validation errors
-
payrollNzProblem
XeroMethodNotAllowedException- Parameters:
problem- the validation errors in NZ Payroll- Returns:
- XeroMethodNotAllowedException an instance the bad request exception
-
getPayrollNzProblem
-
setPayrollNzProblem
XeroMethodNotAllowedException- Parameters:
problem- the validation errors in NZ Payroll
-
payrollUkProblem
XeroMethodNotAllowedException- Parameters:
problem- the validation errors in UK Payroll- Returns:
- XeroMethodNotAllowedException an instance the bad request exception
-
getPayrollUkProblem
-
setPayrollUkProblem
XeroMethodNotAllowedException- Parameters:
problem- the validation errors in UK Payroll
-
equals
-
hashCode
-
toString
-