mirror of
https://github.com/debauchee/barrier.git
synced 2026-11-26 13:53:14 +08:00
Fixed issue 479
This commit is contained in:
@@ -102,3 +102,28 @@ XUnknownClient::getWhat() const throw()
|
||||
{
|
||||
return format("XUnknownClient", "unknown client %{1}", m_name.c_str());
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
// XExitApp
|
||||
//
|
||||
|
||||
XExitApp::XExitApp(int code) :
|
||||
m_code(code)
|
||||
{
|
||||
// do nothing
|
||||
}
|
||||
|
||||
int
|
||||
XExitApp::getCode() const throw()
|
||||
{
|
||||
return m_code;
|
||||
}
|
||||
|
||||
CString
|
||||
XExitApp::getWhat() const throw()
|
||||
{
|
||||
return format(
|
||||
"XExitApp", "exiting with code %{1}",
|
||||
CStringUtil::print("%d", m_code).c_str());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user