public class ExceptionUtils extends Object
Constructor and Description |
---|
ExceptionUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
checkException(Throwable t,
String toMatch)
Tries to match the given String by recurring on nested exception
messages.
|
static String |
getFormattedErrorString(String message,
Throwable t) |
static String |
getStackTrace(Throwable t)
Redirects a stack trace into a String.
|
static Throwable |
rootCause(Throwable t)
Extracts the root cause.
|
public static boolean checkException(Throwable t, String toMatch)
t
- a ThrowabletoMatch
- message being sought.public static String getStackTrace(Throwable t)
t
- from which to get trace.Copyright © 2020. All rights reserved.