public class DataThrowable
extends java.lang.RuntimeException
implements java.io.Serializable
//定义个 DataThrowable 的数据结构
public class UapiCode extends DataThrowable{
public final int code;
public final String message;
public UapiCode(int code, String message){
super(message);
this.code = code;
this.message = message;
}
}
构造器和说明 |
---|
DataThrowable() |
DataThrowable(java.lang.String message) |
DataThrowable(java.lang.String message,
java.lang.Throwable cause) |
DataThrowable(java.lang.Throwable cause) |
限定符和类型 | 方法和说明 |
---|---|
java.lang.Object |
data()
数据获取
|
DataThrowable |
data(java.lang.Object data)
数据设定
|
public DataThrowable()
public DataThrowable(java.lang.Throwable cause)
public DataThrowable(java.lang.String message)
public DataThrowable(java.lang.String message, java.lang.Throwable cause)
public java.lang.Object data()
public DataThrowable data(java.lang.Object data)