Try to be more informative than the default wx exception handler before terminating

git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@1273 a31d4220-a93d-0410-bf67-fe4944624d44
This commit is contained in:
wowzaman12 2015-03-28 13:56:33 +00:00
parent d27a24a522
commit 116e090f80
1 changed files with 10 additions and 0 deletions

View File

@ -73,6 +73,16 @@ public:
wxString log;
// there's no way to retrieve "current" locale, so this is public
wxLocale locale;
//Handle most exceptions
virtual bool OnExceptionInMainLoop()
{
try {throw;}
catch(const std::exception& e){
std::cerr << "AN ERROR HAS OCCURRED: " << e.what() << std::endl;
return false;
}
}
private:
wxPathList config_path;
};