-
Notifications
You must be signed in to change notification settings - Fork 2
/
ExceptionHandler.cpp
27 lines (23 loc) · 1.05 KB
/
ExceptionHandler.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
//---------------------------------------------------------------------------
// include
//---------------------------------------------------------------------------
#include "ExceptionHandler.h"
//---------------------------------------------------------------------------
namespace NSApplication {
//---------------------------------------------------------------------------
// Definition of CExceptionHandler
//---------------------------------------------------------------------------
CExceptionHandler::CExceptionHandler() {
MessageBox.setIcon(QMessageBox::Critical);
MessageBox.setText(kUnknownExceptionMsg);
MessageBox.exec();
}
//---------------------------------------------------------------------------
CExceptionHandler::CExceptionHandler(std::exception& exception) {
MessageBox.setIcon(QMessageBox::Critical);
MessageBox.setText(exception.what());
MessageBox.exec();
}
//---------------------------------------------------------------------------
} // NSApplication
//---------------------------------------------------------------------------