better detailed message

This commit is contained in:
kimchy 2010-02-22 08:55:36 +02:00
parent 98c981d02c
commit 3d9b310c46
1 changed files with 3 additions and 3 deletions

View File

@ -45,9 +45,9 @@ public final class ExceptionsHelper {
StringBuilder sb = new StringBuilder();
while (t != null) {
if (t.getMessage() != null) {
sb.append(t.getClass().getSimpleName()).append("{");
sb.append(t.getClass().getSimpleName()).append("[");
sb.append(t.getMessage());
sb.append("}");
sb.append("]");
if (!newLines) {
sb.append("; ");
}
@ -67,7 +67,7 @@ public final class ExceptionsHelper {
}
return sb.toString();
} else {
return t.getMessage();
return t.getClass().getSimpleName() + "[" + t.getMessage() + "]";
}
}
}