]> git.tdb.fi Git - libs/gui.git/blob - source/graphics/errordialog.h
Implement graphical reporting for uncaught exceptions
[libs/gui.git] / source / graphics / errordialog.h
1 #ifndef MSP_GRAPHICS_ERRORDIALOG_H_
2 #define MSP_GRAPHICS_ERRORDIALOG_H_
3
4 #include <msp/debug/errorreporter.h>
5
6 namespace Msp {
7 namespace Graphics {
8
9 class Display;
10
11 class ErrorDialog: public Debug::ErrorReporter
12 {
13 private:
14         Display *display;
15
16 public:
17         ErrorDialog(Display *d): display(d) { }
18
19         virtual bool report_uncaught_exception(const std::exception &) const;
20 };
21
22 } // namespace Graphics
23 } // namespace Msp
24
25 #endif