72 #define ERROR_LOCATION ErrorLocation( __FILE__, __LINE__, __func__ )
104 std::string
file(
void );
112 std::string
func(
void );
123 void *_traceaddress[25];
158 Error(
const std::string &str );
264 uint32_t i, uint32_t n,
265 uint32_t j, uint32_t m );
281 #if defined(_GNU_SOURCE) && defined(HAVE_SIGINFO_T)
287 #ifdef HAVE_SIGINFO_T
ErrorErrno(const ErrorLocation &loc)
Constructor for errno based error with standard error message from errno database.
Error()
Default constructor for error class.
ErrorLocation()
Default constructor for error location.
Basic error class.
Definition: error.hpp:142
void print_trace(std::ostream &os)
Print the backtrace to os.
void print_error_message(std::ostream &os, bool traceprint=true)
Print a standard error message to os.
Error class for dimension mismatch errors.
Definition: error.hpp:236
ErrorDim(const ErrorLocation &loc)
Constructor for dimension mismatch error with standard error message.
std::string to_string(const T &t)
Function for converting a type to string.
Definition: error.hpp:62
std::string _error_str
Definition: error.hpp:148
ErrorNoMem(const ErrorLocation &loc)
Constructor for memory allocation error with standard error message.
static void signal_handler_SIGSEGV(int signum, siginfo_t *info, void *ptr)
Signal handler function for SIGSEGV.
Signal handler.
Definition: error.hpp:277
Error class for C-style errno errors.
Definition: error.hpp:203
std::string get_error_message(void)
Return error message.
int line(void)
Return line number of location.
Error class to use if requested feature is unimplemented.
Definition: error.hpp:218
ExceptionTracer()
Default constructor for exception tracer. Saves the backtrace of the program at this location for pri...
Error class for memory allocation errors.
Definition: error.hpp:185
ErrorRange(const ErrorLocation &loc, uint32_t i, uint32_t n, uint32_t j, uint32_t m)
Constructor for error message for two dimensional indexing error.
static void signal_handler_SIGTERM(int signum, siginfo_t *info, void *ptr)
Signal handler function for SIGTERM.
ErrorUnimplemented(const ErrorLocation &loc)
Constructor for unimplemented feature error with standard error message.
Error class for index range checking errors.
Definition: error.hpp:254
Exception backtrace.
Definition: error.hpp:121
Error location class.
Definition: error.hpp:82
std::string func(void)
Return function name of location.
std::string file(void)
Return file name of location.