Class RequestException

    • Constructor Detail

      • RequestException

        public RequestException​(RequestError error)
        Creates an instance with an underlying error.
        Parameters:
        error - the error
      • RequestException

        public RequestException​(RequestError error,
                                String message)
        Creates an instance with an underling error and a custom message.
        Parameters:
        message - the message
        error - the error
      • RequestException

        public RequestException​(RequestError error,
                                Throwable cause)
        Creates an instance with an underlying error and an underlying cause
        Parameters:
        error - the error
        cause - the cause;
      • RequestException

        public RequestException​(RequestError error,
                                Throwable cause,
                                String message)
        Creates an instance with an underlying error, an underlying cause, and an underlying message.
        Parameters:
        error - the error
        cause - the cause;
    • Method Detail

      • error

        public RequestError error()
        Returns the underlying error.
        Returns:
        the error