sb.append("ValidationException: ");
String message = vx.getMessage();
if (message != null) {
sb.append(message);
}
Location location = vx.getLocation();
if (location != null) {
sb.append(";\n - location of error: ");
sb.append(location.toString());
}
Throwable t = vx.getCause();
if (t != null) {
sb.append("\n");
sb.append(t.getMessage());