Class ErrorDetails


  • public class ErrorDetails
    extends java.lang.Object
    This object describes errors that occur. It is only valid for responses, and ignored in requests..
    • Constructor Summary

      Constructors 
      Constructor Description
      ErrorDetails()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)
      Compares objects.
      ErrorDetails errorCode​(java.lang.String errorCode)
      errorCode.
      java.lang.String getErrorCode()
      An error code associated with the error..
      java.lang.String getMessage()
      A short error message..
      int hashCode()
      Returns the HashCode.
      ErrorDetails message​(java.lang.String message)
      message.
      void setErrorCode​(java.lang.String errorCode)
      setErrorCode.
      void setMessage​(java.lang.String message)
      setMessage.
      java.lang.String toString()
      Converts the given object to string.
      • Methods inherited from class java.lang.Object

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

      • ErrorDetails

        public ErrorDetails()
    • Method Detail

      • errorCode

        public ErrorDetails errorCode​(java.lang.String errorCode)
        errorCode.
        Returns:
        ErrorDetails
      • getErrorCode

        public java.lang.String getErrorCode()
        An error code associated with the error..
        Returns:
        errorCode
      • setErrorCode

        public void setErrorCode​(java.lang.String errorCode)
        setErrorCode.
      • message

        public ErrorDetails message​(java.lang.String message)
        message.
        Returns:
        ErrorDetails
      • getMessage

        public java.lang.String getMessage()
        A short error message..
        Returns:
        message
      • setMessage

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

        public boolean equals​(java.lang.Object o)
        Compares objects.
        Overrides:
        equals in class java.lang.Object
        Returns:
        true or false depending on comparison result.
      • hashCode

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

        public java.lang.String toString()
        Converts the given object to string.
        Overrides:
        toString in class java.lang.Object