Package com.xero.api
Class XeroBadRequestException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.xero.api.XeroException
com.xero.api.XeroBadRequestException
-
Constructor Summary
ConstructorsConstructorDescriptionXeroBadRequestException(Integer statusCode, String message) XeroBadRequestExceptionXeroBadRequestException(Integer statusCode, String message, Exception e) XeroBadRequestExceptionXeroBadRequestException(String objectType, Error error, Exception e) XeroBadRequestExceptionXeroBadRequestException(String objectType, Error error, Exception e) XeroBadRequestExceptionXeroBadRequestException(String objectType, FeedConnections error, Exception e) XeroBadRequestExceptionXeroBadRequestException(String objectType, Statements error, Exception e) XeroBadRequestExceptionXeroBadRequestException(String objectType, Employees employees, Exception e) XeroBadRequestExceptionXeroBadRequestException(String objectType, LeaveApplications leaveApplications, Exception e) XeroBadRequestExceptionXeroBadRequestException(String objectType, PayItems payItems, Exception e) XeroBadRequestExceptionXeroBadRequestException(String objectType, PayrollCalendars payrollCalendars, Exception e) XeroBadRequestExceptionXeroBadRequestException(String objectType, PayRuns payRuns, Exception e) XeroBadRequestExceptionXeroBadRequestException(String objectType, SuperFunds superFunds, Exception e) XeroBadRequestExceptionXeroBadRequestException(String objectType, Timesheets timesheets, Exception e) XeroBadRequestExceptionXeroBadRequestException(String objectType, Problem problem, Exception e) XeroBadRequestExceptionXeroBadRequestException(String objectType, Problem problem, Exception e) XeroBadRequestException -
Method Summary
Modifier and TypeMethodDescriptionaddElementsItem(Element elementsItem) Add ElementsaddEmployeeItems(Employee item) Add Payroll AU Employee itemsAdd Feed Connection ItemsAdd Assets Field Validation ErrorsaddPayItemItems(PayItem item) Add Payroll AU PayItem itemsAdd Payroll AU Calendar itemsaddPayRunItems(PayRun item) Add Payroll AU PayRun itemsaddStatementItem(Statement item) Add Statement ItemsaddSuperFundItems(SuperFund item) Add Payroll AU SuperFund itemsaddTimesheetItems(Timesheet item) Add Payroll AU Timesheet itemsInit ElementsemployeeItemsItems(List<Employee> employeeItems) Init Payroll AU Employee itemsbooleanfeedConnectionItems(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 FeedConnection of Errors ArrayArray of Assets Errors ArrayException messageArray of PayItems with Validation Error ArrayArray of PayrollCalendar with Validation Error ArrayException typeException typeArray of PayRun with Validation Error ArrayArray of Statements Items of Errors ArrayException numberArray of SuperFund with Validation Error ArrayArray of Timesheet with Validation Error ArraygetType()Exception typeinthashCode()Init MessagepayItemItems(List<PayItem> payItemItems) Init Payroll AU PayItem itemspayrollCalendarItems(List<PayrollCalendar> payrollCalendarItems) Init Payroll AU Calendar itemspayrollNzProblem(Problem problem) Init Payroll NZ ProblempayrollUkProblem(Problem problem) Init Payroll UK ProblempayRunItems(List<PayRun> payRunItems) Init Payroll AU PayRun itemsvoidsetElements(List<Element> elements) Set ElementsvoidsetEmployeeItems(List<Employee> employeeItems) Set Payroll AU Employee itemsvoidsetFeedConnectionItems(List<FeedConnection> feedConnectionItems) Set Feed Connection ItemsvoidsetFieldValidationErrorsElements(List<FieldValidationErrorsElement> fieldValidationErrorsElements) Set Assets Field Validation ErrorsvoidsetMessage(String message) Set MessagevoidsetPayItemItems(List<PayItem> payItems) Set Payroll AU PayItem itemsvoidsetPayrollCalendarItems(List<PayrollCalendar> payrollCalendarItems) Set Payroll AU Calendar itemsvoidsetPayrollNzProblem(Problem problem) Set Payroll NZ ProblemvoidsetPayrollUkProblem(Problem problem) Set Payroll UK ProblemvoidsetPayRunItems(List<PayRun> payRunItems) Set Payroll AU PayRun itemsvoidsetStatementItems(List<Statement> statementItems) Set Statement ItemsvoidsetStatusCode(Integer statusCode) Set StatusCodevoidsetSuperFundItems(List<SuperFund> superFundItems) Set Payroll AU SuperFund itemsvoidsetTimesheetItems(List<Timesheet> timesheetItems) Set Payroll AU Timesheet itemsvoidSet TypestatementItems(List<Statement> statementItems) Init Statement ItemsstatusCode(Integer statusCode) Init StatusCodesuperFundItems(List<SuperFund> superFundItems) Init Payroll AU SuperFund itemstimesheetItems(List<Timesheet> timesheetItems) Initilize Payroll AU Timesheet itemstoString()Init TypeMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
XeroBadRequestException
XeroBadRequestException- Parameters:
objectType- String object type being interacted with when the error was returned.error- Error object with details specific to accounting APIe- Exception object with details about the original exception
-
XeroBadRequestException
XeroBadRequestException- Parameters:
objectType- String object type being interacted with when the error was returned.error- Error object with details specific to Assets APIe- Exception object with details about the original exception
-
XeroBadRequestException
XeroBadRequestException- Parameters:
objectType- String object type being interacted with when the error was returned.error- Statements object with details specific to Bank Feeds APIe- Exception object with details about the original exception
-
XeroBadRequestException
XeroBadRequestException- Parameters:
objectType- String object type being interacted with when the error was returned.error- FeedConnections object with details specific to Bank Feeds APIe- Exception object with details about the original exception
-
XeroBadRequestException
XeroBadRequestException- 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
-
XeroBadRequestException
XeroBadRequestException- Parameters:
objectType- String object type being interacted with when the error was returned.problem- Problem object with details specific to NZ Payroll APIe- Exception object with details about the original exception
-
XeroBadRequestException
XeroBadRequestException- Parameters:
objectType- String object type being interacted with when the error was returned.employees- Employees object with details specific to AU Payroll APIe- Exception object with details about the original exception
-
XeroBadRequestException
XeroBadRequestException- Parameters:
objectType- String object type being interacted with when the error was returned.leaveApplications- LeaveApplications object with details specific to AU Payroll APIe- Exception object with details about the original exception
-
XeroBadRequestException
XeroBadRequestException- Parameters:
objectType- String object type being interacted with when the error was returned.payItems- PayItems object with details specific to AU Payroll APIe- Exception object with details about the original exception
-
XeroBadRequestException
XeroBadRequestException- Parameters:
objectType- String object type being interacted with when the error was returned.payrollCalendars- PayrollCalendars object with details specific to AU Payroll APIe- Exception object with details about the original exception
-
XeroBadRequestException
XeroBadRequestException- Parameters:
objectType- String object type being interacted with when the error was returned.superFunds- SuperFunds object with details specific to AU Payroll APIe- Exception object with details about the original exception
-
XeroBadRequestException
XeroBadRequestException- Parameters:
objectType- String object type being interacted with when the error was returned.timesheets- Timesheets object with details specific to AU Payroll APIe- Exception object with details about the original exception
-
XeroBadRequestException
XeroBadRequestException- Parameters:
objectType- String object type being interacted with when the error was returned.payRuns- PayRuns object with details specific to AU Payroll APIe- Exception object with details about the original exception
-
XeroBadRequestException
-
XeroBadRequestException
-
-
Method Details
-
statusCode
Init StatusCode- Parameters:
statusCode- Integer the server status code returned- Returns:
- XeroBadRequestException an instance the bad request exception
-
getStatusCode
-
setStatusCode
Set StatusCode- Parameters:
statusCode- Integer the server status code returned
-
type
Init Type- Parameters:
type- String the server status code returned- Returns:
- XeroBadRequestException an instance the bad request exception
-
getType
-
setType
-
message
Init Message- Parameters:
message- String with the details about the exception- Returns:
- XeroBadRequestException an instance the bad request 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:
- XeroBadRequestException an instance the bad request exception
-
addElementsItem
Add Elements- Parameters:
elementsItem- Element object with the details about the exception- Returns:
- XeroBadRequestException an instance the bad request exception
-
getElements
-
setElements
-
statementItems
Init Statement Items- Parameters:
statementItems- List <Statement> a list of bank statements- Returns:
- XeroBadRequestException an instance the bad request exception
-
addStatementItem
Add Statement Items- Parameters:
item- Statement object containing bank statement details- Returns:
- XeroBadRequestException an instance the bad request exception
-
getStatementItems
-
setStatementItems
-
feedConnectionItems
Init Feed Connection Items- Parameters:
feedConnectionItems- List <FeedConnection> a list of feed connections- Returns:
- XeroBadRequestException an instance the bad request exception
-
addFeedConnectionItems
Add Feed Connection Items- Parameters:
item- FeedConnection a list of feed connections- Returns:
- XeroBadRequestException an instance the bad request 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 XeroBadRequestException fieldValidationErrorsElements(List<FieldValidationErrorsElement> fieldValidationErrorsElements) Init Assets Field Validation Errors- Parameters:
fieldValidationErrorsElements- List <FieldValidationErrorsElement> a list of field validation errors- Returns:
- XeroBadRequestException an instance the bad request exception
-
addFieldValidationErrorsElement
public XeroBadRequestException addFieldValidationErrorsElement(FieldValidationErrorsElement element) Add Assets Field Validation Errors- Parameters:
element- FieldValidationErrorsElement a list of field validation errors- Returns:
- XeroBadRequestException an instance the bad request exception
-
getFieldValidationErrorsElements
Array of Assets Errors Array- Returns:
- List<FieldValidationErrorsElement>
-
setFieldValidationErrorsElements
public void setFieldValidationErrorsElements(List<FieldValidationErrorsElement> fieldValidationErrorsElements) Set Assets Field Validation Errors- Parameters:
fieldValidationErrorsElements- List <FieldValidationErrorsElement> a list of field validation errors
-
payrollUkProblem
Init Payroll UK Problem- Parameters:
problem- the validation errors in UK Payroll- Returns:
- XeroBadRequestException an instance the bad request exception
-
getPayrollUkProblem
-
setPayrollUkProblem
Set Payroll UK Problem- Parameters:
problem- the validation errors in UK Payroll
-
payrollNzProblem
Init Payroll NZ Problem- Parameters:
problem- the validation errors in NZ Payroll- Returns:
- XeroBadRequestException an instance the bad request exception
-
getPayrollNzProblem
-
setPayrollNzProblem
Set Payroll NZ Problem- Parameters:
problem- the validation errors in NZ Payroll
-
employeeItemsItems
Init Payroll AU Employee items- Parameters:
employeeItems- List <com.xero.models.payrollau.Employee> with validation errors in AU Payroll- Returns:
- XeroBadRequestException an instance the bad request exception
-
addEmployeeItems
Add Payroll AU Employee items- Parameters:
item- Employee with validation errors in AU Payroll- Returns:
- XeroBadRequestException an instance the bad request exception
-
getEmployeeItems
-
setEmployeeItems
-
payItemItems
Init Payroll AU PayItem items- Parameters:
payItemItems- List <com.xero.models.payrollau.PayItem> with validation errors in AU Payroll- Returns:
- XeroBadRequestException an instance the bad request exception
-
addPayItemItems
Add Payroll AU PayItem items- Parameters:
item- com.xero.models.payrollau.PayItem with validation errors in AU Payroll- Returns:
- XeroBadRequestException an instance the bad request exception
-
getPayItemItems
-
setPayItemItems
-
payRunItems
Init Payroll AU PayRun items- Parameters:
payRunItems- List <com.xero.models.payrollau.PayRun> with validation errors in AU Payroll- Returns:
- XeroBadRequestException an instance the bad request exception
-
addPayRunItems
Add Payroll AU PayRun items- Parameters:
item- com.xero.models.payrollau.PayRun with validation errors in AU Payroll- Returns:
- XeroBadRequestException an instance the bad request exception
-
getPayRunItems
-
setPayRunItems
-
payrollCalendarItems
Init Payroll AU Calendar items- Parameters:
payrollCalendarItems- List <com.xero.models.payrollau.PayrollCalendar> with validation errors in AU Payroll- Returns:
- XeroBadRequestException an instance the bad request exception
-
addPayrollCalendarItems
Add Payroll AU Calendar items- Parameters:
item- com.xero.models.payrollau.PayrollCalendar with validation errors in AU Payroll- Returns:
- XeroBadRequestException an instance the bad request exception
-
getPayrollCalendarItems
Array of PayrollCalendar with Validation Error Array- Returns:
- payrollCalendarItems
-
setPayrollCalendarItems
Set Payroll AU Calendar items- Parameters:
payrollCalendarItems- List <com.xero.models.payrollau.PayrollCalendar> with validation errors in AU Payroll
-
superFundItems
Init Payroll AU SuperFund items- Parameters:
superFundItems- List <com.xero.models.payrollau.SuperFund> with validation errors in AU Payroll- Returns:
- XeroBadRequestException an instance the bad request exception
-
addSuperFundItems
Add Payroll AU SuperFund items- Parameters:
item- com.xero.models.payrollau.SuperFund with validation errors in AU Payroll- Returns:
- XeroBadRequestException an instance the bad request exception
-
getSuperFundItems
-
setSuperFundItems
-
timesheetItems
Initilize Payroll AU Timesheet items- Parameters:
timesheetItems- List <com.xero.models.payrollau.Timesheet> with validation errors in AU Payroll- Returns:
- XeroBadRequestException an instance the bad request exception
-
addTimesheetItems
Add Payroll AU Timesheet items- Parameters:
item- com.xero.models.payrollau.Timesheet with validation errors in AU Payroll- Returns:
- XeroBadRequestException an instance the bad request exception
-
getTimesheetItems
-
setTimesheetItems
-
equals
-
hashCode
-
toString
-