In my workbench, all "Not Merged" / "Rejected" paths etc, redirect to a FeatureWriter that logs errors to the database.
However, the PythonCaller only has the "Output" path - how would I capture and log these exceptions?
Could I do something like this?
- Update PythonCaller to Catch the Exception and store detail in an Attribute (don't raise exception)
try:
...
except:
feature.setAttribute("Error", sys.exc_info()e0])
- Use Tester to check if Error Message exists
- Fork based on Error contents
- Wire-up to exception-logging path