可抛出的数据,用于数据传导(以实现两种方案:return data; throw data)
在Solon的mvc处理链中,DataThrowable 会做为普通的数据处理渲染
//定义个 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;
}
}