42 using std::ostringstream;
45 #include "config_hdf.h"
52 dhdferr::dhdferr(
const string & msg,
const string & file,
int line)
56 strm << get_error_message() << endl
57 <<
"Location: \"" << file <<
"\", line " << line;
58 (*BESLog::TheLog()) << strm.str() << endl ;
61 dhdferr_hcerr::dhdferr_hcerr(
const string & msg,
const string & file,
int line)
65 strm << get_error_message() << endl
66 <<
"Location: \"" << file <<
"\", line " << line;
67 for (
int i = 0; i < 5; ++i)
68 strm << i <<
") " << HEstring((hdf_err_code_t) HEvalue(i)) << endl;
69 (*BESLog::TheLog()) << strm.str() << endl ;