#include <comstl/error/exceptions.hpp>
Types | |
typedef com_exception | class_type |
The type of the current instantiation. | |
typedef stlsoft::project_exception | parent_class_type |
The parent type. | |
Public Member Functions | |
Construction | |
com_exception (HRESULT hr) | |
Constructs an instance from the given result code. | |
com_exception (char const *reason, HRESULT hr) | |
Constructs an instance from the given message string and result code. | |
virtual | ~com_exception () throw () |
Destructor. | |
Accessors | |
virtual char const * | what () const throw () |
Returns a human-readable string describing the exception condition. | |
HRESULT | get_hr () const |
The error code associated with the exception. | |
HRESULT | hr () const |
[DEPRECATED] |
typedef com_exception class_type |
The type of the current instantiation.
Reimplemented from project_exception.
Reimplemented in clone_failure, variant_type_exception, and com_initialisation_exception.
typedef stlsoft:: project_exception parent_class_type |
The parent type.
Reimplemented from project_exception.
Reimplemented in clone_failure, variant_type_exception, and com_initialisation_exception.
com_exception | ( | HRESULT | hr | ) | [inline, explicit] |
Constructs an instance from the given result code.
hr | The result code associated with the exception |
com_exception | ( | char const * | reason, | |
HRESULT | hr | |||
) | [inline] |
Constructs an instance from the given message string and result code.
reason | The message code associated with the exception | |
hr | The result code associated with the exception |
virtual ~com_exception | ( | ) | throw () [inline, virtual] |
Destructor.
virtual char const* what | ( | ) | const throw () [inline, virtual] |
Returns a human-readable string describing the exception condition.
Implements project_exception.
Reimplemented in clone_failure.
HRESULT get_hr | ( | ) | const [inline] |
The error code associated with the exception.
HRESULT hr | ( | ) | const [inline] |