Simplify
This commit is contained in:
parent
b01d56ddea
commit
8d6e743748
|
@ -238,9 +238,8 @@ public class ExceptionUtils {
|
||||||
* @since 2.2
|
* @since 2.2
|
||||||
*/
|
*/
|
||||||
public static String getRootCauseMessage(final Throwable throwable) {
|
public static String getRootCauseMessage(final Throwable throwable) {
|
||||||
Throwable root = getRootCause(throwable);
|
final Throwable root = getRootCause(throwable);
|
||||||
root = root == null ? throwable : root;
|
return getMessage(root == null ? throwable : root);
|
||||||
return getMessage(root);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue