public class UiaException extends RuntimeException implements Serializable
| 构造器和说明 |
|---|
UiaException(int code)
Constructs a new runtime exception with
null as its
detail message. |
UiaException(int code,
String message)
Constructs a new runtime exception with the specified detail message.
|
UiaException(String message)
Constructs a new runtime exception with
null as its
detail message. |
UiaException(Throwable cause)
Constructs a new runtime exception with the specified detail message and
cause.
|
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getCode() |
String |
getMessage() |
void |
setCode(int code) |
void |
setMessage(String message) |
public UiaException(Throwable cause)
Note that the detail message associated with
cause is not automatically incorporated in
this runtime exception's detail message.
by the getMessage() method).
cause - the cause (which is saved for later retrieval by the
Throwable.getCause() method). (A null value is
permitted, and indicates that the cause is nonexistent or
unknown.)public UiaException(String message)
null as its
detail message. The cause is not initialized, and may subsequently be
initialized by a call to Throwable.initCause(java.lang.Throwable).message - messagepublic UiaException(int code)
null as its
detail message. The cause is not initialized, and may subsequently be
initialized by a call to Throwable.initCause(java.lang.Throwable).code - codepublic UiaException(int code,
String message)
Throwable.initCause(java.lang.Throwable).code - codemessage - the detail message. The detail message is saved for
later retrieval by the getMessage() method.public int getCode()
public void setCode(int code)
public String getMessage()
getMessage 在类中 Throwablepublic void setMessage(String message)
Copyright © 2023. All rights reserved.