Package com.xero.models.bankfeeds
Class Error
java.lang.Object
com.xero.models.bankfeeds.Error
public class Error extends Object
On error, the API consumer will receive an HTTP response with a HTTP Status Code of 4xx or 5xx
and a Content-Type of application/problem+json.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classError.TypeEnumIdentifies the type of error. -
Constructor Summary
Constructors Constructor Description Error() -
Method Summary
Modifier and Type Method Description Errordetail(String detail)booleanequals(Object o)StringgetDetail()Human readable detailed error description.IntegergetStatus()The numeric HTTP Status Code, e.g.StringgetTitle()Human readable high level error description.Error.TypeEnumgetType()Identifies the type of error.inthashCode()voidsetDetail(String detail)voidsetStatus(Integer status)voidsetTitle(String title)voidsetType(Error.TypeEnum type)Errorstatus(Integer status)Errortitle(String title)StringtoString()Errortype(Error.TypeEnum type)
-
Constructor Details
-
Error
public Error()
-
-
Method Details
-
title
-
getTitle
Human readable high level error description. maximum: 255- Returns:
- title
-
setTitle
-
status
-
getStatus
The numeric HTTP Status Code, e.g. 404- Returns:
- status
-
setStatus
-
detail
-
getDetail
Human readable detailed error description. maximum: 255- Returns:
- detail
-
setDetail
-
type
-
getType
Identifies the type of error.- Returns:
- type
-
setType
-
equals
-
hashCode
public int hashCode() -
toString
-