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
-
- All Implemented Interfaces:
Serializable
public class XeroMethodNotAllowedException extends XeroException
handle method not allowed exception- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description XeroMethodNotAllowedException(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description XeroMethodNotAllowedExceptionaddElementsItem(Element elementsItem)XeroMethodNotAllowedExceptionXeroMethodNotAllowedExceptionaddFeedConnectionItems(FeedConnection item)XeroMethodNotAllowedExceptionXeroMethodNotAllowedExceptionaddFieldValidationErrorsElement(FieldValidationErrorsElement element)XeroMethodNotAllowedExceptionXeroMethodNotAllowedExceptionaddStatementItem(Statement item)XeroMethodNotAllowedExceptionXeroMethodNotAllowedExceptionelements(List<Element> elements)XeroMethodNotAllowedExceptionbooleanequals(Object o)XeroMethodNotAllowedExceptionfeedConnectionItems(List<FeedConnection> feedConnectionItems)XeroMethodNotAllowedExceptionXeroMethodNotAllowedExceptionfieldValidationErrorsElements(List<FieldValidationErrorsElement> fieldValidationErrorsElements)XeroMethodNotAllowedExceptionList<Element>getElements()Array of Elements of validation ErrorsList<FeedConnection>getFeedConnectionItems()Array of FeedConnection of Errors ArrayList<FieldValidationErrorsElement>getFieldValidationErrorsElements()Array of Assets Errors ArrayStringgetMessage()Exception messageProblemgetPayrollNzProblem()Exception typeProblemgetPayrollUkProblem()Exception typeList<Statement>getStatementItems()Array of Statements Items of Errors ArrayIntegergetStatusCode()Exception numberStringgetType()Exception typeinthashCode()XeroMethodNotAllowedExceptionmessage(String message)XeroMethodNotAllowedExceptionXeroMethodNotAllowedExceptionpayrollNzProblem(Problem problem)XeroMethodNotAllowedExceptionXeroMethodNotAllowedExceptionpayrollUkProblem(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)XeroMethodNotAllowedExceptionvoidsetType(String type)XeroMethodNotAllowedExceptionXeroMethodNotAllowedExceptionstatementItems(List<Statement> statementItems)XeroMethodNotAllowedExceptionXeroMethodNotAllowedExceptionstatusCode(Integer statusCode)XeroMethodNotAllowedExceptionStringtoString()XeroMethodNotAllowedExceptiontype(String type)XeroMethodNotAllowedException-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
Constructor Detail
-
XeroMethodNotAllowedException
public XeroMethodNotAllowedException(String objectType, Error error)
XeroMethodNotAllowedException- Parameters:
objectType- String object type being interacted with when the error was returned.error- Error object with details specific to accounting API
-
XeroMethodNotAllowedException
public XeroMethodNotAllowedException(String objectType, Error error)
XeroMethodNotAllowedException- Parameters:
objectType- String object type being interacted with when the error was returned.error- Error object with details specific to assets API
-
XeroMethodNotAllowedException
public XeroMethodNotAllowedException(String objectType, Statements error)
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
public XeroMethodNotAllowedException(String objectType, FeedConnections error)
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
public XeroMethodNotAllowedException(String objectType, Problem problem, Exception e)
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
public XeroMethodNotAllowedException(String objectType, Problem problem, Exception e)
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
-
-
Method Detail
-
statusCode
public XeroMethodNotAllowedException statusCode(Integer statusCode)
XeroMethodNotAllowedException- Parameters:
statusCode- Integer the server status code returned- Returns:
- XeroMethodNotAllowedException an instance the bad request exception
-
getStatusCode
public Integer getStatusCode()
Exception number- Returns:
- statusCode
-
setStatusCode
public void setStatusCode(Integer statusCode)
XeroMethodNotAllowedException- Parameters:
statusCode- Integer the server status code returned
-
type
public XeroMethodNotAllowedException type(String type)
XeroMethodNotAllowedException- Parameters:
type- String the server status code returned- Returns:
- XeroMethodNotAllowedException an instance the bad request exception
-
getType
public String getType()
Exception type- Returns:
- type
-
setType
public void setType(String type)
XeroMethodNotAllowedException- Parameters:
type- String the server status code returned
-
message
public XeroMethodNotAllowedException message(String message)
XeroMethodNotAllowedException- Parameters:
message- String with the details about the exception- Returns:
- XeroMethodNotAllowedException an instance the bad request exception
-
getMessage
public String getMessage()
Exception message- Overrides:
getMessagein classThrowable- Returns:
- message
-
setMessage
public void setMessage(String message)
XeroMethodNotAllowedException- Parameters:
message- String with the details about the exception
-
elements
public XeroMethodNotAllowedException elements(List<Element> elements)
XeroMethodNotAllowedException- Parameters:
elements- List<Element> with the details about the exception- Returns:
- XeroMethodNotAllowedException an instance the bad request exception
-
addElementsItem
public XeroMethodNotAllowedException addElementsItem(Element elementsItem)
XeroMethodNotAllowedException- Parameters:
elementsItem- Element object with the details about the exception- Returns:
- XeroMethodNotAllowedException an instance the bad request exception
-
getElements
public List<Element> getElements()
Array of Elements of validation Errors- Returns:
- elements
-
setElements
public void setElements(List<Element> elements)
XeroMethodNotAllowedException- Parameters:
elements- List<Element> with the details about the exception
-
statementItems
public XeroMethodNotAllowedException statementItems(List<Statement> statementItems)
XeroMethodNotAllowedException- Parameters:
statementItems- List <Statement> a list of bank statements- Returns:
- XeroMethodNotAllowedException an instance the bad request exception
-
addStatementItem
public XeroMethodNotAllowedException addStatementItem(Statement item)
XeroMethodNotAllowedException- Parameters:
item- Statement object containing bank statement details- Returns:
- XeroMethodNotAllowedException an instance the bad request exception
-
getStatementItems
public List<Statement> getStatementItems()
Array of Statements Items of Errors Array- Returns:
- statementItems
-
setStatementItems
public void setStatementItems(List<Statement> statementItems)
XeroMethodNotAllowedException- Parameters:
statementItems- List <Statement> a list of bank statements
-
feedConnectionItems
public XeroMethodNotAllowedException feedConnectionItems(List<FeedConnection> feedConnectionItems)
XeroMethodNotAllowedException- Parameters:
feedConnectionItems- List <FeedConnection> a list of feed connections- Returns:
- XeroMethodNotAllowedException an instance the bad request exception
-
addFeedConnectionItems
public XeroMethodNotAllowedException addFeedConnectionItems(FeedConnection item)
XeroMethodNotAllowedException- Parameters:
item- FeedConnection a list of feed connections- Returns:
- XeroMethodNotAllowedException an instance the bad request exception
-
getFeedConnectionItems
public List<FeedConnection> getFeedConnectionItems()
Array of FeedConnection of Errors Array- Returns:
- statementItems
-
setFeedConnectionItems
public void setFeedConnectionItems(List<FeedConnection> feedConnectionItems)
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
public List<FieldValidationErrorsElement> 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
public XeroMethodNotAllowedException payrollNzProblem(Problem problem)
XeroMethodNotAllowedException- Parameters:
problem- the validation errors in NZ Payroll- Returns:
- XeroMethodNotAllowedException an instance the bad request exception
-
getPayrollNzProblem
public Problem getPayrollNzProblem()
Exception type- Returns:
- com.xero.models.payrolluk.Problem
-
setPayrollNzProblem
public void setPayrollNzProblem(Problem problem)
XeroMethodNotAllowedException- Parameters:
problem- the validation errors in NZ Payroll
-
payrollUkProblem
public XeroMethodNotAllowedException payrollUkProblem(Problem problem)
XeroMethodNotAllowedException- Parameters:
problem- the validation errors in UK Payroll- Returns:
- XeroMethodNotAllowedException an instance the bad request exception
-
getPayrollUkProblem
public Problem getPayrollUkProblem()
Exception type- Returns:
- com.xero.models.payrolluk.Problem
-
setPayrollUkProblem
public void setPayrollUkProblem(Problem problem)
XeroMethodNotAllowedException- Parameters:
problem- the validation errors in UK Payroll
-
-