Package org.apache.http
Class HttpException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.http.HttpException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
MethodNotSupportedException,ProtocolException,TunnelRefusedException
public class HttpException extends Exception
Signals that an HTTP exception has occurred.
- Version:
- $Revision: 618017 $ $Date: 2008-02-03 08:42:22 -0800 (Sun, 03 Feb 2008) $
- Author:
- Laura Werner
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description 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
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
HttpException
public HttpException()Creates a new HttpException with a null detail message. -
HttpException
Creates a new HttpException with the specified detail message.- Parameters:
message- the exception detail message
-
HttpException
Creates a new HttpException with the specified detail message and cause.- Parameters:
message- the exception detail messagecause- the Throwable that caused this exception, or null if the cause is unavailable, unknown, or not a Throwable
-