15 #ifndef __H5Exception_H
16 #define __H5Exception_H
23 #define H5std_string ::string
25 #define H5std_string std::string
37 Exception(
const H5std_string& func_name,
const H5std_string& message = DEFAULT_MSG);
41 H5std_string getMajorString(hid_t err_major_id)
const;
45 H5std_string getMinorString(hid_t err_minor_id)
const;
48 H5std_string getDetailMsg()
const;
49 const char* getCDetailMsg()
const;
50 H5std_string getFuncName()
const;
51 const char* getCFuncName()
const;
54 static void setAutoPrint(H5E_auto2_t& func,
void* client_data);
57 static void dontPrint();
61 static void getAutoPrint(H5E_auto2_t& func,
void** client_data);
64 static void clearErrorStack();
68 static void walkErrorStack(H5E_direction_t direction,
69 H5E_walk2_t func,
void* client_data);
72 static void printErrorStack(FILE* stream = stderr,
73 hid_t err_stack = H5E_DEFAULT);
74 virtual void printError(FILE* stream = NULL)
const;
87 static const char DEFAULT_MSG[];
90 H5std_string detail_message;
91 H5std_string func_name;
96 FileIException(
const H5std_string& func_name,
const H5std_string& message = DEFAULT_MSG);
103 GroupIException(
const H5std_string& func_name,
const H5std_string& message = DEFAULT_MSG);
110 DataSpaceIException(
const H5std_string& func_name,
const H5std_string& message = DEFAULT_MSG);
117 DataTypeIException(
const H5std_string& func_name,
const H5std_string& message = DEFAULT_MSG);
124 PropListIException(
const H5std_string& func_name,
const H5std_string& message = DEFAULT_MSG);
131 DataSetIException(
const H5std_string& func_name,
const H5std_string& message = DEFAULT_MSG);
138 AttributeIException(
const H5std_string& func_name,
const H5std_string& message = DEFAULT_MSG);
145 ReferenceException(
const H5std_string& func_name,
const H5std_string& message = DEFAULT_MSG);
152 LibraryIException(
const H5std_string& func_name,
const H5std_string& message = DEFAULT_MSG);
159 LocationException(
const H5std_string& func_name,
const H5std_string& message = DEFAULT_MSG);
173 #endif // __H5Exception_H
Definition: H5Exception.h:115
Definition: H5Exception.h:129
Definition: H5Exception.h:108
Definition: H5Exception.h:101
Definition: H5Exception.h:136
Exception provides wrappers of HDF5 error handling functions.
Definition: H5Exception.h:33
Definition: H5Exception.h:122
Definition: H5Exception.h:94
Definition: H5Exception.h:143
Definition: H5Exception.h:157
Definition: H5Exception.h:164
Definition: H5Exception.h:150