siplasplas
A library for C++ reflection and introspection
|
Declares a siplasplas exception type. More...
#include <siplasplas/utility/exception.hpp>
Inherits Base.
Public Member Functions | |
template<std::size_t N> | |
Exception (const char(&message)[N]) | |
Exception (const std::string &message) | |
Declares a siplasplas exception type.
This CRTP provides a convenient way to declare exception types that follow siplasplas conventions. Siplasplas exceptions are automatically logged to the error logger (See cpp::logException()) on construction.
Ex | Declared exception type. It's the derived class parameter of the CRTP. |
Base | Exception base class. std::exception by default. |