23 : std::runtime_error(msg +
"\nYou've found a bug! Please report it.") {}
25 InternalError(
const std::string& msg,
const std::string& file,
int line)
26 : std::runtime_error(msg +
"\nYou've found a bug! Please report it.\nAt " + file +
":" + std::to_string(line)) {}
32 #define bpp_assert(expr, msg) \
35 throw bpp::ErrorHandling::InternalError(msg, __FILE__, __LINE__); \
39 #define bpp_assert(expr, msg) ((void)0)
Definition InternalError.h:11
An exception thrown when an internal error occurs.
Definition InternalError.h:21
InternalError(const std::string &msg)
Definition InternalError.h:22
InternalError(const std::string &msg, const std::string &file, int line)
Definition InternalError.h:25