X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fdebug%2Ferrorreporter.h;fp=source%2Fdebug%2Ferrorreporter.h;h=b0385ff15d1c31ce2a0ea769d569b30b9fae37a5;hp=0000000000000000000000000000000000000000;hb=f042fd992170ee8a50a7f596f1c9cdd9600b8583;hpb=9a327fbe5dbad5edec04641527e65d5e7ea4c568 diff --git a/source/debug/errorreporter.h b/source/debug/errorreporter.h new file mode 100644 index 0000000..b0385ff --- /dev/null +++ b/source/debug/errorreporter.h @@ -0,0 +1,29 @@ +#ifndef MSP_DEBUG_ERRORREPORTER_H_ +#define MSP_DEBUG_ERRORREPORTER_H_ + +#include + +namespace Msp { +namespace Debug { + +class ErrorReporter +{ +private: + ErrorReporter *prev; + + static ErrorReporter *current; + +protected: + ErrorReporter(); +public: + virtual ~ErrorReporter(); + + static const ErrorReporter *get_current() { return current; } + + virtual bool report_uncaught_exception(const std::exception &) const = 0; +}; + +} // namespace Debug +} // namespace Msp + +#endif