Fixes #1593: Allow access to exception currently processed by CErrorHandler

Fixes #1593: Allow access to exception currently processed by CErrorHandler