[New] Added ExceptionHelper.getRootCauseExceptionMessage()
This commit is contained in:
parent
a45475f783
commit
c4ac21ec98
|
@ -52,6 +52,17 @@ public class ExceptionHelper {
|
|||
.orElse("UnknownClass.unknownMethod!");
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the message of the root cause of the given exception
|
||||
*
|
||||
* @param e the exception for which to get the root cause
|
||||
*
|
||||
* @return the message of the root cause of the given exception
|
||||
*/
|
||||
public static String getRootCauseExceptionMessage(Throwable e) {
|
||||
return getExceptionMessage(getRootCause(e), false);
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Returns a message for the given {@link Throwable}
|
||||
|
|
Loading…
Reference in New Issue