Interface ErrorHandler<T>
- Type Parameters:
T- the type of context associated with the error (e.g., the failed task or message)
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Functional interface for handling errors during tasks.
The error handler can log the error or escalate the failure depending on the context.
-
Method Summary
Modifier and TypeMethodDescriptionvoidhandleError(Throwable e, T context) Handles the givenThrowablein the context of the provided value.
-
Method Details
-
handleError
-