Elements 6.3.3
A C++ base framework for the Euclid Software.
Loading...
Searching...
No Matches
Exception.cpp
Go to the documentation of this file.
1
22
24
25namespace Elements {
26
28
29Exception::Exception(const char* message, ExitCode e) : m_error_msg(message), m_exit_code{e} {}
30
32
33Exception::~Exception() noexcept = default;
34
35const char* Exception::what() const noexcept {
36 return m_error_msg.c_str();
37}
38
39ExitCode Exception::exitCode() const noexcept {
40 return m_exit_code;
41}
42
43} // namespace Elements
defines the base Elements exception class
std::string m_error_msg
Definition Exception.h:119
ExitCode exitCode() const noexcept
Definition Exception.cpp:39
virtual ~Exception() noexcept
const ExitCode m_exit_code
Definition Exception.h:120
Exception(ExitCode e=ExitCode::NOT_OK)
Definition Exception.cpp:27
const char * what() const noexcept override
Definition Exception.cpp:35
ExitCode
Strongly typed exit numbers.
Definition Exit.h:97