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

public final Class HandlerErrorManager

extends ExtErrorManager
Class Inheritance
Imports
java.util.logging.Handler, org.jboss.logmanager.ExtErrorManager, io.smallrye.common.constraint.Assert

An error manager which publishes errors to a handler.

Field Summary

Modifier and TypeField and Description
private final Handler
private static final ThreadLocal<Boolean>

Constructor Summary

AccessConstructor and Description
public
HandlerErrorManager(final Handler
the handler to set (must not be null)
handler
)

Construct a new instance.

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

handlerback to summary
private final Handler handler
handlingErrorback to summary
private static final ThreadLocal<Boolean> handlingError

Constructor Detail

HandlerErrorManagerback to summary
public HandlerErrorManager(final Handler handler)

Construct a new instance.

Parameters
handler:Handler

the handler to set (must not be null)

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