- 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.
-
-
Field Summary
-
Fields inherited from class java.util.logging.ErrorManager
CLOSE_FAILURE, FLUSH_FAILURE, FORMAT_FAILURE, GENERIC_FAILURE, OPEN_FAILURE, WRITE_FAILURE
-
-
Constructor Summary
Constructors Constructor Description ExtErrorManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiderror(String msg, Exception ex, int code)protected ExtLogRecorderrorToLogRecord(String msg, Exception ex, int code)Convert the given error to a log record which can be published to handler(s) or stored.protected StringnameForCode(int code)Get the name corresponding to the given error code.
-
-
-
Method Detail
-
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:
errorin classErrorManager
-
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 (possiblynull)ex- the error exception (possiblynull)code- the error code- Returns:
- the log record (not
null)
-
-