net.sf.wraplog
Class DefaultLoggingErrorHandler
java.lang.Object
net.sf.wraplog.DefaultLoggingErrorHandler
- All Implemented Interfaces:
- LoggingErrorHandler
- public class DefaultLoggingErrorHandler
- extends Object
- implements LoggingErrorHandler
LoggingErrorHandler to throw a LoggingException on every
message that cannot be logged.
- Since:
- 1.2
- Author:
- Thomas Aglassinger
- See Also:
LoggingException
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultLoggingErrorHandler
public DefaultLoggingErrorHandler()
handleLoggingError
public void handleLoggingError(String errorMessage,
Throwable error,
String originalMessage,
Throwable originalError)
- Throw a
LoggingException.
- Specified by:
handleLoggingError in interface LoggingErrorHandler
- Parameters:
errorMessage - English message describing the errorerror - optional Throwable to give further details
about the error that prevented the message from being logged;
can be null.originalMessage - the message that could not be logged, or null
if there is no messageoriginalError - the error that could not be logged, or null if
no error was specified