enforceValidId
fn
hid_t enforceValidId(hid_t id, lazy string msg, string funcName = "")Enforces that an HDF5 ID is valid, throwing an exception on failure.
Parameters
id | The HDF5 identifier to check |
msg | Error message to include in the exception |
funcName | Name of the HDF5 function (optional) |
Returns
The validated ID
Throws
HDF5Exception if the ID is invalid