Package org.agrona
Interface ErrorHandler
-
- All Known Subinterfaces:
DelegatingErrorHandler
- All Known Implementing Classes:
CountedErrorHandler
,LoggingErrorHandler
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface ErrorHandler
Callback interface for handling an error/exception that has occurred when processing an operation or event.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onError(java.lang.Throwable throwable)
Callback to notify of an error that has occurred when processing an operation or event.
-
-
-
Method Detail
-
onError
void onError(java.lang.Throwable throwable)
Callback to notify of an error that has occurred when processing an operation or event.This method is assumed non-throwing, so rethrowing the exception or triggering further exceptions would be a bug.
- Parameters:
throwable
- that occurred while processing an operation or event.
-
-