error_occurred event

error_occurred event

Occurs when an error happens during an extractor operation.

Definition:

extractor.error_occurred += handler    # subscribe handler(sender, args)
extractor.error_occurred -= handler    # remove the last subscription of handler
extractor.error_occurred.clear()       # remove every handler added from Python

Handler arguments

Argument Description
sender The object that raised the event.
args IndexErrorEventArgs

The handler runs on the thread that raises the event, which can be an engine worker thread. An exception it raises there is printed to stderr and ignored; on the calling thread it reaches the engine, as in .NET.

See Also