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
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 occurredphase- the phase used to register the handler which caused theProcessingLifecycleto failerror- the exception or error describing the cause
-