Permalink
Browse files

Add toString method to ValidationException.

  • Loading branch information...
1 parent 53b851a commit ffb36cfbfb3fc97b157a365778812f8629a8c626 @Kami Kami committed Feb 24, 2013
@@ -46,4 +46,11 @@ public String getDetails() {
public String getTxnId() {
return txnId;
}
+
+ @Override
+ public String toString() {
+ return String.format("[ValidationException code=%s, type=%s, " +
+ "details=\"%s\" txnId=%s]", this.code, this.type,
+ this.details, this.txnId);
+ }
}

0 comments on commit ffb36cf

Please sign in to comment.