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:
parent
2947ebba0e
commit
efa58630cf
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user