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
-
- All Implemented Interfaces:
Serializable
public class XeroBadRequestException extends XeroException
handle bad request exception- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description XeroBadRequestException(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description XeroBadRequestExceptionaddElementsItem(Element elementsItem)Add ElementsXeroBadRequestExceptionaddEmployeeItems(Employee item)Add Payroll AU Employee itemsXeroBadRequestExceptionaddFeedConnectionItems(FeedConnection item)Add Feed Connection ItemsXeroBadRequestExceptionaddFieldValidationErrorsElement(FieldValidationErrorsElement element)Add Assets Field Validation ErrorsXeroBadRequestExceptionaddPayItemItems(PayItem item)Add Payroll AU PayItem itemsXeroBadRequestExceptionaddPayrollCalendarItems(PayrollCalendar item)Add Payroll AU Calendar itemsXeroBadRequestExceptionaddPayRunItems(PayRun item)Add Payroll AU PayRun itemsXeroBadRequestExceptionaddStatementItem(Statement item)Add Statement ItemsXeroBadRequestExceptionaddSuperFundItems(SuperFund item)Add Payroll AU SuperFund itemsXeroBadRequestExceptionaddTimesheetItems(Timesheet item)Add Payroll AU Timesheet itemsXeroBadRequestExceptionelements(List<Element> elements)Init ElementsXeroBadRequestExceptionemployeeItemsItems(List<Employee> employeeItems)Init Payroll AU Employee itemsbooleanequals(Object o)XeroBadRequestExceptionfeedConnectionItems(List<FeedConnection> feedConnectionItems)Init Feed Connection ItemsXeroBadRequestExceptionfieldValidationErrorsElements(List<FieldValidationErrorsElement> fieldValidationErrorsElements)Init Assets Field Validation ErrorsList<Element>getElements()Array of Elements of validation ErrorsList<Employee>getEmployeeItems()Array of FeedConnection of Errors ArrayList<FeedConnection>getFeedConnectionItems()Array of FeedConnection of Errors ArrayList<FieldValidationErrorsElement>getFieldValidationErrorsElements()Array of Assets Errors ArrayStringgetMessage()Exception messageList<PayItem>getPayItemItems()Array of PayItems with Validation Error ArrayList<PayrollCalendar>getPayrollCalendarItems()Array of PayrollCalendar with Validation Error ArrayProblemgetPayrollNzProblem()Exception typeProblemgetPayrollUkProblem()Exception typeList<PayRun>getPayRunItems()Array of PayRun with Validation Error ArrayList<Statement>getStatementItems()Array of Statements Items of Errors ArrayIntegergetStatusCode()Exception numberList<SuperFund>getSuperFundItems()Array of SuperFund with Validation Error ArrayList<Timesheet>getTimesheetItems()Array of Timesheet with Validation Error ArrayStringgetType()Exception typeinthashCode()XeroBadRequestExceptionmessage(String message)Init MessageXeroBadRequestExceptionpayItemItems(List<PayItem> payItemItems)Init Payroll AU PayItem itemsXeroBadRequestExceptionpayrollCalendarItems(List<PayrollCalendar> payrollCalendarItems)Init Payroll AU Calendar itemsXeroBadRequestExceptionpayrollNzProblem(Problem problem)Init Payroll NZ ProblemXeroBadRequestExceptionpayrollUkProblem(Problem problem)Init Payroll UK ProblemXeroBadRequestExceptionpayRunItems(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 itemsvoidsetType(String type)Set TypeXeroBadRequestExceptionstatementItems(List<Statement> statementItems)Init Statement ItemsXeroBadRequestExceptionstatusCode(Integer statusCode)Init StatusCodeXeroBadRequestExceptionsuperFundItems(List<SuperFund> superFundItems)Init Payroll AU SuperFund itemsXeroBadRequestExceptiontimesheetItems(List<Timesheet> timesheetItems)Initilize Payroll AU Timesheet itemsStringtoString()XeroBadRequestExceptiontype(String type)Init Type-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
Constructor Detail
-
XeroBadRequestException
public XeroBadRequestException(String objectType, Error error, Exception e)
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
public XeroBadRequestException(String objectType, Error error, Exception e)
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
public XeroBadRequestException(String objectType, Statements error, Exception e)
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
public XeroBadRequestException(String objectType, FeedConnections error, Exception e)
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
public XeroBadRequestException(String objectType, Problem problem, Exception e)
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
public XeroBadRequestException(String objectType, Problem problem, Exception e)
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
public XeroBadRequestException(String objectType, Employees employees, Exception e)
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
public XeroBadRequestException(String objectType, LeaveApplications leaveApplications, Exception e)
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
public XeroBadRequestException(String objectType, PayItems payItems, Exception e)
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
public XeroBadRequestException(String objectType, PayrollCalendars payrollCalendars, Exception e)
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
public XeroBadRequestException(String objectType, SuperFunds superFunds, Exception e)
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
public XeroBadRequestException(String objectType, Timesheets timesheets, Exception e)
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
public XeroBadRequestException(String objectType, PayRuns payRuns, Exception e)
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
public XeroBadRequestException(Integer statusCode, String message)
XeroBadRequestException- Parameters:
statusCode- Integer the server status code returned.message- String with details about the exception
-
XeroBadRequestException
public XeroBadRequestException(Integer statusCode, String message, Exception e)
XeroBadRequestException- Parameters:
statusCode- Integer the server status code returned.message- String with details about the exceptione- Exception object with details about the original exception
-
-
Method Detail
-
statusCode
public XeroBadRequestException statusCode(Integer statusCode)
Init StatusCode- Parameters:
statusCode- Integer the server status code returned- Returns:
- XeroBadRequestException an instance the bad request exception
-
getStatusCode
public Integer getStatusCode()
Exception number- Returns:
- statusCode
-
setStatusCode
public void setStatusCode(Integer statusCode)
Set StatusCode- Parameters:
statusCode- Integer the server status code returned
-
type
public XeroBadRequestException type(String type)
Init Type- Parameters:
type- String the server status code returned- Returns:
- XeroBadRequestException an instance the bad request 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 XeroBadRequestException message(String message)
Init Message- Parameters:
message- String with the details about the exception- Returns:
- XeroBadRequestException an instance the bad request 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 XeroBadRequestException elements(List<Element> elements)
Init Elements- Parameters:
elements- List<Element> with the details about the exception- Returns:
- XeroBadRequestException an instance the bad request exception
-
addElementsItem
public XeroBadRequestException addElementsItem(Element elementsItem)
Add Elements- Parameters:
elementsItem- Element object with the details about the exception- Returns:
- XeroBadRequestException 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)
Set Elements- Parameters:
elements- List<Element> with the details about the exception
-
statementItems
public XeroBadRequestException statementItems(List<Statement> statementItems)
Init Statement Items- Parameters:
statementItems- List <Statement> a list of bank statements- Returns:
- XeroBadRequestException an instance the bad request exception
-
addStatementItem
public XeroBadRequestException addStatementItem(Statement item)
Add Statement Items- Parameters:
item- Statement object containing bank statement details- Returns:
- XeroBadRequestException 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)
Set Statement Items- Parameters:
statementItems- List <Statement> a list of bank statements
-
feedConnectionItems
public XeroBadRequestException feedConnectionItems(List<FeedConnection> feedConnectionItems)
Init Feed Connection Items- Parameters:
feedConnectionItems- List <FeedConnection> a list of feed connections- Returns:
- XeroBadRequestException an instance the bad request exception
-
addFeedConnectionItems
public XeroBadRequestException addFeedConnectionItems(FeedConnection item)
Add Feed Connection Items- Parameters:
item- FeedConnection a list of feed connections- Returns:
- XeroBadRequestException 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)
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
public List<FieldValidationErrorsElement> 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
public XeroBadRequestException payrollUkProblem(Problem problem)
Init Payroll UK Problem- Parameters:
problem- the validation errors in UK Payroll- Returns:
- XeroBadRequestException an instance the bad request 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
-
payrollNzProblem
public XeroBadRequestException payrollNzProblem(Problem problem)
Init Payroll NZ Problem- Parameters:
problem- the validation errors in NZ Payroll- Returns:
- XeroBadRequestException an instance the bad request exception
-
getPayrollNzProblem
public Problem getPayrollNzProblem()
Exception type- Returns:
- com.xero.models.payrollnz.Problem
-
setPayrollNzProblem
public void setPayrollNzProblem(Problem problem)
Set Payroll NZ Problem- Parameters:
problem- the validation errors in NZ Payroll
-
employeeItemsItems
public XeroBadRequestException employeeItemsItems(List<Employee> employeeItems)
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
public XeroBadRequestException addEmployeeItems(Employee item)
Add Payroll AU Employee items- Parameters:
item- Employee with validation errors in AU Payroll- Returns:
- XeroBadRequestException an instance the bad request exception
-
getEmployeeItems
public List<Employee> getEmployeeItems()
Array of FeedConnection of Errors Array- Returns:
- statementItems
-
setEmployeeItems
public void setEmployeeItems(List<Employee> employeeItems)
Set Payroll AU Employee items- Parameters:
employeeItems- List <com.xero.models.payrollau.Employee> with validation errors in AU Payroll
-
payItemItems
public XeroBadRequestException payItemItems(List<PayItem> 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
public XeroBadRequestException addPayItemItems(PayItem item)
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
public List<PayItem> getPayItemItems()
Array of PayItems with Validation Error Array- Returns:
- payItems
-
setPayItemItems
public void setPayItemItems(List<PayItem> payItems)
Set Payroll AU PayItem items- Parameters:
payItems- List <com.xero.models.payrollau.PayItem> with validation errors in AU Payroll
-
payRunItems
public XeroBadRequestException payRunItems(List<PayRun> 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
public XeroBadRequestException addPayRunItems(PayRun item)
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
public List<PayRun> getPayRunItems()
Array of PayRun with Validation Error Array- Returns:
- payRunItems
-
setPayRunItems
public void setPayRunItems(List<PayRun> payRunItems)
Set Payroll AU PayRun items- Parameters:
payRunItems- List <com.xero.models.payrollau.PayRun> with validation errors in AU Payroll
-
payrollCalendarItems
public XeroBadRequestException payrollCalendarItems(List<PayrollCalendar> 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
public XeroBadRequestException addPayrollCalendarItems(PayrollCalendar item)
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
public List<PayrollCalendar> getPayrollCalendarItems()
Array of PayrollCalendar with Validation Error Array- Returns:
- payrollCalendarItems
-
setPayrollCalendarItems
public void setPayrollCalendarItems(List<PayrollCalendar> payrollCalendarItems)
Set Payroll AU Calendar items- Parameters:
payrollCalendarItems- List <com.xero.models.payrollau.PayrollCalendar> with validation errors in AU Payroll
-
superFundItems
public XeroBadRequestException superFundItems(List<SuperFund> 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
public XeroBadRequestException addSuperFundItems(SuperFund item)
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
public List<SuperFund> getSuperFundItems()
Array of SuperFund with Validation Error Array- Returns:
- superFundItems
-
setSuperFundItems
public void setSuperFundItems(List<SuperFund> superFundItems)
Set Payroll AU SuperFund items- Parameters:
superFundItems- List <com.xero.models.payrollau.SuperFund> with validation errors in AU Payroll
-
timesheetItems
public XeroBadRequestException timesheetItems(List<Timesheet> 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
public XeroBadRequestException addTimesheetItems(Timesheet item)
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
public List<Timesheet> getTimesheetItems()
Array of Timesheet with Validation Error Array- Returns:
- timesheetItems
-
setTimesheetItems
public void setTimesheetItems(List<Timesheet> timesheetItems)
Set Payroll AU Timesheet items- Parameters:
timesheetItems- List <com.xero.models.payrollau.Timesheet> with validation errors in AU Payroll
-
-