| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.io.IOException
org.apache.commons.httpclient.HttpException
org.apache.commons.httpclient.URIException
public class URIException
The URI parsing and escape encoding exception.
| Field Summary | |
|---|---|
| static int | ESCAPINGThe URI escape encoding and decoding error. | 
| static int | PARSINGThe URI parsing error. | 
| static int | PUNYCODEThe DNS punycode encoding or decoding error. | 
| protected  String | reasonThe reason message. | 
| protected  int | reasonCodeThe reason code. | 
| static int | UNKNOWNNo specified reason code. | 
| static int | UNSUPPORTED_ENCODINGThe 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()Deprecated. You should instead call Throwable.getMessage(). | 
|  int | getReasonCode()Get the reason code. | 
|  void | setReason(String reason)Deprecated. Callers should instead set this via a parameter to the constructor. | 
|  void | setReasonCode(int reasonCode)Deprecated. Callers should set the reason code as a parameter to the constructor. | 
| Methods inherited from class org.apache.commons.httpclient.HttpException | 
|---|
| getCause, printStackTrace, printStackTrace, printStackTrace | 
| Methods inherited from class java.lang.Throwable | 
|---|
| fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
|---|
public static final int UNKNOWN
public static final int PARSING
public static final int UNSUPPORTED_ENCODING
public static final int ESCAPING
public static final int PUNYCODE
protected int reasonCode
protected String reason
| Constructor Detail | 
|---|
public URIException()
public URIException(int reasonCode)
reasonCode - the reason code
public URIException(int reasonCode,
                    String reason)
reasonCode - the reason codereason - the reasonpublic URIException(String reason)
reason - the reason| Method Detail | 
|---|
public int getReasonCode()
getReasonCode in class HttpExceptionpublic void setReasonCode(int reasonCode)
setReasonCode in class HttpExceptionreasonCode - the reason codepublic String getReason()
Throwable.getMessage().
getReason in class HttpExceptionpublic void setReason(String reason)
setReason in class HttpExceptionreason - the reason message| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||