17 #ifndef __H5Exception_H
18 #define __H5Exception_H
24 #define H5std_string ::string
26 #define H5std_string std::string
38 Exception(
const H5std_string& func_name,
const H5std_string& message = DEFAULT_MSG);
42 H5std_string getMajorString( hid_t err_major_id )
const;
46 H5std_string getMinorString( hid_t err_minor_id )
const;
49 H5std_string getDetailMsg()
const;
50 const char* getCDetailMsg()
const;
51 H5std_string getFuncName()
const;
52 const char* getCFuncName()
const;
55 static void setAutoPrint( H5E_auto2_t& func,
void* client_data);
58 static void dontPrint();
62 static void getAutoPrint( H5E_auto2_t& func,
void** client_data);
65 static void clearErrorStack();
69 static void walkErrorStack( H5E_direction_t direction,
70 H5E_walk2_t func,
void* client_data);
73 static void printErrorStack(FILE* stream = stderr,
74 hid_t err_stack = H5E_DEFAULT);
75 virtual void printError(FILE* stream = NULL)
const;
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 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);
173 #endif // __H5Exception_H
Definition: H5Exception.h:116
Definition: H5Exception.h:130
Definition: H5Exception.h:109
Definition: H5Exception.h:102
Definition: H5Exception.h:137
Exception provides wrappers of HDF5 error handling functions.
Definition: H5Exception.h:34
Definition: H5Exception.h:123
Definition: H5Exception.h:95
Definition: H5Exception.h:144
Definition: H5Exception.h:158
Definition: H5Exception.h:165
Definition: H5Exception.h:151