Confdump Agent  1.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends
Public Member Functions | Public Attributes | Private Member Functions
Confdump::System::Wmi::WmiError Class Reference

Thrown on WMI errors, contains specific information. More...

#include <errors.hpp>

Inheritance diagram for Confdump::System::Wmi::WmiError:
Confdump::System::Wmi::Win32Error Confdump::RuntimeError

List of all members.

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 ()

Detailed Description

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.


Constructor & Destructor Documentation

Confdump::System::Wmi::WmiError::WmiError ( QString  statusDump,
HRESULT  hr,
QString  action 
)
  • statusDump is usually the textual representation of an __ExtendedStatus WMI object instance.
  • action should be worded to fit "Failed to <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().

Definition at line 86 of file Wmi/errors.cpp.


Member Function Documentation

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]
const char * Confdump::RuntimeError::what ( ) const throw () [virtual, inherited]

Definition at line 38 of file RuntimeError.cpp.

References Confdump::RuntimeError::message_.

Referenced by main().


Member Data Documentation


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends