1 #ifndef MSP_DEBUG_ERRORREPORTER_H_
2 #define MSP_DEBUG_ERRORREPORTER_H_
5 #include <msp/core/mspcore_api.h>
6 #include <msp/core/noncopyable.h>
11 class MSPCORE_API ErrorReporter: private NonCopyable
14 ErrorReporter *_prev = nullptr;
16 static ErrorReporter *_current;
21 virtual ~ErrorReporter();
23 static const ErrorReporter *get_current();
25 virtual bool report_uncaught_exception(const std::exception &) const = 0;