public class LoggingErrorHandler extends java.lang.Object implements ErrorHandler
ErrorHandler that records to a DistinctErrorLog and if the log is full then overflows
to a PrintStream.| Constructor and Description |
|---|
LoggingErrorHandler(DistinctErrorLog log)
Construct error handler wrapping a
DistinctErrorLog with a default of System.err for the
errorOverflow(). |
LoggingErrorHandler(DistinctErrorLog log,
java.io.PrintStream errorOverflow)
Construct error handler wrapping a
DistinctErrorLog and PrintStream for error overflow. |
| Modifier and Type | Method and Description |
|---|---|
DistinctErrorLog |
distinctErrorLog()
The wrapped log.
|
java.io.PrintStream |
errorOverflow()
The wrapped
PrintStream for error log overflow when the log is full. |
void |
onError(java.lang.Throwable throwable)
Callback to notify of an error that has occurred when processing an operation or event.
|
public LoggingErrorHandler(DistinctErrorLog log)
DistinctErrorLog with a default of System.err for the
errorOverflow().log - to wrap.public LoggingErrorHandler(DistinctErrorLog log, java.io.PrintStream errorOverflow)
DistinctErrorLog and PrintStream for error overflow.log - to wrap.errorOverflow - to be used if the log fills.public DistinctErrorLog distinctErrorLog()
public java.io.PrintStream errorOverflow()
PrintStream for error log overflow when the log is full.PrintStream for error log overflow when the log is full.public void onError(java.lang.Throwable throwable)
ErrorHandlerThis method is assumed non-throwing, so rethrowing the exception or triggering further exceptions would be a bug.
onError in interface ErrorHandlerthrowable - that occurred while processing an operation or event.Copyright © 2014-2019 Real Logic Ltd. All Rights Reserved.