safeCallId

fnhid_t safeCallId(hid_t operation, lazy string errorMsg)

Safely executes an HDF5 operation that returns an ID.

Parameters

operationThe operation to execute
errorMsgError message if operation fails

Returns

The valid ID from the operation

Throws

HDF5Exception if the operation returns an invalid ID