1 #ifndef MSP_DEBUG_ERRORREPORTER_H_
2 #define MSP_DEBUG_ERRORREPORTER_H_
5 #include <msp/core/noncopyable.h>
10 class ErrorReporter: private NonCopyable
15 static ErrorReporter *current;
20 virtual ~ErrorReporter();
22 static const ErrorReporter *get_current() { return current; }
24 virtual bool report_uncaught_exception(const std::exception &) const = 0;