3 #ifndef GCP_UTIL_ERRHANDLER_H
4 #define GCP_UTIL_ERRHANDLER_H
17 #define ERR_HANDLER_FN(fn) \
18 void (fn)(std::ostringstream& os, const char* fileName, const int lineNumber, const char* functionName, bool isErr, bool isSimple, bool isSysErr)
36 static ERR_HANDLER_FN(defaultThrowFn);
37 static ERR_HANDLER_FN(defaultReportFn);
38 static ERR_HANDLER_FN(defaultLogFn);
46 static ERR_HANDLER_FN(throwError);
47 static ERR_HANDLER_FN(report);
48 static ERR_HANDLER_FN(log);
52 static ERR_HANDLER_FN(*throwFn_);
53 static ERR_HANDLER_FN(*reportFn_);
54 static ERR_HANDLER_FN(*logFn_);
63 #endif // End #ifndef GCP_UTIL_ERRHANDLER_H
static void installReportFn(ERR_HANDLER_FN(*reportFn))
Definition: ErrHandler.cc:46
static void installThrowFn(ERR_HANDLER_FN(*throwFn))
Definition: ErrHandler.cc:38
static void installLogFn(ERR_HANDLER_FN(*logFn))
Definition: ErrHandler.cc:54
ErrHandler()
Definition: ErrHandler.cc:11
Definition: ErrHandler.h:23
virtual ~ErrHandler()
Definition: ErrHandler.cc:33