1 #ifndef _GLUCAT_ERRORS_IMP_H
2 #define _GLUCAT_ERRORS_IMP_H
37 template<
class Class_T >
39 error(
const std::string& msg)
40 : glucat_error(Class_T::classname(), msg)
43 template<
class Class_T >
45 error(
const std::string& context,
const std::string& msg)
46 : glucat_error(context, msg)
49 template<
class Class_T >
52 heading()
const throw()
53 {
return "Error in glucat::"; }
55 template<
class Class_T >
58 classname()
const throw()
61 template<
class Class_T >
64 print_error_msg()
const
65 { std::cerr << heading() << classname() << std::endl << what() << std::endl; }
67 #endif // _GLUCAT_ERRORS_IMP_H