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);
73 virtual void printError(FILE* stream = NULL)
const;
86 static const char DEFAULT_MSG[];
89 H5std_string detail_message;
90 H5std_string func_name;
95 FileIException(
const H5std_string& func_name,
const H5std_string& message = DEFAULT_MSG);
102 GroupIException(
const H5std_string& func_name,
const H5std_string& message = DEFAULT_MSG);
109 DataSpaceIException(
const H5std_string& func_name,
const H5std_string& message = DEFAULT_MSG);
116 DataTypeIException(
const H5std_string& func_name,
const H5std_string& message = DEFAULT_MSG);
123 ObjHeaderIException(
const H5std_string& func_name,
const H5std_string& message = DEFAULT_MSG);
130 PropListIException(
const H5std_string& func_name,
const H5std_string& message = DEFAULT_MSG);
137 DataSetIException(
const H5std_string& func_name,
const H5std_string& message = DEFAULT_MSG);
144 AttributeIException(
const H5std_string& func_name,
const H5std_string& message = DEFAULT_MSG);
151 ReferenceException(
const H5std_string& func_name,
const H5std_string& message = DEFAULT_MSG);
158 LibraryIException(
const H5std_string& func_name,
const H5std_string& message = DEFAULT_MSG);
165 LocationException(
const H5std_string& func_name,
const H5std_string& message = DEFAULT_MSG);
179 #endif // __H5Exception_H
Definition: H5Exception.h:114
Definition: H5Exception.h:135
Definition: H5Exception.h:107
Definition: H5Exception.h:100
Definition: H5Exception.h:142
Exception provides wrappers of HDF5 error handling functions.
Definition: H5Exception.h:32
Definition: H5Exception.h:128
Definition: H5Exception.h:93
Definition: H5Exception.h:149
Definition: H5Exception.h:163
Definition: H5Exception.h:170
Definition: H5Exception.h:156