Class ExtErrorManager

java.lang.Object
java.util.logging.ErrorManager
org.jboss.logmanager.ExtErrorManager
Direct Known Subclasses:
HandlerErrorManager, OnlyOnceErrorManager, SimpleErrorManager

public abstract class ExtErrorManager extends ErrorManager
An extended error manager, which contains additional useful utilities for error managers.
  • Constructor Details

    • ExtErrorManager

      public ExtErrorManager()
  • Method Details

    • nameForCode

      protected String nameForCode(int code)
      Get the name corresponding to the given error code.
      Parameters:
      code - the error code
      Returns:
      the corresponding name (not null)
    • error

      public void error(String msg, Exception ex, int code)
      Overrides:
      error in class ErrorManager
    • errorToLogRecord

      protected ExtLogRecord errorToLogRecord(String msg, Exception ex, int code)
      Convert the given error to a log record which can be published to handler(s) or stored. Care should be taken not to publish the log record to a logger that writes to the same handler that produced the error.
      Parameters:
      msg - the error message (possibly null)
      ex - the error exception (possibly null)
      code - the error code
      Returns:
      the log record (not null)