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.
  • Constructor Details

    • Error

      public Error()
  • Method Details

    • title

      public Error title​(String title)
    • getTitle

      public String getTitle()
      Human readable high level error description. maximum: 255
      Returns:
      title
    • setTitle

      public void setTitle​(String title)
    • status

      public Error status​(Integer status)
    • getStatus

      public Integer getStatus()
      The numeric HTTP Status Code, e.g. 404
      Returns:
      status
    • setStatus

      public void setStatus​(Integer status)
    • detail

      public Error detail​(String detail)
    • getDetail

      public String getDetail()
      Human readable detailed error description. maximum: 255
      Returns:
      detail
    • setDetail

      public void setDetail​(String detail)
    • type

      public Error type​(Error.TypeEnum type)
    • getType

      public Error.TypeEnum getType()
      Identifies the type of error.
      Returns:
      type
    • setType

      public void setType​(Error.TypeEnum type)
    • equals

      public boolean equals​(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object