CWG1769 Catching a base class of the exception object