public class DataThrowable extends RuntimeException implements 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(String message) |
DataThrowable(String message,
Throwable cause) |
DataThrowable(Throwable cause) |
| 限定符和类型 | 方法和说明 |
|---|---|
Object |
data()
数据获取
|
DataThrowable |
data(Object data)
数据设定
|
public DataThrowable()
public DataThrowable(Throwable cause)
public DataThrowable(String message)
public Object data()
public DataThrowable data(Object data)
Copyright © 2022. All rights reserved.