public class ExceptionHandlers extends Object
| Modifier and Type | Method and Description |
|---|---|
static ExceptionHandler |
chain(ExceptionHandler... handlers)
Chain a series of ExceptionHandlers together to be executed subsequently;
if one throws an exception, subsequent handlers will not be executed.
|
static ExceptionHandler |
ignoreExceptionHandler()
ignoreExceptionHandler.
|
static ExceptionHandler |
loggingExceptionHandler(org.slf4j.Logger logger)
Retrieves an
ExceptionHandler which will
log exceptions passed in. |
public static ExceptionHandler loggingExceptionHandler(org.slf4j.Logger logger)
ExceptionHandler which will
log exceptions passed in.logger - the Logger to which exceptions will be logged; if it is null,
a default Logger will be used. The default logger is the logger for the
ExceptionHandlers class, but may change in future.ExceptionHandler which will log
(at WARN level) exceptions passed inpublic static ExceptionHandler ignoreExceptionHandler()
ignoreExceptionHandler.
ExceptionHandler which does
nothingpublic static ExceptionHandler chain(ExceptionHandler... handlers)
handlers - the chain of handlers to chainCopyright © 2018 Atlassian. All rights reserved.