Class IllegalResponseRuntimeException

  • All Implemented Interfaces:
    Serializable

    @ProviderType
    public final class IllegalResponseRuntimeException
    extends RuntimeException
    Exception is thrown when a resilient HTTP response was received, but rated illegal (e.g. beause of status code).
    See Also:
    Serialized Form
    • Constructor Detail

      • IllegalResponseRuntimeException

        public IllegalResponseRuntimeException​(CaravanHttpRequest request,
                                               String requestUri,
                                               int responseStatusCode,
                                               String responseBody,
                                               String message)
        Parameters:
        request - Request
        requestUri - Full request URI
        responseStatusCode - Response satus code
        responseBody - Response bdoy
        message - Error message
    • Method Detail

      • getRequestUri

        public String getRequestUri()
        Returns:
        Full request URI
      • getResponseStatusCode

        public int getResponseStatusCode()
        Returns:
        Response status code
      • getResponseBody

        public String getResponseBody()
        Returns:
        Response body