enforceSuccess

fnvoid enforceSuccess(herr_t status, lazy string msg, string funcName = "")

Enforces that an HDF5 operation succeeded, throwing an exception on failure.

Parameters

statusThe HDF5 return status
msgError message to include in the exception
funcNameName of the HDF5 function (optional)

Throws

HDF5Exception if the operation failed