I have been trying to capture an error that has bee showing up in my syslog (Not that this is a python script that calls a C++ Class):
Sep 3 13:42:27 awdn1 python3[9414]: HDF5-DIAG: Error detected in HDF5 (1.10.0-patch1) thread 139689250795008:
Sep 3 13:42:27 awdn1 python3[9414]: #000: …/…/…/src/H5F.c line 579 in H5Fopen(): unable to open file
Sep 3 13:42:27 awdn1 python3[9414]: major: File accessibilty
Sep 3 13:42:27 awdn1 python3[9414]: minor: Unable to open file
Sep 3 13:42:27 awdn1 python3[9414]: #001: …/…/…/src/H5Fint.c line 1168 in H5F_open(): unable to lock the file or initialize file structure
Sep 3 13:42:27 awdn1 python3[9414]: major: File accessibilty
Sep 3 13:42:27 awdn1 python3[9414]: minor: Unable to open file
Sep 3 13:42:27 awdn1 python3[9414]: #002: …/…/…/src/H5FD.c line 1821 in H5FD_lock(): driver lock request failed
Sep 3 13:42:27 awdn1 python3[9414]: major: Virtual File Layer
Sep 3 13:42:27 awdn1 python3[9414]: minor: Can’t update object
Sep 3 13:42:27 awdn1 python3[9414]: #003: …/…/…/src/H5FDsec2.c line 939 in H5FD_sec2_lock(): unable to flock file, errno = 11, error message = ‘Resource temporarily unavailable’
Sep 3 13:42:27 awdn1 python3[9414]: major: File accessibilty
Sep 3 13:42:27 awdn1 python3[9414]: minor: Bad file ID accessed
So far for my program I have tried:
catch(H5::FileIException &err) { std::cout << err.getDetailMsg() << std::endl;} catch(H5::DataSetIException &err) {std::cout << err.getDetailMsg() << std::endl;} catch(H5::DataSpaceIException &err) {std::cout << err.getDetailMsg() << std::endl;}
That did not output the above HDF5-DIAG error. What code do I need to get the catch to grab and print this error?