Audacity 3.2.0
InconsistencyException.cpp
Go to the documentation of this file.
1
11#include <wx/filename.h>
12
14{
15}
16
18{
19 // Shorten the path
20 wxString path { file };
21 auto sub = wxString{ wxFILE_SEP_PATH } + "src" + wxFILE_SEP_PATH;
22 auto index = path.Find(sub);
23 if (index != wxNOT_FOUND)
24 path = path.Mid(index + sub.size());
25
26#ifdef __func__
27 return
28XO("Internal error in %s at %s line %d.\nPlease inform the Audacity team at https://forum.audacityteam.org/.")
29 .Format( func, path, line );
30#else
31 return
32XO("Internal error at %s line %d.\nPlease inform the Audacity team at https://forum.audacityteam.org/.")
33 .Format( path, line );
34#endif
35}
XO("Cut/Copy/Paste")
MessageBoxException for violation of preconditions or assertions.
TranslatableString ErrorMessage() const override
Format the error message for this exception.
Holds a msgid for the translation catalog; may also bind format arguments.