better detailed message
This commit is contained in:
parent
98c981d02c
commit
3d9b310c46
|
@ -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() + "]";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue