utilities for custom assertions More...
Classes | |
class | Exception |
class | Numerical_exception |
represents a fatal problem in the numerics of the code (such as nonphysical values) More... | |
class | User_error |
represents an exception which clearly results from a mistake made by the user More... | |
Functions | |
template<typename except_t = std::runtime_error> | |
void | throw_critical (const char *message) |
utilities for custom assertions
void hexed::assert::throw_critical | ( | const char * | message | ) |
throws a std::runtime_error
with message message
, wrapped in a #pragma omp critical
if necessary. Used in HEXED_ASSERT