siplasplas
A library for C++ reflection and introspection
cpp::Exception< Ex, Base > Class Template Reference

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)
 

Detailed Description

template<typename Ex, typename Base = std::exception>
class cpp::Exception< Ex, Base >

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.

Template Parameters
ExDeclared exception type. It's the derived class parameter of the CRTP.
BaseException base class. std::exception by default.

The documentation for this class was generated from the following file: