Class HttpResponseException

    • Constructor Detail

      • HttpResponseException

        public HttpResponseException​(HttpResponse response)
        Initializes a new instance of the HttpResponseException class.
        Parameters:
        response - The HttpResponse received that is associated to the exception.
      • HttpResponseException

        public HttpResponseException​(String message,
                                     HttpResponse response)
        Initializes a new instance of the HttpResponseException class.
        Parameters:
        message - The exception message.
        response - The HttpResponse received that is associated to the exception.
      • HttpResponseException

        public HttpResponseException​(HttpResponse response,
                                     Throwable cause)
        Initializes a new instance of the HttpResponseException class.
        Parameters:
        response - The HttpResponse received that is associated to the exception.
        cause - The Throwable which caused the creation of this exception.
      • HttpResponseException

        public HttpResponseException​(String message,
                                     HttpResponse response,
                                     Object value)
        Initializes a new instance of the HttpResponseException class.
        Parameters:
        message - The exception message.
        response - The HttpResponse received that is associated to the exception.
        value - The deserialized response value.
      • HttpResponseException

        public HttpResponseException​(String message,
                                     HttpResponse response,
                                     Throwable cause)
        Initializes a new instance of the HttpResponseException class.
        Parameters:
        message - The exception message.
        response - The HttpResponse received that is associated to the exception.
        cause - The Throwable which caused the creation of this exception.
      • HttpResponseException

        public HttpResponseException​(String message,
                                     HttpResponse response,
                                     Throwable cause,
                                     boolean enableSuppression,
                                     boolean writableStackTrace)
        Initializes a new instance of the HttpResponseException class.
        Parameters:
        message - The exception message.
        response - The HttpResponse received that is associated to the exception.
        cause - The Throwable which caused the creation of this exception.
        enableSuppression - Whether suppression is enabled or disabled.
        writableStackTrace - Whether the exception stack trace will be filled in.
    • Method Detail

      • getResponse

        public HttpResponse getResponse()
        Returns:
        The HttpResponse received that is associated to the exception.
      • getValue

        public Object getValue()
        Returns:
        The deserialized HTTP response value.