public class Throwables extends Object
| Constructor and Description |
|---|
Throwables() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getMessage(Throwable e)
returns error message with one main line from stacktrace
|
static String |
getMessage(Throwable e,
Object priority,
int maxlen)
returns human readable error message with only one element from stacktrace.
|
private static Throwable |
getRootException(Throwable e) |
static String |
stringStackTrace(Throwable e)
returns stacktrace as a String
|
public static String getMessage(Throwable e)
public static String getMessage(Throwable e, Object priority, int maxlen)
e - throwable to convert to messagepriority - package name, class, or object that could identify the stacktrace elementmaxlen - the max length of returned string or -1 for unlimitedCopyright © 2022 Apache NiFi Project. All rights reserved.