Class URIException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
edu.internet2.middleware.grouperClientExt.org.apache.commons.httpclient.HttpException
edu.internet2.middleware.grouperClientExt.org.apache.commons.httpclient.URIException
- All Implemented Interfaces:
Serializable
The URI parsing and escape encoding exception.
- Version:
- $Revision: 480424 $ $Date: 2002/03/14 15:14:01
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The URI escape encoding and decoding error.static final int
The URI parsing error.static final int
The DNS punycode encoding or decoding error.protected String
The reason message.protected int
The reason code.static final int
No specified reason code.static final int
The unsupported character encoding. -
Constructor Summary
ConstructorDescriptionDefault 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
Modifier and TypeMethodDescriptionDeprecated.int
Get the reason code.void
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 edu.internet2.middleware.grouperClientExt.org.apache.commons.httpclient.HttpException
getCause, printStackTrace, printStackTrace, printStackTrace
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, setStackTrace, toString
-
Field Details
-
UNKNOWN
public static final int UNKNOWNNo specified reason code.- See Also:
-
PARSING
public static final int PARSINGThe URI parsing error.- See Also:
-
UNSUPPORTED_ENCODING
public static final int UNSUPPORTED_ENCODINGThe unsupported character encoding.- See Also:
-
ESCAPING
public static final int ESCAPINGThe URI escape encoding and decoding error.- See Also:
-
PUNYCODE
public static final int PUNYCODEThe DNS punycode encoding or decoding error.- See Also:
-
reasonCode
protected int reasonCodeThe reason code. -
reason
The reason message.
-
-
Constructor Details
-
URIException
public URIException()Default constructor. -
URIException
public URIException(int reasonCode) The constructor with a reason code argument.- Parameters:
reasonCode
- the reason code
-
URIException
The constructor with a reason string and its code arguments.- Parameters:
reasonCode
- the reason codereason
- the reason
-
URIException
The constructor with a reason string argument.- Parameters:
reason
- the reason
-
-
Method Details
-
getReasonCode
public int getReasonCode()Get the reason code.- Overrides:
getReasonCode
in classHttpException
- Returns:
- the reason code
-
setReasonCode
public void setReasonCode(int reasonCode) Deprecated.Callers should set the reason code as a parameter to the constructor.Set the reason code.- Overrides:
setReasonCode
in classHttpException
- Parameters:
reasonCode
- the reason code
-
getReason
Deprecated.You should instead callThrowable.getMessage()
.Get the reason message.- Overrides:
getReason
in classHttpException
- Returns:
- the reason message
-
setReason
Deprecated.Callers should instead set this via a parameter to the constructor.Set the reason message.- Overrides:
setReason
in classHttpException
- Parameters:
reason
- the reason message
-
Throwable.getMessage()
.