net.sf.wraplog
Class DefaultLoggingErrorHandler

java.lang.Object
  extended bynet.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

Constructor Summary
DefaultLoggingErrorHandler()
           
 
Method Summary
 void handleLoggingError(String errorMessage, Throwable error, String originalMessage, Throwable originalError)
          Throw a LoggingException.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultLoggingErrorHandler

public DefaultLoggingErrorHandler()
Method Detail

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 error
error - 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 message
originalError - the error that could not be logged, or null if no error was specified