public class XMLLoggingExceptionCallback extends LoggingExceptionCallback
LoggingExceptionCallback that handles the
most common XML exceptions in a nice way :)| Constructor and Description |
|---|
XMLLoggingExceptionCallback() |
XMLLoggingExceptionCallback(IErrorLevel aErrorLevel) |
| 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 XMLLoggingExceptionCallback()
public XMLLoggingExceptionCallback(@Nonnull IErrorLevel aErrorLevel)
@Nonnull @Nonempty @OverrideOnDemand protected String getLogMessage(@Nullable Throwable t)
LoggingExceptionCallbackgetLogMessage in class LoggingExceptionCallbackt - The exception to be logged. May theoretically be null.null nor empty.protected boolean isLogException(@Nullable Throwable t)
LoggingExceptionCallbackisLogException in class LoggingExceptionCallbackt - The exception to check. May theoretically be null.true to log the exception, false to not
log itCopyright © 2014–2015 Philip Helger. All rights reserved.