Exception::RuntimeError::RuntimeError( const std::exception& ex, const wxString& prefix ) { IsSilent = false; SetDiagMsg( pxsFmt( L"STL Exception%s: %s", (prefix.IsEmpty() ? L"" : pxsFmt(L" (%s)", WX_STR(prefix)).c_str()), WX_STR(fromUTF8( ex.what() )) ) ); }
BaseException& BaseException::SetBothMsgs( const wxChar* msg_diag ) { #if wxMAJOR_VERSION >= 3 m_message_user = msg_diag ? wxString(wxGetTranslation( msg_diag )) : wxString(""); #else m_message_user = msg_diag ? wxGetTranslation( msg_diag ) : wxEmptyString; #endif return SetDiagMsg( msg_diag ); }
Exception::RuntimeError::RuntimeError( const std::exception& ex, const wxString& prefix ) { IsSilent = false; const wxString msg( wxsFormat( L"STL Exception%s: %s", (prefix.IsEmpty() ? prefix.c_str() : wxsFormat(L" (%s)", prefix.c_str()).c_str()), fromUTF8( ex.what() ).c_str() ) ); SetDiagMsg( msg ); }
BaseException& BaseException::SetBothMsgs( const wxChar* msg_diag ) { m_message_user = GetTranslation( msg_diag ); return SetDiagMsg( msg_diag ); }