@gidden, @rwcarlsen is right.  HDF5 is a C API and so it is impossible for this to throw exceptions in the C++ sense.  (HDF5 does have it own exception mechanism and backtrace functionality, but if anything, you want to turn that off.)  There is a C++ API for HDF5 but it has been deprecated, is incomplete, and should be avoided like death itself.