org.apache.hc.core5.http

## Class NoHttpResponseException

- java.lang.Object
- - java.lang.Throwable
  - - java.lang.Exception
    - - java.io.IOException
      - - org.apache.hc.core5.http.NoHttpResponseException

- All Implemented Interfaces:
    Serializable

      public class NoHttpResponseException
      extends IOException

  Signals that the target server failed to respond with a valid HTTP response.
  Since:
    4.0
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `NoHttpResponseException(String message)` Creates a new NoHttpResponseException with the specified detail message.
    `NoHttpResponseException(String message, Throwable cause)` Constructs a `NoHttpResponseException` with the specified detail message and cause.

  - ### Method Summary

    - ### Methods inherited from class java.lang.Throwable

      `addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### NoHttpResponseException

          public NoHttpResponseException(String message)

      Creates a new NoHttpResponseException with the specified detail message.
      Parameters:
        `message` - exception message

    - #### NoHttpResponseException

          public NoHttpResponseException(String message,
                                 Throwable cause)

      Constructs a `NoHttpResponseException` with the specified detail message and cause.
      Parameters:
        `message` - The exception detail message
        `cause` - The cause.
      Since:
        5.0

Copyright © 2005–2022 The Apache Software Foundation. All rights reserved.