Class ErrorEventHandler
- java.lang.Object
-
- io.zeebe.engine.processing.common.ErrorEventHandler
-
public final class ErrorEventHandler extends Object
-
-
Constructor Summary
Constructors Constructor Description ErrorEventHandler(WorkflowState workflowState, KeyGenerator keyGenerator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanthrowErrorEvent(org.agrona.DirectBuffer errorCode, ElementInstance instance, TypedStreamWriter streamWriter)Throw an error event.
-
-
-
Constructor Detail
-
ErrorEventHandler
public ErrorEventHandler(WorkflowState workflowState, KeyGenerator keyGenerator)
-
-
Method Detail
-
throwErrorEvent
public boolean throwErrorEvent(org.agrona.DirectBuffer errorCode, ElementInstance instance, TypedStreamWriter streamWriter)Throw an error event. The event is propagated from the given instance through the scope hierarchy until the event is caught by a catch event. The event is only thrown if a catch event was found.- Parameters:
errorCode- the error code of the error eventinstance- the instance there the event propagation startsstreamWriter- the writer to be used for writing the followup event- Returns:
trueif the error event is thrown and caught by an catch event
-
-