mirror of
https://github.com/debauchee/barrier.git
synced 2025-07-27 13:28:38 +02:00
Task #3953 - Inherit XArch and XBase from std::exception
This commit is contained in:
parent
78f30db6e9
commit
abe108195d
9 changed files with 21 additions and 30 deletions
|
@ -313,17 +313,11 @@ CApp::run(int argc, char** argv)
|
|||
// using the exit(int) function!
|
||||
result = e.getCode();
|
||||
}
|
||||
catch (XBase& e) {
|
||||
LOG((CLOG_CRIT "Exception: %s\n", e.what()));
|
||||
}
|
||||
catch (XArch& e) {
|
||||
LOG((CLOG_CRIT "Init failed: %s" BYE, e.what().c_str(), argsBase().m_pname));
|
||||
}
|
||||
catch (std::exception& e) {
|
||||
LOG((CLOG_CRIT "Exception: %s\n", e.what()));
|
||||
LOG((CLOG_CRIT "An error occurred: %s\n", e.what()));
|
||||
}
|
||||
catch (...) {
|
||||
LOG((CLOG_CRIT "An unexpected exception occurred.\n"));
|
||||
LOG((CLOG_CRIT "An unknown error occurred.\n"));
|
||||
}
|
||||
|
||||
appUtil().beforeAppExit();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue