Class NessieError


  • public class NessieError
    extends Object
    • Constructor Detail

      • NessieError

        public NessieError​(String message,
                           int status,
                           String reason,
                           String serverStackTrace)
        Deserialize error message from the server.
        Parameters:
        message - Error message
        status - HTTP status code
        serverStackTrace - exception, if present (can be empty or null
      • NessieError

        public NessieError​(String message,
                           int status,
                           String reason,
                           String serverStackTrace,
                           Exception processingException)
        Create Error.
        Parameters:
        message - Message of error.
        status - Status of error.
        reason - Reason for status.
        serverStackTrace - Server stack trace, if available.
        processingException - Any processing exceptions that happened on the client.
      • NessieError

        public NessieError​(int statusCode,
                           String reason,
                           String serverStackTrace,
                           Exception processingException)
        Create Error.
        Parameters:
        statusCode - Status of error.
        reason - Reason for status.
        serverStackTrace - Server stack trace, if available.
        processingException - Any processing exceptions that happened on the client.
    • Method Detail

      • getMessage

        public String getMessage()
      • getStatus

        public int getStatus()
      • getReason

        public String getReason()
      • getServerStackTrace

        public String getServerStackTrace()
      • getClientProcessingException

        public Exception getClientProcessingException()
      • getFullMessage

        public String getFullMessage()
        Get full error message.
        Returns:
        Full error message.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object