The URI parsing and escape encoding exception.
Modifiers | Name | Description |
---|---|---|
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. |
static int |
UNKNOWN |
No specified reason code. |
static int |
UNSUPPORTED_ENCODING |
The unsupported character encoding. |
Constructor and description |
---|
URIException
() Default constructor. |
URIException
(int reasonCode) The constructor with a reason code argument. |
URIException
(int reasonCode, java.lang.String reason) The constructor with a reason string and its code arguments. |
URIException
(java.lang.String reason) The constructor with a reason string argument. |
Type Params | Return Type | Name and description |
---|---|---|
|
java.lang.String |
getReason() Get the reason message. |
|
int |
getReasonCode() Get the reason code. |
|
void |
setReason(java.lang.String reason) Set the reason message. |
|
void |
setReasonCode(int reasonCode) Set the reason code. |
Methods inherited from class | Name |
---|---|
class HttpException |
getCause, getReason, getReasonCode, printStackTrace, printStackTrace, printStackTrace, setReason, setReasonCode |
The URI escape encoding and decoding error.
The URI parsing error.
The DNS punycode encoding or decoding error.
No specified reason code.
The unsupported character encoding.
Default constructor.
The constructor with a reason code argument.
reasonCode
- the reason codeThe constructor with a reason string and its code arguments.
reasonCode
- the reason codereason
- the reasonThe constructor with a reason string argument.
reason
- the reasonGet the reason message.
Get the reason code.
Set the reason message.
reason
- the reason messageSet the reason code.
reasonCode
- the reason code