bad_interface_cast Class Reference
[Error Library]

#include <comstl/error/bad_interface_cast.hpp>

List of all members.


Detailed Description

Exception class thrown by the interface cast classes and functions when interface queries fail.

See also:
comstl::interface_cast

comstl::interface_cast_addref

comstl::interface_cast_noaddref

comstl::interface_cast_test

Examples:

by_project/comstl/comstl.cpp.


Member Types

typedef bad_interface_cast class_type
typedef comstl_ns_qual_std (bad_cast) parent_class_type

Public Member Functions

Construction
 bad_interface_cast (REFIID riid, HRESULT hr) throw ()
 Constructs an instance of the exception from the given interface identifier and result code.
char const * what () const throw ()
 Returns a human-readable description of the exceptional condition.
REFIID iid () const throw ()
 The interface identifier that is associated with the exception.
HRESULT hresult () const throw ()
 [DEPRECATED] Equivalent to hr()
HRESULT hr () const throw ()
 The result code that is associated with the exception.

Constructor & Destructor Documentation

bad_interface_cast ( REFIID  riid,
HRESULT  hr 
) throw () [inline]

Constructs an instance of the exception from the given interface identifier and result code.


Member Function Documentation

char const* what (  )  const throw () [inline]

Returns a human-readable description of the exceptional condition.

Examples:
by_project/comstl/comstl.cpp.

REFIID iid (  )  const throw () [inline]

The interface identifier that is associated with the exception.

HRESULT hresult (  )  const throw () [inline]

[DEPRECATED] Equivalent to hr()

Deprecated:

HRESULT hr (  )  const throw () [inline]

The result code that is associated with the exception.


The documentation for this class was generated from the following file:

Generated on Thu Jun 10 08:58:25 2010 for STLSoft by  doxygen 1.5.6