validateId

fnhid_t validateId(hid_t id, string objectType = "object")

Validates an HDF5 ID and throws an exception if invalid.

Parameters

idThe HDF5 identifier to validate
objectTypeDescription of the object type for error messages

Returns

The validated ID

Throws

HDF5Exception if the ID is invalid