5 #ifndef _HEBench_API_Bridge_Error_H_7e5fa8c2415240ea93eff148ed73539b
6 #define _HEBench_API_Bridge_Error_H_7e5fa8c2415240ea93eff148ed73539b
14 #define HEBERROR_DECLARE_CLASS_NAME(class_name) static constexpr const char *m_private_class_name = #class_name;
16 #define HEBERROR_MSG_CLASS(message) hebench::cpp::HEBenchError::generateMessage((message), \
17 __func__, m_private_class_name, \
20 #define HEBERROR_MSG(message) hebench::cpp::HEBenchError::generateMessage((message), \
21 __func__, std::string(), \
27 HEBenchError(
const std::string &msg = std::string(),
int err_code = 0) :
28 std::runtime_error(msg), m_err_code(err_code)
35 const std::string &
function,
36 const std::string &container,
37 const std::string &filename,
static std::string generateMessage(const std::string &message, const std::string &function, const std::string &container, const std::string &filename, int line_no)
HEBenchError(const std::string &msg=std::string(), int err_code=0)