5 #ifndef EXCEPTION_HPP_INCLUDE
6 #define EXCEPTION_HPP_INCLUDE
81 Exception(
const std::string &what,
int err,
const char *file,
int line);
94 int err_value(
void)
const;
Class for all GEOPM-specific exceptions.
Definition: Exception.hpp:48
virtual ~Exception()=default
Exception destructor, virtual.
#define GEOPM_PUBLIC
Definition: geopm_public.h:10
int exception_handler(std::exception_ptr eptr, bool do_print)
Handle a thrown exception and return an error value.
Definition: Exception.cpp:59
std::string error_message(int error_value)
Function that converts an error code into an error message.
Definition: Exception.cpp:54