org.apache.commons.httpclient
public class URIException extends HttpException
Version: $Revision: 480424 $ $Date: 2002/03/14 15:14:01
| Field Summary | |
|---|---|
| static int | ESCAPING
The URI escape encoding and decoding error. |
| static int | PARSING
The URI parsing error. |
| static int | PUNYCODE
The DNS punycode encoding or decoding error. |
| protected String | reason
The reason message. |
| protected int | reasonCode
The reason code. |
| static int | UNKNOWN
No specified reason code. |
| static int | UNSUPPORTED_ENCODING
The unsupported character encoding. |
| Constructor Summary | |
|---|---|
| URIException()
Default constructor. | |
| URIException(int reasonCode)
The constructor with a reason code argument.
| |
| URIException(int reasonCode, String reason)
The constructor with a reason string and its code arguments.
| |
| URIException(String reason)
The constructor with a reason string argument.
| |
| Method Summary | |
|---|---|
| String | getReason()
Get the reason message.
|
| int | getReasonCode()
Get the reason code.
|
| void | setReason(String reason)
Set the reason message.
|
| void | setReasonCode(int reasonCode)
Set the reason code.
|
Parameters: reasonCode the reason code
Parameters: reasonCode the reason code reason the reason
Parameters: reason the reason
Deprecated: You should instead call URIException.
Get the reason message.Returns: the reason message
Returns: the reason code
Deprecated: Callers should instead set this via a parameter to the constructor.
Set the reason message.Parameters: reason the reason message
Deprecated: Callers should set the reason code as a parameter to the constructor.
Set the reason code.Parameters: reasonCode the reason code