20 #define H5std_string std::string
31 Exception(
const H5std_string &func_name,
const H5std_string &message = DEFAULT_MSG);
35 H5std_string getMajorString(hid_t err_major_id)
const;
39 H5std_string getMinorString(hid_t err_minor_id)
const;
42 H5std_string getDetailMsg()
const;
43 const char *getCDetailMsg()
const;
44 H5std_string getFuncName()
const;
45 const char *getCFuncName()
const;
48 static void setAutoPrint(H5E_auto2_t &func,
void *client_data);
51 static void dontPrint();
55 static void getAutoPrint(H5E_auto2_t &func,
void **client_data);
58 static void clearErrorStack();
62 static void walkErrorStack(H5E_direction_t direction, H5E_walk2_t func,
void *client_data);
65 static void printErrorStack(FILE *stream = stderr, hid_t err_stack = H5E_DEFAULT);
81 static const char DEFAULT_MSG[];
84 H5std_string detail_message;
85 H5std_string func_name;
90 FileIException(
const H5std_string &func_name,
const H5std_string &message = DEFAULT_MSG);
97 GroupIException(
const H5std_string &func_name,
const H5std_string &message = DEFAULT_MSG);
104 DataSpaceIException(
const H5std_string &func_name,
const H5std_string &message = DEFAULT_MSG);
111 DataTypeIException(
const H5std_string &func_name,
const H5std_string &message = DEFAULT_MSG);
118 ObjHeaderIException(
const H5std_string &func_name,
const H5std_string &message = DEFAULT_MSG);
125 PropListIException(
const H5std_string &func_name,
const H5std_string &message = DEFAULT_MSG);
132 DataSetIException(
const H5std_string &func_name,
const H5std_string &message = DEFAULT_MSG);
139 AttributeIException(
const H5std_string &func_name,
const H5std_string &message = DEFAULT_MSG);
146 ReferenceException(
const H5std_string &func_name,
const H5std_string &message = DEFAULT_MSG);
153 LibraryIException(
const H5std_string &func_name,
const H5std_string &message = DEFAULT_MSG);
160 LocationException(
const H5std_string &func_name,
const H5std_string &message = DEFAULT_MSG);
174 #endif // H5Exception_H
const char * getCDetailMsg() const
Returns the detailed message set at the time the exception is thrown.
Definition: H5Exception.cpp:277
Exception provides wrappers of HDF5 error handling functions.
Definition: H5Exception.h:27
virtual ~PropListIException() H5_OVERRIDE
Noop destructor.
Definition: H5Exception.cpp:524
Definition: H5Exception.h:158
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:180
Definition: H5Exception.h:123
virtual ~DataSpaceIException() H5_OVERRIDE
Noop destructor.
Definition: H5Exception.cpp:434
static void printErrorStack(FILE *stream=stderr, hid_t err_stack=H5E_DEFAULT)
Prints the error stack in a default manner.
Definition: H5Exception.cpp:314
virtual ~DataSetIException() H5_OVERRIDE
Noop destructor.
Definition: H5Exception.cpp:554
static const char DEFAULT_MSG[]
Definition: H5Exception.h:81
Definition: H5Exception.h:165
static void dontPrint()
Turns off the automatic error printing from the C library.
Definition: H5Exception.cpp:160
Definition: H5Exception.h:102
static void clearErrorStack()
Clears the error stack for the current thread.
Definition: H5Exception.cpp:198
DataSpaceIException()
Default constructor.
Definition: H5Exception.cpp:416
virtual ~LibraryIException() H5_OVERRIDE
Noop destructor.
Definition: H5Exception.cpp:644
FileIException()
Default constructor.
Definition: H5Exception.cpp:356
Definition: H5Exception.h:88
Definition: H5Exception.h:109
Definition: H5Exception.h:137
virtual ~GroupIException() H5_OVERRIDE
Noop destructor.
Definition: H5Exception.cpp:404
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:248
LocationException()
Default constructor.
Definition: H5Exception.cpp:656
ReferenceException()
Default constructor.
Definition: H5Exception.cpp:596
virtual ~IdComponentException() H5_OVERRIDE
Noop destructor.
Definition: H5Exception.cpp:704
H5std_string getDetailMsg() const
Returns the detailed message set at the time the exception is thrown.
Definition: H5Exception.cpp:264
virtual ~DataTypeIException() H5_OVERRIDE
Noop destructor.
Definition: H5Exception.cpp:464
Exception()
Default constructor.
Definition: H5Exception.cpp:27
virtual ~Exception()
Noop destructor.
Definition: H5Exception.cpp:344
LibraryIException()
Default constructor.
Definition: H5Exception.cpp:626
IdComponentException()
Default constructor.
Definition: H5Exception.cpp:686
PropListIException()
Default constructor.
Definition: H5Exception.cpp:506
H5std_string getFuncName() const
Returns the name of the function, where the exception is thrown.
Definition: H5Exception.cpp:289
Definition: H5Exception.h:144
const char * getCFuncName() const
Returns the name of the function, where the exception is thrown.
Definition: H5Exception.cpp:301
virtual ~FileIException() H5_OVERRIDE
Noop destructor.
Definition: H5Exception.cpp:374
Definition: H5Exception.h:151
AttributeIException()
Default constructor.
Definition: H5Exception.cpp:566
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:66
Definition: H5AbstractDs.cpp:33
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:103
Definition: H5Exception.h:95
virtual ~LocationException() H5_OVERRIDE
Noop destructor.
Definition: H5Exception.cpp:674
static void setAutoPrint(H5E_auto2_t &func, void *client_data)
Turns on the automatic error printing.
Definition: H5Exception.cpp:145
DataSetIException()
Default constructor.
Definition: H5Exception.cpp:536
GroupIException()
Default constructor.
Definition: H5Exception.cpp:386
virtual ~AttributeIException() H5_OVERRIDE
Noop destructor.
Definition: H5Exception.cpp:584
virtual ~ReferenceException() H5_OVERRIDE
Noop destructor.
Definition: H5Exception.cpp:614
DataTypeIException()
Default constructor.
Definition: H5Exception.cpp:446
Definition: H5Exception.h:130
The HDF Group Help Desk:
| |
Copyright by
The HDF Group
|