Class ErrorResponseException

    • Constructor Detail

      • ErrorResponseException

        public ErrorResponseException​(long code,
                                      String message)
        Creates a ErrorResponseException without additional data.
        Parameters:
        code - The error type that occurred
        message - A short description of the error
      • ErrorResponseException

        public ErrorResponseException​(long code,
                                      String message,
                                      com.google.gson.JsonElement data)
        Creates a ErrorResponseException with additional data.
        Parameters:
        code - The error type that occurred
        message - A short description of the error
        data - Additional information about the error
    • Method Detail

      • getErrorCode

        public long getErrorCode()
        Getter for error code.
        Returns:
        A number that indicates the error type that occurred
      • getErrorData

        public Optional<com.google.gson.JsonElement> getErrorData()
        Getter for error data.
        Returns:
        A value that contains additional information about the error