Interface ErrorHandler

All Known Implementing Classes:
DefaultErrorHandler

public interface ErrorHandler
Appenders may delegate their error handling to ErrorHandlers. TODO if the appender interface is simplified, then error handling could just be done by wrapping a nested appender. (RG) Please look at DefaultErrorHandler. It's purpose is to make sure the console or error log isn't flooded with messages. I'm still considering the Appender refactoring.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Handle an error with a message.
    void
    Handle an error with a message and an exception.
    void
    error(String msg, LogEvent event, Throwable t)
    Handle an error with a message, and exception and a logging event.
  • Method Details

    • error

      void error(String msg)
      Handle an error with a message.
      Parameters:
      msg - The message.
    • error

      void error(String msg, Throwable t)
      Handle an error with a message and an exception.
      Parameters:
      msg - The message.
      t - The Throwable.
    • error

      void error(String msg, LogEvent event, Throwable t)
      Handle an error with a message, and exception and a logging event.
      Parameters:
      msg - The message.
      event - The LogEvent.
      t - The Throwable.