Top Description Fields Constructors Methods
org.jboss.logmanager.errormanager

public final Class OnlyOnceErrorManager

extends ExtErrorManager
Class Inheritance
Imports
java.util.logging.ErrorManager, org.jboss.logmanager.ExtErrorManager

An error manager which runs only once and delegates to the given error manager.

Field Summary

Modifier and TypeField and Description
private volatile ErrorManager

Constructor Summary

AccessConstructor and Description
public
OnlyOnceErrorManager(final ErrorManager
the delegate error manager
delegate
)

Construct a new instance.

public
OnlyOnceErrorManager()

Construct a new instance with a SimpleErrorManager as a delegate.

Method Summary

Modifier and TypeMethod and Description
public void
error(final String
a descriptive string (may be null)
msg
,
final Exception
an exception (may be null)
ex
,
final int
an error code defined in ErrorManager
code
)

Overrides org.jboss.logmanager.ExtErrorManager.error.

The error method is called when a Handler failure occurs.

Inherited from org.jboss.logmanager.ExtErrorManager:
errorToLogRecordnameForCode

Field Detail

delegateback to summary
private volatile ErrorManager delegate

Constructor Detail

OnlyOnceErrorManagerback to summary
public OnlyOnceErrorManager(final ErrorManager delegate)

Construct a new instance.

Parameters
delegate:ErrorManager

the delegate error manager

OnlyOnceErrorManagerback to summary
public OnlyOnceErrorManager()

Construct a new instance with a SimpleErrorManager as a delegate.

Method Detail

errorback to summary
public void error(final String msg, final Exception ex, final int code)

Overrides org.jboss.logmanager.ExtErrorManager.error.

Doc from java.util.logging.ErrorManager.error.

The error method is called when a Handler failure occurs.

This method may be overridden in subclasses. The default behavior in this base class is that the first call is reported to System.err, and subsequent calls are ignored.

Parameters
msg:String

a descriptive string (may be null)

ex:Exception

an exception (may be null)

code:int

an error code defined in ErrorManager