From 53017afbb71005c5fd1453b22bed8fcdd9febe01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=86=B7=E5=86=B7?= Date: Fri, 2 Mar 2018 13:38:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=EF=BC=9A=20R=E8=BF=94?= =?UTF-8?q?=E5=9B=9E=E5=AF=B9=E8=B1=A1=E4=BF=A1=E6=81=AF=E6=9E=84=E9=80=A0?= =?UTF-8?q?=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pig-common/src/main/java/com/github/pig/common/util/R.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pig-common/src/main/java/com/github/pig/common/util/R.java b/pig-common/src/main/java/com/github/pig/common/util/R.java index 69606120..1c5270a3 100644 --- a/pig-common/src/main/java/com/github/pig/common/util/R.java +++ b/pig-common/src/main/java/com/github/pig/common/util/R.java @@ -35,6 +35,12 @@ public class R 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();