Hi! I am writing a translation, and thinking about how to handle an unexpected situation while there is eventually no feature going through a pipe. For example, when a reader or a http call returns nothing, it usually indicates some error or rare situation, such that I may want a email to be sent or some message to be logged.
I tried but couldn't find a simple way to do that. Except a way that seems unnecessarily complicated:
- fire a feature by a Creator,
- pipe it into the requestor of a FeatureMerger,
- let the port to be checked connect to the supplier port of FeatureMerger,
- connect the NotMerged port of the FeatureMerger to the "rare case" handling transformer
However, this method seems unnecessarily complicated to me if I only want to do simple handling such as writing a log message. Is there easier way?
Thank you!