LOG: Logs the event with the error, and then drops the event.
WAIT: The thread waits in the
back-off and re-tryingstate, and reconnects once the connection is re-established.
STREAM: The corresponding fault stream is populated with the failed event and the error that occured while publishing.
e.g., The following is a Siddhi application that includes the
@OnError annotation to handle publishing error when in-memory source is not available to receive messages.
@Source(type = 'http',
-- Count the incoming events
from !TotalCountStream#log("error stream")