Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
IOException
org.apache.commons.httpclient.HttpException
public class HttpException
extends IOException
Constructor Summary | |
| |
| |
|
Method Summary | |
Throwable |
|
String |
|
int |
|
void |
|
void |
|
void |
|
void |
|
void |
|
public HttpException()
Creates a new HttpException with a null detail message.
public HttpException(String message)
Creates a new HttpException with the specified detail message.
- Parameters:
message
- the exception detail message
public HttpException(String message, Throwable cause)
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
- Since:
- 3.0
public Throwable getCause()
Return the Throwable that caused this exception, or null if the cause is unavailable, unknown, or not a Throwable.
- Returns:
- the Throwable that caused this exception, or null if the cause is unavailable, unknown, or not a Throwable
- Since:
- 3.0
public String getReason()
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.
public int getReasonCode()
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.
public void printStackTrace()
Print this HttpException and its stack trace to the standard error stream.
- Since:
- 3.0
public void printStackTrace(PrintStream s)
Print this HttpException and its stack trace to the specified print stream.
- Parameters:
s
- the PrintStream to which the exception and its stack trace should be written
- Since:
- 3.0
public void printStackTrace(PrintWriter s)
Print this HttpException and its stack trace to the specified print writer.
- Parameters:
s
- the PrintWriter to which the exception and its stack trace should be written
- Since:
- 3.0
public void setReason(String reason)
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.
public void setReasonCode(int code)
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.