public class URIException extends HttpException
| 限定符和类型 | 字段和说明 |
|---|---|
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.
|
| 构造器和说明 |
|---|
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.
|
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getReason()
已过时。
You should instead call
Throwable.getMessage(). |
int |
getReasonCode()
Get the reason code.
|
void |
setReason(String reason)
已过时。
Callers should instead set this via a parameter to the constructor.
|
void |
setReasonCode(int reasonCode)
已过时。
Callers should set the reason code as a parameter to the
constructor.
|
getCause, printStackTrace, printStackTrace, printStackTraceaddSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, setStackTrace, toStringpublic 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
public URIException()
public URIException(int reasonCode)
reasonCode - the reason codepublic URIException(int reasonCode,
String reason)
reasonCode - the reason codereason - the reasonpublic URIException(String reason)
reason - the reasonpublic int getReasonCode()
getReasonCode 在类中 HttpExceptionpublic void setReasonCode(int reasonCode)
setReasonCode 在类中 HttpExceptionreasonCode - the reason codepublic String getReason()
Throwable.getMessage().getReason 在类中 HttpExceptionpublic void setReason(String reason)
setReason 在类中 HttpExceptionreason - the reason messageCopyright © 2017. All rights reserved.