15 #ifndef __H5Exception_H
16 #define __H5Exception_H
22 #define H5std_string ::string
24 #define H5std_string std::string
36 Exception(
const H5std_string& func_name,
const H5std_string& message = DEFAULT_MSG);
40 H5std_string getMajorString(hid_t err_major_id)
const;
44 H5std_string getMinorString(hid_t err_minor_id)
const;
47 H5std_string getDetailMsg()
const;
48 const char* getCDetailMsg()
const;
49 H5std_string getFuncName()
const;
50 const char* getCFuncName()
const;
53 static void setAutoPrint(H5E_auto2_t& func,
void* client_data);
56 static void dontPrint();
60 static void getAutoPrint(H5E_auto2_t& func,
void** client_data);
63 static void clearErrorStack();
67 static void walkErrorStack(H5E_direction_t direction,
68 H5E_walk2_t func,
void* client_data);
71 static void printErrorStack(FILE* stream = stderr,
72 hid_t err_stack = H5E_DEFAULT);
88 static const char DEFAULT_MSG[];
91 H5std_string detail_message;
92 H5std_string func_name;
97 FileIException(
const H5std_string& func_name,
const H5std_string& message = DEFAULT_MSG);
104 GroupIException(
const H5std_string& func_name,
const H5std_string& message = DEFAULT_MSG);
111 DataSpaceIException(
const H5std_string& func_name,
const H5std_string& message = DEFAULT_MSG);
118 DataTypeIException(
const H5std_string& func_name,
const H5std_string& message = DEFAULT_MSG);
125 ObjHeaderIException(
const H5std_string& func_name,
const H5std_string& message = DEFAULT_MSG);
132 PropListIException(
const H5std_string& func_name,
const H5std_string& message = DEFAULT_MSG);
139 DataSetIException(
const H5std_string& func_name,
const H5std_string& message = DEFAULT_MSG);
146 AttributeIException(
const H5std_string& func_name,
const H5std_string& message = DEFAULT_MSG);
153 ReferenceException(
const H5std_string& func_name,
const H5std_string& message = DEFAULT_MSG);
160 LibraryIException(
const H5std_string& func_name,
const H5std_string& message = DEFAULT_MSG);
167 LocationException(
const H5std_string& func_name,
const H5std_string& message = DEFAULT_MSG);
181 #endif // __H5Exception_H
const char * getCDetailMsg() const
Returns the detailed message set at the time the exception is thrown.
Definition: H5Exception.cpp:268
virtual ~FileIException()
Noop destructor.
Definition: H5Exception.cpp:355
Exception provides wrappers of HDF5 error handling functions.
Definition: H5Exception.h:32
Definition: H5Exception.h:165
virtual ~PropListIException()
Noop destructor.
Definition: H5Exception.cpp:470
static void getAutoPrint(H5E_auto2_t &func, void **client_data)
Retrieves the current settings for the automatic error stack traversal function and its data.
Definition: H5Exception.cpp:175
Definition: H5Exception.h:130
virtual ~LocationException()
Noop destructor.
Definition: H5Exception.cpp:585
static void printErrorStack(FILE *stream=stderr, hid_t err_stack=H5E_DEFAULT)
Prints the error stack in a default manner.
Definition: H5Exception.cpp:302
static const char DEFAULT_MSG[]
Definition: H5Exception.h:88
Definition: H5Exception.h:172
static void dontPrint()
Turns off the automatic error printing from the C library.
Definition: H5Exception.cpp:156
Definition: H5Exception.h:109
virtual ~DataSpaceIException()
Noop destructor.
Definition: H5Exception.cpp:401
static void clearErrorStack()
Clears the error stack for the current thread.
Definition: H5Exception.cpp:192
virtual ~GroupIException()
Noop destructor.
Definition: H5Exception.cpp:378
DataSpaceIException()
Default constructor.
Definition: H5Exception.cpp:388
FileIException()
Default constructor.
Definition: H5Exception.cpp:342
Definition: H5Exception.h:95
Definition: H5Exception.h:116
Definition: H5Exception.h:144
static void walkErrorStack(H5E_direction_t direction, H5E_walk2_t func, void *client_data)
Walks the error stack for the current thread, calling the specified function.
Definition: H5Exception.cpp:241
LocationException()
Default constructor.
Definition: H5Exception.cpp:572
ReferenceException()
Default constructor.
Definition: H5Exception.cpp:526
virtual ~IdComponentException()
Noop destructor.
Definition: H5Exception.cpp:608
virtual ~DataSetIException()
Noop destructor.
Definition: H5Exception.cpp:493
virtual ~DataTypeIException()
Noop destructor.
Definition: H5Exception.cpp:424
H5std_string getDetailMsg() const
Returns the detailed message set at the time the exception is thrown.
Definition: H5Exception.cpp:256
Exception()
Default constructor.
Definition: H5Exception.cpp:28
virtual ~Exception()
Noop destructor.
Definition: H5Exception.cpp:332
LibraryIException()
Default constructor.
Definition: H5Exception.cpp:549
IdComponentException()
Default constructor.
Definition: H5Exception.cpp:595
PropListIException()
Default constructor.
Definition: H5Exception.cpp:457
H5std_string getFuncName() const
Returns the name of the function, where the exception is thrown.
Definition: H5Exception.cpp:279
Definition: H5Exception.h:151
const char * getCFuncName() const
Returns the name of the function, where the exception is thrown.
Definition: H5Exception.cpp:290
Definition: H5Exception.h:158
AttributeIException()
Default constructor.
Definition: H5Exception.cpp:503
virtual ~AttributeIException()
Noop destructor.
Definition: H5Exception.cpp:516
H5std_string getMajorString(hid_t err_major_id) const
Returns a text string that describes the error specified by a major error number.
Definition: H5Exception.cpp:59
Definition: H5AbstractDs.cpp:34
H5std_string getMinorString(hid_t err_minor_id) const
Returns a text string that describes the error specified by a minor error number.
Definition: H5Exception.cpp:98
Definition: H5Exception.h:102
virtual ~LibraryIException()
Noop destructor.
Definition: H5Exception.cpp:562
static void setAutoPrint(H5E_auto2_t &func, void *client_data)
Turns on the automatic error printing.
Definition: H5Exception.cpp:142
DataSetIException()
Default constructor.
Definition: H5Exception.cpp:480
GroupIException()
Default constructor.
Definition: H5Exception.cpp:365
virtual ~ReferenceException()
Noop destructor.
Definition: H5Exception.cpp:539
DataTypeIException()
Default constructor.
Definition: H5Exception.cpp:411
Definition: H5Exception.h:137
The HDF Group Help Desk:
| |
Copyright by
The HDF Group
and the Board of Trustees of the University of Illinois
|