优化: R返回对象信息构造方法

This commit is contained in:
冷冷 2018-03-02 13:38:19 +08:00
parent 52841afc32
commit 53017afbb7
1 changed files with 6 additions and 0 deletions

View File

@ -35,6 +35,12 @@ public class R<T> implements Serializable {
this.data = data;
}
public R(T data, String msg) {
super();
this.data = data;
this.msg = msg;
}
public R(Throwable e) {
super();
this.msg = e.getMessage();