Code::Blocks
SVN r11506
|
Code::Blocks error handling unit. More...
#include <cbexception.h>
Public Member Functions | |
cbException (const wxString &msg, const wxString &file, int line) | |
virtual | ~cbException () |
void | ShowErrorMessage (bool safe=true) |
Display exception error message. More... | |
Public Attributes | |
wxString | Message |
The exception's error message. More... | |
wxString | File |
The file where the exception was raised. More... | |
int | Line |
The line in the file where the exception was raised. More... | |
Code::Blocks error handling unit.
Two macros are defined to help error handling in Code::Blocks: cbThrow() and cbAssert().
Definition at line 23 of file cbexception.h.
Definition at line 21 of file cbexception.cpp.
|
virtual |
Definition at line 27 of file cbexception.cpp.
void cbException::ShowErrorMessage | ( | bool | safe = true | ) |
Display exception error message.
safe | If true, wxSafeShowMessage will be used to display the error, else a normal message box will be used. |
Definition at line 31 of file cbexception.cpp.
References _(), _T, wxString::c_str(), cbMessageBox(), File, ConfigManager::GetRevisionNumber(), Line, Message, wxString::Printf(), wxICON_ERROR, wxSafeShowMessage(), and wxT.
Referenced by PluginManager::AskPluginsForModuleMenu(), MainFrame::CreateMenubar(), MainFrame::DoAddPlugin(), PluginManager::ExecutePlugin(), Wiz::Launch(), PluginManager::LoadAllPlugins(), PluginManager::LoadPlugin(), CompilerOptionsDlg::OnAddCompilerClick(), CodeBlocksApp::OnInit(), and CodeBlocksApp::OnRun().
wxString cbException::File |
The file where the exception was raised.
Definition at line 37 of file cbexception.h.
Referenced by ShowErrorMessage().
int cbException::Line |
The line in the file where the exception was raised.
Definition at line 38 of file cbexception.h.
Referenced by ShowErrorMessage().
wxString cbException::Message |
The exception's error message.
Definition at line 36 of file cbexception.h.
Referenced by ShowErrorMessage().