How to catch errors in VTK

My main use of an error observer is to test error paths in VTK. I grab the error and verify that its contents contain certain strings.

For a big app like slicer, @lassoan approach is better.

1 Like