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

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