MCPcopy Create free account
hub / github.com/ModOrganizer2/modorganizer / throwOnFail

Method throwOnFail

src/envshortcut.cpp:93–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91 COMPtr<IPersistFile> m_file;
92
93 void throwOnFail(HRESULT r, const QString& s)
94 {
95 if (FAILED(r)) {
96 throw ShellLinkException(QString("%1, %2").arg(s).arg(formatSystemMessage(r)));
97 }
98 }
99
100 COMPtr<IShellLink> createShellLink()
101 {

Callers

nothing calls this directly

Calls 2

ShellLinkExceptionClass · 0.85
QStringClass · 0.85

Tested by

no test coverage detected