Add constructor that takes a Throwable to eliminate redundant code from callers.

git-svn-id: http://google-refine.googlecode.com/svn/trunk@2518 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
Tom Morris 2012-08-02 21:38:00 +00:00
parent 2947ebba0e
commit efa58630cf

View File

@ -56,6 +56,11 @@ public class EvalError implements Serializable, Jsonizable {
this.message = message; this.message = message;
} }
public EvalError(Throwable throwable) {
this.message = throwable.toString();
}
@Override @Override
public String toString() { public String toString() {
return this.message; return this.message;