Confdump Agent
1.4.0
|
Thrown on COM errors, contains specific information. More...
#include <errors.hpp>
Public Member Functions | |
ComError (HRESULT hr, QString action) | |
virtual | ~ComError () |
QString | errorMessage () const |
The system-provided error message (not always relevant) | |
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 | |
ComError () | |
Private Attributes | |
_com_error | comError_ |
Thrown on COM errors, contains specific information.
what() will be formatted to contain the provided action, HRESULT code and any deduced system error message.
Most of the time you will want to use throwOnComError() instead.
Definition at line 112 of file Wmi/errors.hpp.
Confdump::System::Wmi::ComError::ComError | ( | HRESULT | hr, |
QString | action | ||
) |
Definition at line 59 of file Wmi/errors.cpp.
References errorMessage(), Confdump::System::Wmi::Win32Error::hresultAsHex(), and Confdump::RuntimeError::setMessage().
Confdump::System::Wmi::ComError::~ComError | ( | ) | [virtual] |
Definition at line 66 of file Wmi/errors.cpp.
Confdump::System::Wmi::ComError::ComError | ( | ) | [private] |
QString Confdump::System::Wmi::ComError::errorMessage | ( | ) | const |
The system-provided error message (not always relevant)
Definition at line 70 of file Wmi/errors.cpp.
References comError_.
Referenced by ComError().
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 ComError(), and Confdump::System::Wmi::WmiError::WmiError().
void Confdump::RuntimeError::setMessage | ( | QString | message | ) | [inherited] |
Definition at line 29 of file RuntimeError.cpp.
References Confdump::RuntimeError::message_.
Referenced by ComError(), Confdump::RuntimeError::RuntimeError(), Confdump::System::Win32::SystemError::SystemError(), and Confdump::System::Wmi::WmiError::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().
_com_error Confdump::System::Wmi::ComError::comError_ [private] |
Definition at line 127 of file Wmi/errors.hpp.
Referenced by errorMessage().
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().