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
-
Constructor Summary
ConstructorsConstructorDescriptionXeroConflictException(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
Modifier and TypeMethodDescriptionaddElementsItem(Element elementsItem) Add ElementsAdd Feed Connection ItemsAdd Assets Field Validation ErrorsaddStatementItem(Statement item) Add Statement ItemsInit ElementsbooleanfeedConnectionItems(List<FeedConnection> feedConnectionItems) Init Feed Connection ItemsfieldValidationErrorsElements(List<FieldValidationErrorsElement> fieldValidationErrorsElements) Init Assets Field Validation ErrorsArray 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()Init MessagepayrollNzProblem(Problem problem) Init Payroll NZ ProblempayrollUkProblem(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 CodevoidSet TypestatementItems(List<Statement> statementItems) Init Statement ItemsstatusCode(Integer statusCode) XeroConflictExceptiontoString()Init TypeMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
XeroConflictException
-
XeroConflictException
-
XeroConflictException
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
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
-
XeroConflictException
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
-
XeroConflictException
-
-
Method Details
-
statusCode
XeroConflictException- Parameters:
statusCode- Integer the server status code returned.- Returns:
- XeroConflictException an instance the conflict exception
-
getStatusCode
-
setStatusCode
Set Status Code- Parameters:
statusCode- Integer the server status code returned.
-
type
Init Type- Parameters:
type- String the server status code returned- Returns:
- XeroConflictException an instance the conflict exception
-
getType
-
setType
-
message
Init Message- Parameters:
message- String with the details about the exception- Returns:
- XeroConflictException an instance the conflict exception
-
getMessage
Exception message- Overrides:
getMessagein classThrowable- Returns:
- message
-
setMessage
Set Message- Parameters:
message- String with the details about the exception
-
elements
Init Elements- Parameters:
elements- List<Element> with the details about the exception- Returns:
- XeroConflictException an instance the conflict exception
-
addElementsItem
Add Elements- Parameters:
elementsItem- Element object with the details about the exception- Returns:
- XeroConflictException an instance the conflict exception
-
getElements
-
setElements
-
statementItems
Init Statement Items- Parameters:
statementItems- List <Statement> a list of bank statements- Returns:
- XeroConflictException an instance the conflict exception
-
addStatementItem
Add Statement Items- Parameters:
item- Statement object containing bank statement details- Returns:
- XeroConflictException an instance the conflict exception
-
getStatementItems
-
setStatementItems
-
feedConnectionItems
Init Feed Connection Items- Parameters:
feedConnectionItems- List <FeedConnection> a list of feed connections- Returns:
- XeroConflictException an instance the conflict exception
-
addFeedConnectionItems
Add Feed Connection Items- Parameters:
item- FeedConnection a list of feed connections- Returns:
- XeroConflictException an instance the conflict exception
-
getFeedConnectionItems
Array of FeedConnection of Errors Array- Returns:
- statementItems
-
setFeedConnectionItems
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
Add Assets Field Validation Errors- Parameters:
element- FieldValidationErrorsElement a list of field validation errors- Returns:
- XeroConflictException an instance the conflict exception
-
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
Init Payroll NZ Problem- Parameters:
problem- the validation errors in NZ Payroll- Returns:
- XeroConflictException an instance the conflict exception
-
getPayrollNzProblem
-
setPayrollNzProblem
Set Payroll nz Problem- Parameters:
problem- the validation errors in NZ Payroll
-
payrollUkProblem
Init Payroll UK Problem- Parameters:
problem- the validation errors in UK Payroll- Returns:
- XeroConflictException an instance the conflict exception
-
getPayrollUkProblem
-
setPayrollUkProblem
Set Payroll UK Problem- Parameters:
problem- the validation errors in UK Payroll
-
equals
-
hashCode
-
toString
-