Class ErrorEventHandler


  • public final class ErrorEventHandler
    extends Object
    • 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 event
        instance - the instance there the event propagation starts
        streamWriter - the writer to be used for writing the followup event
        Returns:
        true if the error event is thrown and caught by an catch event