Confdump Agent
1.4.0
|
Thrown on WMI errors, contains specific information. More...
#include <errors.hpp>
Public Member Functions | |
WmiError (QString statusDump, HRESULT hr, QString action) | |
virtual | ~WmiError () |
HRESULT | hresult () const |
The raw HRESULT value. | |
QString | hresultAsHex () const |
hresult() as a 0x... string | |
virtual const char * | what () const throw () |
void | setMessage (QString message) |
Public Attributes | |
HRESULT | hresult_ |
Private Member Functions | |
WmiError () |
Thrown on WMI errors, contains specific information.
what() will be formatted to contain the provided action, HRESULT code and extended status on the error (an actual error message seems impossible to get).
Most of the time you will want to use throwOnWmiError() instead.
Definition at line 138 of file Wmi/errors.hpp.
Confdump::System::Wmi::WmiError::WmiError | ( | QString | statusDump, |
HRESULT | hr, | ||
QString | action | ||
) |
Definition at line 75 of file Wmi/errors.cpp.
References Confdump::System::Wmi::Win32Error::hresultAsHex(), Confdump::System::Wmi::WmiDiagnostics::knownError(), Confdump::RuntimeError::setMessage(), and Confdump::System::Wmi::WmiDiagnostics::toString().
Confdump::System::Wmi::WmiError::~WmiError | ( | ) | [virtual] |
Definition at line 86 of file Wmi/errors.cpp.
Confdump::System::Wmi::WmiError::WmiError | ( | ) | [private] |
HRESULT Confdump::System::Wmi::Win32Error::hresult | ( | ) | const [inherited] |
The raw HRESULT value.
Definition at line 42 of file Wmi/errors.cpp.
References Confdump::System::Wmi::Win32Error::hresult_.
Referenced by Confdump::System::Wmi::WbemServices::execQuery().
QString Confdump::System::Wmi::Win32Error::hresultAsHex | ( | ) | const [inherited] |
hresult() as a 0x... string
Definition at line 47 of file Wmi/errors.cpp.
References Confdump::System::Wmi::Win32Error::hresult_.
Referenced by Confdump::System::Wmi::ComError::ComError(), and WmiError().
void Confdump::RuntimeError::setMessage | ( | QString | message | ) | [inherited] |
Definition at line 29 of file RuntimeError.cpp.
References Confdump::RuntimeError::message_.
Referenced by Confdump::System::Wmi::ComError::ComError(), Confdump::RuntimeError::RuntimeError(), Confdump::System::Win32::SystemError::SystemError(), and WmiError().
const char * Confdump::RuntimeError::what | ( | ) | const throw () [virtual, inherited] |
Definition at line 38 of file RuntimeError.cpp.
References Confdump::RuntimeError::message_.
Referenced by main().
HRESULT Confdump::System::Wmi::Win32Error::hresult_ [inherited] |
Definition at line 102 of file Wmi/errors.hpp.
Referenced by Confdump::System::Wmi::Win32Error::hresult(), and Confdump::System::Wmi::Win32Error::hresultAsHex().