public class XMLLoggingExceptionHandler extends LoggingExceptionHandler
LoggingExceptionHandler that handles the
most common XML exceptions in a nice way :)| Constructor and Description |
|---|
XMLLoggingExceptionHandler() |
XMLLoggingExceptionHandler(EErrorLevel eErrorLevel) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getLogMessage(Throwable t)
Get the text to be logged for a certain exception
|
protected boolean |
isLogException(Throwable t)
Check if the passed exception should be part of the log entry.
|
getErrorLevel, onException, toStringpublic XMLLoggingExceptionHandler()
public XMLLoggingExceptionHandler(@Nonnull EErrorLevel eErrorLevel)
@Nonnull @Nonempty @OverrideOnDemand protected String getLogMessage(@Nullable Throwable t)
LoggingExceptionHandlergetLogMessage in class LoggingExceptionHandlert - The exception to be logged. May theoretically be null.null nor empty.protected boolean isLogException(@Nullable Throwable t)
LoggingExceptionHandlerisLogException in class LoggingExceptionHandlert - The exception to check. May theoretically be null.true to log the exception, false to not
log itCopyright © 2006–2014 phloc systems. All rights reserved.