org.apache.http
Class HttpException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.http.HttpException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
MethodNotSupportedException, ProtocolException

public class HttpException
extends Exception

Signals that an HTTP exception has occurred.

Since:
4.0
See Also:
Serialized Form

Constructor Summary
HttpException()
          Creates a new HttpException with a null detail message.
HttpException(String message)
          Creates a new HttpException with the specified detail message.
HttpException(String message, Throwable cause)
          Creates a new HttpException with the specified detail message and cause.
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, 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

HttpException

public HttpException()
Creates a new HttpException with a null detail message.


HttpException

public HttpException(String message)
Creates a new HttpException with the specified detail message.

Parameters:
message - the exception detail message

HttpException

public HttpException(String message,
                     Throwable cause)
Creates a new HttpException with the specified detail message and cause.

Parameters:
message - the exception detail message
cause - the Throwable that caused this exception, or null if the cause is unavailable, unknown, or not a Throwable


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