[Minor] Always add exception class in ExceptionHelper.getExceptionMessage()

This commit is contained in:
Robert von Burg 2018-09-10 17:40:26 +02:00
parent afdecd92b7
commit 79af081384
1 changed files with 22 additions and 22 deletions

View File

@ -39,7 +39,7 @@ public class ExceptionHelper {
* @return the exception as string
*/
public static String getExceptionMessage(Throwable t) {
return StringHelper.isEmpty(t.getMessage()) ? t.getClass().getName() : t.getMessage();
return t.getClass().getName() + ": " + t.getMessage();
}
/**
@ -93,7 +93,7 @@ public class ExceptionHelper {
return getExceptionMessage(t);
String root = formatExceptionMessage(t.getCause());
return getExceptionMessage(t) + "\ncause:\n" + root;
return getExceptionMessage(t) + "\ncause: " + root;
}
/**