43 #ifndef INCLUDED_GR_ERROR_HANDLER_H
44 #define INCLUDED_GR_ERROR_HANDLER_H
58 ERR_DEBUG = 0x00000000,
59 ERR_MESSAGE = 0x00010000,
60 ERR_WARNING = 0x00020000,
61 ERR_ERROR = 0x00030000,
62 ERR_FATAL = 0x00040000
71 static bool has_default_handler();
74 void debug(
const char *format, ...);
75 void message(
const char *format, ...);
76 void warning(
const char *format, ...);
77 void error(
const char *format, ...);
78 void fatal(
const char *format, ...);
80 virtual int nwarnings()
const = 0;
81 virtual int nerrors()
const = 0;
82 virtual void reset_counts() = 0;
84 void verror(seriousness s,
const char *format, va_list);
85 void verror_text(seriousness s,
const std::string &text);
88 virtual void count_error(seriousness s) = 0;
89 virtual void handle_text(seriousness s,
const std::string &str) = 0;
90 std::string make_text(seriousness s,
const char *format, va_list);