[Minor] Always add exception class in ExceptionHelper.getExceptionMessage()
This commit is contained in:
parent
afdecd92b7
commit
79af081384
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue