1 #ifndef _GLUCAT_ERRORS_IMP_H 2 #define _GLUCAT_ERRORS_IMP_H 37 template<
class Class_T >
43 template<
class Class_T >
45 error(
const std::string& context,
const std::string& msg)
49 template<
class Class_T >
53 {
return "Error in glucat::"; }
55 template<
class Class_T >
61 template<
class Class_T >
65 { std::cerr << heading() << classname() << std::endl << what() << std::endl; }
67 #endif // _GLUCAT_ERRORS_IMP_H virtual const std::string classname() const
virtual void print_error_msg() const
virtual const std::string heading() const
Abstract exception class.
error(const std::string &msg)
Specific exception class.