hexed 0.4.0
 
Loading...
Searching...
No Matches
hexed::assert Namespace Reference

utilities for custom assertions More...

Classes

class  Exception
 
class  Internal_error
 Indicates that a situation has been encountered which should not be possible, regardless of user input. More...
 
class  Not_implemented_error
 Indicates that the user invoked functionality which should be implemented in the future but isn't yet. More...
 
class  Numerical_exception
 Represents a fatal problem in the numerics of the code (such as nonphysical values) More...
 
class  Overflow_error
 Indicates an exception caused by some kind of fixed-size resource has been exhausted. More...
 
class  User_error
 Represents an exception which clearly results from a mistake made by the user. More...
 

Functions

template<typename except_t = Internal_error>
void throw_critical (const char *message)
 

Detailed Description

utilities for custom assertions

Function Documentation

◆ throw_critical()

template<typename except_t = Internal_error>
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