[New] Added ExceptionHelper.getRootCauseMessage(Throwable)
This commit is contained in:
parent
58fb8bb7fb
commit
7cb6b3acdc
|
@ -207,6 +207,18 @@ public class ExceptionHelper {
|
|||
return t;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns {@link #getExceptionMessage(Throwable, boolean)} for the root cause of the given {@link Throwable}
|
||||
*
|
||||
* @param throwable
|
||||
* the throwable for which to get the message of the root cause
|
||||
*
|
||||
* @return {@link #getExceptionMessage(Throwable, boolean)} for the root cause of the given {@link Throwable}
|
||||
*/
|
||||
public static String getRootCauseMessage(Throwable throwable) {
|
||||
return getExceptionMessage(getRootCause(throwable), true);
|
||||
}
|
||||
|
||||
/**
|
||||
* Walks the causes for the given {@link Throwable} and sees if the given cause exists
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue