public class ExceptionUtil extends Object
| Constructor and Description |
|---|
ExceptionUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getExceptionAsHtml(SearchException e) |
static String |
getMessage(Throwable ex)
Extracts the closest thing to an end-user-comprehensible message from an exception.
|
static String |
logExceptionWithWarn(org.slf4j.Logger log,
String message,
Throwable ex)
Logs the given exception.
|
static String |
logExceptionWithWarn(org.apache.log4j.Logger log,
String message,
Throwable ex)
Logs the given exception.
|
public static String getMessage(Throwable ex)
ex - exception to get message for.public static String logExceptionWithWarn(@Nonnull org.slf4j.Logger log, String message, @Nonnull Throwable ex)
log - the target loggermessage - the message to logex - the exception to logpublic static String logExceptionWithWarn(@Nonnull org.apache.log4j.Logger log, String message, @Nonnull Throwable ex)
log - the target loggermessage - the message to logex - the exception to logpublic static String getExceptionAsHtml(SearchException e)
Copyright © 2002-2019 Atlassian. All Rights Reserved.