17 #ifndef __H5Exception_H
18 #define __H5Exception_H
22 #ifndef H5_NO_NAMESPACE
25 #define H5std_string ::string
27 #define H5std_string std::string
40 Exception(
const H5std_string& func_name,
const H5std_string& message = DEFAULT_MSG);
44 H5std_string getMajorString( hid_t err_major_id )
const;
48 H5std_string getMinorString( hid_t err_minor_id )
const;
51 H5std_string getDetailMsg()
const;
52 const char* getCDetailMsg()
const;
53 H5std_string getFuncName()
const;
54 const char* getCFuncName()
const;
57 static void setAutoPrint( H5E_auto2_t& func,
void* client_data);
60 static void dontPrint();
64 static void getAutoPrint( H5E_auto2_t& func,
void** client_data);
67 static void clearErrorStack();
71 static void walkErrorStack( H5E_direction_t direction,
72 H5E_walk2_t func,
void* client_data);
75 static void printErrorStack(FILE* stream = stderr,
76 hid_t err_stack = H5E_DEFAULT);
77 virtual void printError(FILE* stream = NULL)
const;
89 H5std_string detail_message;
90 H5std_string func_name;
94 static const char DEFAULT_MSG[];
99 FileIException(
const H5std_string& func_name,
const H5std_string& message = DEFAULT_MSG);
106 GroupIException(
const H5std_string& func_name,
const H5std_string& message = DEFAULT_MSG);
113 DataSpaceIException(
const H5std_string& func_name,
const H5std_string& message = DEFAULT_MSG);
120 DataTypeIException(
const H5std_string& func_name,
const H5std_string& message = DEFAULT_MSG);
127 PropListIException(
const H5std_string& func_name,
const H5std_string& message = DEFAULT_MSG);
134 DataSetIException(
const H5std_string& func_name,
const H5std_string& message = DEFAULT_MSG);
141 AttributeIException(
const H5std_string& func_name,
const H5std_string& message = DEFAULT_MSG);
148 ReferenceException(
const H5std_string& func_name,
const H5std_string& message = DEFAULT_MSG);
155 LibraryIException(
const H5std_string& func_name,
const H5std_string& message = DEFAULT_MSG);
162 LocationException(
const H5std_string& func_name,
const H5std_string& message = DEFAULT_MSG);
174 #ifndef H5_NO_NAMESPACE
178 #endif // __H5Exception_H
Definition: H5Exception.h:118
Definition: H5Exception.h:132
Definition: H5Exception.h:111
Definition: H5Exception.h:104
Definition: H5Exception.h:139
Exception provides wrappers of HDF5 error handling functions.
Definition: H5Exception.h:36
Definition: H5Exception.h:125
Definition: H5Exception.h:97
Definition: H5Exception.h:146
Definition: H5Exception.h:160
Definition: H5Exception.h:167
Definition: H5Exception.h:153