libtcspc.StopWithError¶
- final class libtcspc.StopWithError(event_types, message_prefix)[source]¶
Bases:
NodePass-through processor that ends the stream with an error on a configured event.
When an event matching one of
event_typesis received, processing ends with an error: aRuntimeError-equivalent is raised on the Python side, withmessage_prefixincluded in the message. UnlikeStop, the downstream is not flushed. All other events pass through unchanged.- Parameters:
Notes
Events handled:
Events matching one of
event_types: end processing with an error. The downstream is not flushed.All other event types: pass through unchanged.
End of input: pass through.
See also
- tcspc::stop_with_error()
The underlying C++ factory function.