5#ifndef EXCEPTION_HPP_INCLUDE
6#define EXCEPTION_HPP_INCLUDE
81 Exception(
const std::string &what,
int err,
const char *file,
int line);
Exception()
Empty constructor.
Definition Exception.cpp:91
Exception & operator=(const Exception &other)
Definition Exception.cpp:104
int err_value(void) const
Returns the integer error code associated with the exception.
Definition Exception.cpp:123
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