Interface ProcessingLifecycle.ErrorHandler
- Enclosing interface:
ProcessingLifecycle
- 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 describing an operation that's invoked when an error is detected within the
ProcessingLifecycle.- Since:
- 5.0.0
- Author:
- Allard Buijze, Gerard Klijs, Milan Savić, Mitchell Herrijgers, Sara Pellegrini, Steven van Beelen
-
Method Summary
Modifier and TypeMethodDescriptionvoidhandle(ProcessingContext processingContext, ProcessingLifecycle.Phase phase, Throwable error) Invoked when an error is detected in aProcessingLifecycleand it has been aborted.
-
Method Details
-
handle
void handle(@Nonnull ProcessingContext processingContext, @Nonnull ProcessingLifecycle.Phase phase, @Nonnull Throwable error) Invoked when an error is detected in aProcessingLifecycleand it has been aborted.In this state, the lifecycle will always return
trueforProcessingLifecycle.isError()andProcessingLifecycle.isCompleted().- Parameters:
processingContext- The context in which the error occurred.phase- The phase used to register the handler which caused theProcessingLifecycleto fail.error- The exception or error describing the cause.
-