org.apache.commons.httpclient
public class HttpException extends IOException
Version: $Revision: 155418 $ $Date: 2005-02-26 08:01:52 -0500 (Sat, 26 Feb 2005) $
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 | |
---|---|
Throwable | getCause()
Return the Throwable that caused this exception, or null
if the cause is unavailable, unknown, or not a Throwable.
|
String | getReason()
Get the text description of the reason for an exception.
|
int | getReasonCode()
Get the status code description of the reason for an exception.
|
void | printStackTrace()
Print this HttpException and its stack trace to the standard error stream.
|
void | printStackTrace(PrintStream s)
Print this HttpException and its stack trace to the specified print stream.
|
void | printStackTrace(PrintWriter s)
Print this HttpException and its stack trace to the specified print writer.
|
void | setReason(String reason)
Sets the text description of the reason for an exception.
|
void | setReasonCode(int code)
Sets the status code description of the reason for an exception.
|
Parameters: message the exception detail message
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
Since: 3.0
Returns: the Throwable that caused this exception, or null if the cause is unavailable, unknown, or not a Throwable
Since: 3.0
Deprecated: HttpClient no longer uses this for itself. It is only provided for compatibility with existing clients, and will be removed in a future release.
Get the text description of the reason for an exception.Deprecated: HttpClient no longer uses this for itself. It is only provided for compatibility with existing clients, and will be removed in a future release.
Get the status code description of the reason for an exception.Since: 3.0
Parameters: s the PrintStream to which the exception and its stack trace should be written
Since: 3.0
Parameters: s the PrintWriter to which the exception and its stack trace should be written
Since: 3.0
Deprecated: HttpClient no longer uses this for itself. It is only provided for compatibility with existing clients, and will be removed in a future release.
Sets the text description of the reason for an exception.Parameters: reason The reason for the exception.
Deprecated: HttpClient no longer uses this for itself. It is only provided for compatibility with existing clients, and will be removed in a future release.
Sets the status code description of the reason for an exception.Parameters: code The reason for the exception. This is intended to be an HTTP status code.