Class Error


  • public class Error
    extends java.lang.Object
    Error response returned when the request is unsuccessful.
    • Constructor Summary

      Constructors 
      Constructor Description
      Error()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Error code​(java.lang.String code)  
      Error details​(java.lang.String details)  
      boolean equals​(java.lang.Object o)  
      java.lang.String getCode()
      An error code that identifies the type of error that occurred.
      java.lang.String getDetails()
      Additional details that can help the caller understand or fix the issue.
      java.lang.String getMessage()
      A message that describes the error condition.
      int hashCode()  
      Error message​(java.lang.String message)  
      void setCode​(java.lang.String code)  
      void setDetails​(java.lang.String details)  
      void setMessage​(java.lang.String message)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Error

        public Error()
    • Method Detail

      • code

        public Error code​(java.lang.String code)
      • getCode

        public java.lang.String getCode()
        An error code that identifies the type of error that occurred.
        Returns:
        code
      • setCode

        public void setCode​(java.lang.String code)
      • message

        public Error message​(java.lang.String message)
      • getMessage

        public java.lang.String getMessage()
        A message that describes the error condition.
        Returns:
        message
      • setMessage

        public void setMessage​(java.lang.String message)
      • details

        public Error details​(java.lang.String details)
      • getDetails

        public java.lang.String getDetails()
        Additional details that can help the caller understand or fix the issue.
        Returns:
        details
      • setDetails

        public void setDetails​(java.lang.String details)
      • equals

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

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object