CWDIO is an ActiveX control, so most of its exceptions are COleException type. Of course, it is possible that it could be a general error like an Access Violation, which would be just a CException type.
I would be checking for COleException and CException.
Best Regards,
Chris Matthews
National Instruments