1 #ifndef MSP_DEBUG_ERRORREPORTER_H_
2 #define MSP_DEBUG_ERRORREPORTER_H_
5 #include <msp/core/noncopyable.h>
10 class ErrorReporter: private NonCopyable
13 ErrorReporter *_prev = nullptr;
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;