public class ExceptionReporter extends org.openbase.jul.pattern.ObservableImpl<ExceptionReporter.ExceptionReport>
Modifier and Type | Class and Description |
---|---|
class |
ExceptionReporter.ExceptionReport
Inner class holding information about how often an exception was reported.
|
Modifier and Type | Method and Description |
---|---|
static ExceptionReporter |
getInstance() |
void |
report(Throwable th)
Reports an exception.
|
void |
report(Throwable th,
int limit)
Reports an exception.
|
applyValueUpdate, getValue, getValueFuture, isValueAvailable, waitForValue
addObserver, isNotificationInProgess, notifyObservers, notifyObservers, removeObserver, setExecutorService, setHashGenerator, shutdown, toString
public static ExceptionReporter getInstance()
public void report(Throwable th)
th
- The exception to report.public void report(Throwable th, int limit)
th
- The exception to report.limit
- How many times this exception may occur from the same place, until observers are notified.Copyright © 2017–2018 openbase.org. All rights reserved.