diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2003-08-13 01:58:10 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2003-08-13 01:58:10 (GMT) |
commit | d72cdcad4da57bb02f41afaac47cf08281143f0f (patch) | |
tree | 87dcca8e455bc1a751f71b966495ed86a9566fe3 /src/H5Eprivate.h | |
parent | d88b379479f316f2147c1053aa0037d3ef2903a4 (diff) | |
download | hdf5-d72cdcad4da57bb02f41afaac47cf08281143f0f.zip hdf5-d72cdcad4da57bb02f41afaac47cf08281143f0f.tar.gz hdf5-d72cdcad4da57bb02f41afaac47cf08281143f0f.tar.bz2 |
[svn-r7355] Purpose:
Code cleanup, etc.
Description:
Previously (in versions prior to 1.7), there were two locations to
modify when an error was added to the library. Now, with the new error API,
there were four.
Solution:
Created a single text file (src/H5err.txt) and a perl script (bin/make_err)
which uses the text file to automatically create header files that are included
in appropriate places in the library.
This means that there is only one file (src/H5err.txt) which needs to be
modified when a new error code is added to the library. The automatically
generated headers depend on this file and the makefiles will take care of
running the perl script to regenerate them when the text file changes, so no
user action is required when a new error is added.
Platforms tested:
h5committested
Diffstat (limited to 'src/H5Eprivate.h')
-rw-r--r-- | src/H5Eprivate.h | 141 |
1 files changed, 0 insertions, 141 deletions
diff --git a/src/H5Eprivate.h b/src/H5Eprivate.h index 30e3bad..0a4832a 100644 --- a/src/H5Eprivate.h +++ b/src/H5Eprivate.h @@ -58,147 +58,6 @@ typedef struct H5E_print_t { #define H5E_CLS_NAME "HDF5" #define H5E_CLS_LIB_NAME "HDF5" -/* HDF5 error class: major errors */ -#define H5E_MAJ_ARGS_MSG "Function arguments" -#define H5E_MAJ_RESOURCE_MSG "Resource unavailable" -#define H5E_MAJ_INTERNAL_MSG "Internal HDF5 error" -#define H5E_MAJ_FILE_MSG "File interface" -#define H5E_MAJ_IO_MSG "Low-level I/O layer" -#define H5E_MAJ_FUNC_MSG "Function entry/exit" -#define H5E_MAJ_ATOM_MSG "Atom layer" -#define H5E_MAJ_CACHE_MSG "Meta data cache layer" -#define H5E_MAJ_BTREE_MSG "B-tree layer" -#define H5E_MAJ_SYM_MSG "Symbol table layer" -#define H5E_MAJ_HEAP_MSG "Heap layer" -#define H5E_MAJ_OHDR_MSG "Object header layer" -#define H5E_MAJ_DATATYPE_MSG "Datatype interface" -#define H5E_MAJ_DATASPACE_MSG "Dataspace interface" -#define H5E_MAJ_DATASET_MSG "Dataset interface" -#define H5E_MAJ_STORAGE_MSG "Data storage layer" -#define H5E_MAJ_PLIST_MSG "Property list interface" -#define H5E_MAJ_ATTR_MSG "Attribute layer" -#define H5E_MAJ_PLINE_MSG "Data filters layer" -#define H5E_MAJ_EFL_MSG "External file list" -#define H5E_MAJ_REFERENCE_MSG "References layer" -#define H5E_MAJ_VFL_MSG "Virtual File Layer" -#define H5E_MAJ_TBBT_MSG "Threaded, Balanced, Binary Trees" -#define H5E_MAJ_FPHDF5_MSG "Flexible Parallel HDF5" -#define H5E_MAJ_TST_MSG "Ternary Search Trees" -#define H5E_MAJ_RS_MSG "Reference Counted Strings" -#define H5E_MAJ_ERROR_MSG "Error API" - -/* HDF5 error class: minor errors */ - /* Argument errors */ -#define H5E_MIN_UNINITIALIZED_MSG "Information is uninitialized" -#define H5E_MIN_UNSUPPORTED_MSG "Feature is unsupported" -#define H5E_MIN_BADTYPE_MSG "Inappropriate type" -#define H5E_MIN_BADRANGE_MSG "Out of range" -#define H5E_MIN_BADVALUE_MSG "Bad value" - - /* Resource errors */ -#define H5E_MIN_NOSPACE_MSG "No space available for allocation" -#define H5E_MIN_CANTCOPY_MSG "Unable to copy object" -#define H5E_MIN_CANTFREE_MSG "Unable to free object" -#define H5E_MIN_ALREADYEXISTS_MSG "Object already exists" -#define H5E_MIN_CANTLOCK_MSG "Unable to lock object" -#define H5E_MIN_CANTUNLOCK_MSG "Unable to unlock object" -#define H5E_MIN_CANTGC_MSG "Unable to garbage collect" - - /* File accessability errors */ -#define H5E_MIN_FILEEXISTS_MSG "File already exists" -#define H5E_MIN_FILEOPEN_MSG "File already open" -#define H5E_MIN_CANTCREATE_MSG "Unable to create file" -#define H5E_MIN_CANTOPENFILE_MSG "Unable to open file" -#define H5E_MIN_CANTCLOSEFILE_MSG "Unable to close file" -#define H5E_MIN_NOTHDF5_MSG "Not an HDF5 file" -#define H5E_MIN_BADFILE_MSG "Bad file ID accessed" -#define H5E_MIN_TRUNCATED_MSG "File has been truncated" -#define H5E_MIN_MOUNT_MSG "File mount error" - - /* Generic low-level file I/O errors */ -#define H5E_MIN_SEEKERROR_MSG "Seek failed" -#define H5E_MIN_READERROR_MSG "Read failed" -#define H5E_MIN_WRITEERROR_MSG "Write failed" -#define H5E_MIN_CLOSEERROR_MSG "Close failed" -#define H5E_MIN_OVERFLOW_MSG "Address overflowed" -#define H5E_MIN_FCNTL_MSG "File control (fcntl) failed" - - /* Function entry/exit interface errors */ -#define H5E_MIN_CANTINIT_MSG "Unable to initialize object" -#define H5E_MIN_ALREADYINIT_MSG "Object already initialized" -#define H5E_MIN_CANTRELEASE_MSG "Unable to release object" - - /* Object atom related errors */ -#define H5E_MIN_BADATOM_MSG "Unable to find atom information (already closed?)" -#define H5E_MIN_BADGROUP_MSG "Unable to find ID group information" -#define H5E_MIN_CANTREGISTER_MSG "Unable to register new atom" -#define H5E_MIN_CANTINC_MSG "Unable to increment reference count" -#define H5E_MIN_CANTDEC_MSG "Unable to decrement reference count" -#define H5E_MIN_NOIDS_MSG "Out of IDs for group" - - /* Cache related errors */ -#define H5E_MIN_CANTFLUSH_MSG "Unable to flush data from cache" -#define H5E_MIN_CANTLOAD_MSG "Unable to load meta data into cache" -#define H5E_MIN_PROTECT_MSG "Protected meta data error" -#define H5E_MIN_NOTCACHED_MSG "Meta data not currently cached" - - /* B-tree related errors */ -#define H5E_MIN_NOTFOUND_MSG "Object not found" -#define H5E_MIN_EXISTS_MSG "Object already exists" -#define H5E_MIN_CANTENCODE_MSG "Unable to encode value" -#define H5E_MIN_CANTDECODE_MSG "Unable to decode value" -#define H5E_MIN_CANTSPLIT_MSG "Unable to split node" -#define H5E_MIN_CANTINSERT_MSG "Unable to insert object" -#define H5E_MIN_CANTLIST_MSG "Unable to list node" - - /* Object header related errors */ -#define H5E_MIN_LINKCOUNT_MSG "Bad object header link count" -#define H5E_MIN_VERSION_MSG "Wrong version number" -#define H5E_MIN_ALIGNMENT_MSG "Alignment error" -#define H5E_MIN_BADMESG_MSG "Unrecognized message" -#define H5E_MIN_CANTDELETE_MSG "Can't delete message" - - /* Group related errors */ -#define H5E_MIN_CANTOPENOBJ_MSG "Can't open object" -#define H5E_MIN_COMPLEN_MSG "Name component is too long" -#define H5E_MIN_CWG_MSG "Problem with current working group" -#define H5E_MIN_LINK_MSG "Link count failure" -#define H5E_MIN_SLINK_MSG "Symbolic link error" - - /* Datatype conversion errors */ -#define H5E_MIN_CANTCONVERT_MSG "Can't convert datatypes" -#define H5E_MIN_BADSIZE_MSG "Bad size for object" - - /* Dataspace errors */ -#define H5E_MIN_CANTCLIP_MSG "Can't clip hyperslab region" -#define H5E_MIN_CANTCOUNT_MSG "Can't count elements" -#define H5E_MIN_CANTSELECT_MSG "Can't select hyperslab" -#define H5E_MIN_CANTNEXT_MSG "Can't move to next iterator location" -#define H5E_MIN_BADSELECT_MSG "Invalid selection" -#define H5E_MIN_CANTCOMPARE_MSG "Can't compare objects" - - /* Property list errors */ -#define H5E_MIN_CANTGET_MSG "Can't get value" -#define H5E_MIN_CANTSET_MSG "Can't set value" -#define H5E_MIN_DUPCLASS_MSG "Duplicate class name in parent class" - - /* Parallel MPI errors */ -#define H5E_MIN_MPI_MSG "Some MPI function failed" -#define H5E_MIN_MPIERRSTR_MSG "MPI Error String" - - /* FPHDF5 errors */ -#define H5E_MIN_CANTMAKETREE_MSG "Can't create a binary tree node" -#define H5E_MIN_CANTRECV_MSG "Can't receive messages from processes" -#define H5E_MIN_CANTSENDMDATA_MSG "Can't send metadata message" -#define H5E_MIN_CANTCHANGE_MSG "Can't register change with server" -#define H5E_MIN_CANTALLOC_MSG "Can't allocate from file" - - /* I/O pipeline errors */ -#define H5E_MIN_NOFILTER_MSG "Requested filter is not available" -#define H5E_MIN_CALLBACK_MSG "Callback failed" -#define H5E_MIN_CANAPPLY_MSG "Error from filter \"can apply\" callback" -#define H5E_MIN_SETLOCAL_MSG "Error from filter \"set local\" callback" - /* * HERROR macro, used to facilitate error reporting between a FUNC_ENTER() * and a FUNC_LEAVE() within a function body. The arguments are the major |