| java.lang.Object java.lang.Throwable java.lang.Exception java.io.IOException org.apache.commons.httpclient.HttpException
All known Subclasses: org.apache.commons.httpclient.ProtocolException, org.apache.commons.httpclient.HttpRecoverableException, org.apache.commons.httpclient.URIException, org.apache.commons.httpclient.HttpContentTooLargeException,
HttpException | public class HttpException extends IOException (Code) | | Signals that an HTTP or HttpClient exception has occurred.
author: Laura Werner version: $Revision: 480424 $ $Date: 2006-11-29 06:56:49 +0100 (Wed, 29 Nov 2006) $ |
Constructor Summary | |
public | HttpException() Creates a new HttpException with a null detail message. | public | HttpException(String message) Creates a new HttpException with the specified detail message. | public | HttpException(String message, Throwable cause) Creates a new HttpException with the specified detail message and cause. |
Method Summary | |
public Throwable | getCause() Return the Throwable that caused this exception, or null
if the cause is unavailable, unknown, or not a Throwable. | public String | getReason() Get the text description of the reason for an exception. | public int | getReasonCode() Get the status code description of the reason for an exception. | public void | printStackTrace() Print this HttpException and its stack trace to the standard error stream. | public void | printStackTrace(PrintStream s) Print this HttpException and its stack trace to the specified print stream. | public void | printStackTrace(PrintWriter s) Print this HttpException and its stack trace to the specified print writer. | public void | setReason(String reason) Sets the text description of the reason for an exception. | public void | setReasonCode(int code) Sets the status code description of the reason for an exception.
Parameters: code - The reason for the exception. |
HttpException | public HttpException()(Code) | | Creates a new HttpException with a null detail message.
|
HttpException | public HttpException(String message)(Code) | | Creates a new HttpException with the specified detail message.
Parameters: message - the exception detail message |
HttpException | public HttpException(String message, Throwable cause)(Code) | | Creates a new HttpException with the specified detail message and cause.
Parameters: message - the exception detail message Parameters: cause - the Throwable that caused this exception, or nullif the cause is unavailable, unknown, or not a Throwable since: 3.0 |
getCause | public Throwable getCause()(Code) | | Return the Throwable that caused this exception, or null
if the cause is unavailable, unknown, or not a Throwable.
the Throwable that caused this exception, or nullif the cause is unavailable, unknown, or not a Throwable since: 3.0 |
getReason | public String getReason()(Code) | | Get the text description of the reason for an exception.
|
getReasonCode | public int getReasonCode()(Code) | | Get the status code description of the reason for an exception.
|
printStackTrace | public void printStackTrace()(Code) | | Print this HttpException and its stack trace to the standard error stream.
since: 3.0 |
printStackTrace | public void printStackTrace(PrintStream s)(Code) | | Print this HttpException and its stack trace to the specified print stream.
Parameters: s - the PrintStream to which the exception and its stack traceshould be written since: 3.0 |
printStackTrace | public void printStackTrace(PrintWriter s)(Code) | | Print this HttpException and its stack trace to the specified print writer.
Parameters: s - the PrintWriter to which the exception and its stack traceshould be written since: 3.0 |
setReason | public void setReason(String reason)(Code) | | Sets the text description of the reason for an exception.
Parameters: reason - The reason for the exception. |
setReasonCode | public void setReasonCode(int code)(Code) | | Sets the status code description of the reason for an exception.
Parameters: code - The reason for the exception. This is intended to be anHTTP status code. |
|
|