Raise an IOError if a C++ XCDFException is caught.