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
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user