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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Errordetail(String detail)Human readable detailed error description.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)Human readable detailed error description.voidsetStatus(Integer status)The numeric HTTP Status Code, e.g.voidsetTitle(String title)Human readable high level error description.voidsetType(Error.TypeEnum type)Identifies the type of error.Errorstatus(Integer status)The numeric HTTP Status Code, e.g.Errortitle(String title)Human readable high level error description.StringtoString()Errortype(Error.TypeEnum type)Identifies the type of error.
-
-
-
Method Detail
-
title
public Error title(String title)
Human readable high level error description.- Parameters:
title- String- Returns:
- Error
-
getTitle
public String getTitle()
Human readable high level error description. maximum: 255- Returns:
- title
-
setTitle
public void setTitle(String title)
Human readable high level error description.- Parameters:
title- String
-
status
public Error status(Integer status)
The numeric HTTP Status Code, e.g. 404- Parameters:
status- Integer- Returns:
- Error
-
getStatus
public Integer getStatus()
The numeric HTTP Status Code, e.g. 404- Returns:
- status
-
setStatus
public void setStatus(Integer status)
The numeric HTTP Status Code, e.g. 404- Parameters:
status- Integer
-
detail
public Error detail(String detail)
Human readable detailed error description.- Parameters:
detail- String- Returns:
- Error
-
getDetail
public String getDetail()
Human readable detailed error description. maximum: 255- Returns:
- detail
-
setDetail
public void setDetail(String detail)
Human readable detailed error description.- Parameters:
detail- String
-
type
public Error type(Error.TypeEnum type)
Identifies the type of error.- Parameters:
type- TypeEnum- Returns:
- Error
-
getType
public Error.TypeEnum getType()
Identifies the type of error.- Returns:
- type
-
setType
public void setType(Error.TypeEnum type)
Identifies the type of error.- Parameters:
type- TypeEnum
-
-