ddn.data.hdf5.types
HDF5 Wrapper Types and Exceptions
This module provides wrapper-specific types, exceptions, and error handling utilities for the HDF5 D wrapper library.
License
BSD-3-Clause
class HDF5Exception
Types 5
classHDF5Exception : Exception
Exception thrown when an HDF5 operation fails.
This exception captures the error context including the function name and optional error message from the HDF5 library.
Fields
herr_t errorCodeThe HDF5 error code, if availablestring functionNameThe name of the HDF5 function that failedenumFileAccessMode
File access mode for opening HDF5 files.
readOnlyOpen file as read-only
readWriteOpen file for reading and writing
enumFileCreateMode
File creation mode for creating HDF5 files.
exclusiveFail if file already exists
truncateOverwrite existing file
enumAllocationTime
Dataset allocation time.
earlyAllocate storage when dataset is created
incrementalAllocate incrementally as data is written
lateAllocate storage when data is first written
default_Use default allocation time
enumSelectionOp
Hyperslab selection operation.
setReplace current selection
orOR with current selection
andAND with current selection
xorXOR with current selection
notBNOT-B AND A with current selection
notANOT-A AND B with current selection
Functions 5
fn
void enforceSuccess(herr_t status, lazy string msg, string funcName = "")Enforces that an HDF5 operation succeeded, throwing an exception on failure.fn
hid_t enforceValidId(hid_t id, lazy string msg, string funcName = "")Enforces that an HDF5 ID is valid, throwing an exception on failure.