1 #ifndef _GLUCAT_ERRORS_IMP_H 2 #define _GLUCAT_ERRORS_IMP_H 43 template<
class Class_T >
49 template<
class Class_T >
51 error(
const std::string& context,
const std::string& msg)
55 template<
class Class_T >
59 {
return "Error in glucat::"; }
61 template<
class Class_T >
67 template<
class Class_T >
71 { std::cerr << heading() << classname() << std::endl << what() << std::endl; }
73 #endif // _GLUCAT_ERRORS_IMP_H
auto classname() const noexcept -> const std::string override
Abstract exception class.
void print_error_msg() const override
auto heading() const noexcept -> const std::string override
error(const std::string &msg)
Specific exception class.