public class ExceptionMonitorRouter extends Object implements ExceptionMonitor, ExceptionSource
| Constructor and Description |
|---|
ExceptionMonitorRouter()
Creation of a exception monitor router.
|
| Modifier and Type | Method and Description |
|---|---|
void |
exception(ExceptionSource source,
Throwable exception)
This method is called when an Exception or Throwable occurs.
|
List<ExceptionMonitor> |
getExceptionMonitors()
Returns all ExceptionMonitors that are registered.
|
ExceptionMonitor |
getMonitor(int index)
Returns the ExceptionMonitor at a particular index.
|
void |
registerExceptionMonitor(ExceptionMonitor monitor)
Add a monitor to the list of monitors managed by this router.
|
int |
size()
Returns the number of registered ExceptionMonitors.
|
void |
unregisterExceptionMonitor(ExceptionMonitor monitor)
Remove a monitor to the list of monitors managed by this router.
|
public ExceptionMonitorRouter()
public void exception(ExceptionSource source, Throwable exception)
exception in interface ExceptionMonitorsource - The source of the Exception.exception - The Exception being thrown.public void registerExceptionMonitor(ExceptionMonitor monitor)
registerExceptionMonitor in interface ExceptionSourcemonitor - the monitor to addpublic void unregisterExceptionMonitor(ExceptionMonitor monitor)
unregisterExceptionMonitor in interface ExceptionSourcemonitor - the monitor to addpublic List<ExceptionMonitor> getExceptionMonitors()
getExceptionMonitors in interface ExceptionSourcepublic int size()
public ExceptionMonitor getMonitor(int index)
index - which monitor in the current list to return.Copyright © 2006–2019 OPS4J - Open Participation Software for Java. All rights reserved.