2
* This file is part of the Code::Blocks IDE and licensed under the GNU Lesser General Public License, version 3
3
* http://www.gnu.org/licenses/lgpl-3.0.html
6
* $Id: cbexception.cpp 4909 2008-02-27 13:15:26Z mortenmacfly $
7
* $HeadURL: svn://svn.berlios.de/codeblocks/tags/8.02/src/sdk/cbexception.cpp $
10
#include "sdk_precomp.h"
13
#include "cbexception.h"
15
#include "configmanager.h"
16
#include <wx/log.h> // for wxSafeShowMessage()
21
cbException::cbException(const wxString& msg, const wxString& file, int line)
27
cbException::~cbException()
31
void cbException::ShowErrorMessage(bool safe)
35
gccvers.Printf(_T("gcc %d.%d.%d"), __GNUC__, __GNUC_MINOR__, __GNUC_PATCHLEVEL__);
38
wxString title = _("Exception");
40
err.Printf(_("An exception has been raised!\n\n"
41
"The application encountered an error at %s, on line %d.\n"
42
"The error message is:\n\n%s\n\n"
43
"Code::Blocks Version revision %d (%s, "
45
File.c_str(), Line, Message.c_str(),
46
ConfigManager::GetRevisionNumber(), gccvers.c_str(),
47
wxT(__DATE__), wxT(__TIME__));
49
wxSafeShowMessage(title, err);
51
cbMessageBox(err, title, wxICON_ERROR);