Package com.xero.api
Class XeroConflictException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.xero.api.XeroException
-
- com.xero.api.XeroConflictException
-
- All Implemented Interfaces:
Serializable
public class XeroConflictException extends XeroException
handle bank feed conflict exception- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description XeroConflictException(Integer statusCode, String message)XeroConflictExceptionXeroConflictException(String objectType, Error error)XeroConflictExceptionXeroConflictException(String objectType, Error error)XeroConflictExceptionXeroConflictException(String objectType, FeedConnections error)XeroConflictExceptionXeroConflictException(String objectType, Statements error)XeroConflictExceptionXeroConflictException(String objectType, Problem problem, Exception e)XeroConflictExceptionXeroConflictException(String objectType, Problem problem)XeroConflictException
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description XeroConflictExceptionaddElementsItem(Element elementsItem)Add ElementsXeroConflictExceptionaddFeedConnectionItems(FeedConnection item)Add Feed Connection ItemsXeroConflictExceptionaddFieldValidationErrorsElement(FieldValidationErrorsElement element)Add Assets Field Validation ErrorsXeroConflictExceptionaddStatementItem(Statement item)Add Statement ItemsXeroConflictExceptionelements(List<Element> elements)Init Elementsbooleanequals(Object o)XeroConflictExceptionfeedConnectionItems(List<FeedConnection> feedConnectionItems)Init Feed Connection ItemsXeroConflictExceptionfieldValidationErrorsElements(List<FieldValidationErrorsElement> fieldValidationErrorsElements)Init Assets Field Validation ErrorsList<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()XeroConflictExceptionmessage(String message)Init MessageXeroConflictExceptionpayrollNzProblem(Problem problem)Init Payroll NZ ProblemXeroConflictExceptionpayrollUkProblem(Problem problem)Init Payroll UK ProblemvoidsetElements(List<Element> elements)Set ElementsvoidsetFeedConnectionItems(List<FeedConnection> feedConnectionItems)Set Feed Connection ItemsvoidsetFieldValidationErrorsElements(List<FieldValidationErrorsElement> fieldValidationErrorsElements)Set Assets Field Validation ErrorsvoidsetMessage(String message)Set MessagevoidsetPayrollNzProblem(Problem problem)Set Payroll nz ProblemvoidsetPayrollUkProblem(Problem problem)Set Payroll UK ProblemvoidsetStatementItems(List<Statement> statementItems)Set Statement ItemsvoidsetStatusCode(Integer statusCode)Set Status CodevoidsetType(String type)Set TypeXeroConflictExceptionstatementItems(List<Statement> statementItems)Init Statement ItemsXeroConflictExceptionstatusCode(Integer statusCode)XeroConflictExceptionStringtoString()XeroConflictExceptiontype(String type)Init Type-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
Constructor Detail
-
XeroConflictException
public XeroConflictException(String objectType, Error error)
XeroConflictException- Parameters:
objectType- String object type being interacted with when the error was returned.error- Error object with details specific to accounting API
-
XeroConflictException
public XeroConflictException(String objectType, Error error)
XeroConflictException- Parameters:
objectType- String object type being interacted with when the error was returned.error- Error object with details specific to assets API
-
XeroConflictException
public XeroConflictException(String objectType, Statements error)
XeroConflictException- Parameters:
objectType- String object type being interacted with when the error was returned.error- Statements object with details specific to Bank Feeds API
-
XeroConflictException
public XeroConflictException(String objectType, FeedConnections error)
XeroConflictException- Parameters:
objectType- String object type being interacted with when the error was returned.error- FeedConnections object with details specific to Bank Feeds API
-
XeroConflictException
public XeroConflictException(String objectType, Problem problem)
XeroConflictException- Parameters:
objectType- String object type being interacted with when the error was returned.problem- Problem object with details specific to UK Payroll API
-
XeroConflictException
public XeroConflictException(String objectType, Problem problem, Exception e)
XeroConflictException- 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 XeroConflictException statusCode(Integer statusCode)
XeroConflictException- Parameters:
statusCode- Integer the server status code returned.- Returns:
- XeroConflictException an instance the conflict exception
-
getStatusCode
public Integer getStatusCode()
Exception number- Returns:
- statusCode
-
setStatusCode
public void setStatusCode(Integer statusCode)
Set Status Code- Parameters:
statusCode- Integer the server status code returned.
-
type
public XeroConflictException type(String type)
Init Type- Parameters:
type- String the server status code returned- Returns:
- XeroConflictException an instance the conflict exception
-
getType
public String getType()
Exception type- Returns:
- type
-
setType
public void setType(String type)
Set Type- Parameters:
type- String the server status code returned
-
message
public XeroConflictException message(String message)
Init Message- Parameters:
message- String with the details about the exception- Returns:
- XeroConflictException an instance the conflict exception
-
getMessage
public String getMessage()
Exception message- Overrides:
getMessagein classThrowable- Returns:
- message
-
setMessage
public void setMessage(String message)
Set Message- Parameters:
message- String with the details about the exception
-
elements
public XeroConflictException elements(List<Element> elements)
Init Elements- Parameters:
elements- List<Element> with the details about the exception- Returns:
- XeroConflictException an instance the conflict exception
-
addElementsItem
public XeroConflictException addElementsItem(Element elementsItem)
Add Elements- Parameters:
elementsItem- Element object with the details about the exception- Returns:
- XeroConflictException an instance the conflict exception
-
getElements
public List<Element> getElements()
Array of Elements of validation Errors- Returns:
- elements
-
setElements
public void setElements(List<Element> elements)
Set Elements- Parameters:
elements- List<Element> with the details about the exception
-
statementItems
public XeroConflictException statementItems(List<Statement> statementItems)
Init Statement Items- Parameters:
statementItems- List <Statement> a list of bank statements- Returns:
- XeroConflictException an instance the conflict exception
-
addStatementItem
public XeroConflictException addStatementItem(Statement item)
Add Statement Items- Parameters:
item- Statement object containing bank statement details- Returns:
- XeroConflictException an instance the conflict exception
-
getStatementItems
public List<Statement> getStatementItems()
Array of Statements Items of Errors Array- Returns:
- statementItems
-
setStatementItems
public void setStatementItems(List<Statement> statementItems)
Set Statement Items- Parameters:
statementItems- List <Statement> a list of bank statements
-
feedConnectionItems
public XeroConflictException feedConnectionItems(List<FeedConnection> feedConnectionItems)
Init Feed Connection Items- Parameters:
feedConnectionItems- List <FeedConnection> a list of feed connections- Returns:
- XeroConflictException an instance the conflict exception
-
addFeedConnectionItems
public XeroConflictException addFeedConnectionItems(FeedConnection item)
Add Feed Connection Items- Parameters:
item- FeedConnection a list of feed connections- Returns:
- XeroConflictException an instance the conflict exception
-
getFeedConnectionItems
public List<FeedConnection> getFeedConnectionItems()
Array of FeedConnection of Errors Array- Returns:
- statementItems
-
setFeedConnectionItems
public void setFeedConnectionItems(List<FeedConnection> feedConnectionItems)
Set Feed Connection Items- Parameters:
feedConnectionItems- List <FeedConnection> a list of feed connections
-
fieldValidationErrorsElements
public XeroConflictException fieldValidationErrorsElements(List<FieldValidationErrorsElement> fieldValidationErrorsElements)
Init Assets Field Validation Errors- Parameters:
fieldValidationErrorsElements- List <FieldValidationErrorsElement> a list of field validation errors- Returns:
- XeroConflictException an instance the conflict exception
-
addFieldValidationErrorsElement
public XeroConflictException addFieldValidationErrorsElement(FieldValidationErrorsElement element)
Add Assets Field Validation Errors- Parameters:
element- FieldValidationErrorsElement a list of field validation errors- Returns:
- XeroConflictException an instance the conflict exception
-
getFieldValidationErrorsElements
public List<FieldValidationErrorsElement> getFieldValidationErrorsElements()
Array of Assets Errors Array- Returns:
- statementItems
-
setFieldValidationErrorsElements
public void setFieldValidationErrorsElements(List<FieldValidationErrorsElement> fieldValidationErrorsElements)
Set Assets Field Validation Errors- Parameters:
fieldValidationErrorsElements- List <FieldValidationErrorsElement> a list of field validation errors
-
payrollNzProblem
public XeroConflictException payrollNzProblem(Problem problem)
Init Payroll NZ Problem- Parameters:
problem- the validation errors in NZ Payroll- Returns:
- XeroConflictException an instance the conflict exception
-
getPayrollNzProblem
public Problem getPayrollNzProblem()
Exception type- Returns:
- com.xero.models.payrolluk.Problem
-
setPayrollNzProblem
public void setPayrollNzProblem(Problem problem)
Set Payroll nz Problem- Parameters:
problem- the validation errors in NZ Payroll
-
payrollUkProblem
public XeroConflictException payrollUkProblem(Problem problem)
Init Payroll UK Problem- Parameters:
problem- the validation errors in UK Payroll- Returns:
- XeroConflictException an instance the conflict exception
-
getPayrollUkProblem
public Problem getPayrollUkProblem()
Exception type- Returns:
- com.xero.models.payrolluk.Problem
-
setPayrollUkProblem
public void setPayrollUkProblem(Problem problem)
Set Payroll UK Problem- Parameters:
problem- the validation errors in UK Payroll
-
-