Package com.xero.models.payrollau
Class ModelAPIException
- java.lang.Object
-
- com.xero.models.payrollau.ModelAPIException
-
public class ModelAPIException extends Object
The object returned for a bad request
-
-
Constructor Summary
Constructors Constructor Description ModelAPIException()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)ModelAPIExceptionerrorNumber(BigDecimal errorNumber)The error numberBigDecimalgetErrorNumber()The error numberStringgetMessage()The message describing the errorStringgetType()The type of errorinthashCode()ModelAPIExceptionmessage(String message)The message describing the errorvoidsetErrorNumber(BigDecimal errorNumber)The error numbervoidsetMessage(String message)The message describing the errorvoidsetType(String type)The type of errorStringtoString()ModelAPIExceptiontype(String type)The type of error
-
-
-
Method Detail
-
errorNumber
public ModelAPIException errorNumber(BigDecimal errorNumber)
The error number- Parameters:
errorNumber- BigDecimal- Returns:
- ModelAPIException
-
getErrorNumber
public BigDecimal getErrorNumber()
The error number- Returns:
- errorNumber
-
setErrorNumber
public void setErrorNumber(BigDecimal errorNumber)
The error number- Parameters:
errorNumber- BigDecimal
-
type
public ModelAPIException type(String type)
The type of error- Parameters:
type- String- Returns:
- ModelAPIException
-
getType
public String getType()
The type of error- Returns:
- type
-
setType
public void setType(String type)
The type of error- Parameters:
type- String
-
message
public ModelAPIException message(String message)
The message describing the error- Parameters:
message- String- Returns:
- ModelAPIException
-
getMessage
public String getMessage()
The message describing the error- Returns:
- message
-
setMessage
public void setMessage(String message)
The message describing the error- Parameters:
message- String
-
-