#include <winstl/error/exceptions.hpp>
Member Types | |
typedef stlsoft::exception_string | string_type |
typedef stlsoft::os_exception | parent_class_type |
The parent class type. | |
typedef ws_dword_t | error_code_type |
The error code type. | |
typedef windows_exception | class_type |
The class type. | |
typedef size_t | size_type |
The size type. | |
Construction | |
windows_exception (error_code_type err) | |
Constructs an instance from the given error code. | |
windows_exception (class_type const &rhs) | |
Copy constructor. | |
windows_exception (char const *reason, error_code_type err) | |
Constructs an instance from the given message and error code. | |
windows_exception (char const *reason) | |
Constructs an instance from the given message and error code. | |
virtual | ~windows_exception () throw () |
windows_exception (string_type const &reason, error_code_type err) | |
Public Member Functions | |
Accessors | |
virtual char const * | what () const throw () |
Returns a human-readable string describing the exception condition. | |
error_code_type | get_error_code () const |
The error code associated with the exception. | |
error_code_type | last_error () const |
[DEPRECATED] The error code associated with the exception | |
char const * | strerror () const |
typedef stlsoft:: os_exception parent_class_type |
The parent class type.
Reimplemented from os_exception.
Reimplemented in clipboard_scope_exception, clipboard_exception, control_panel_exception, applet_entry_not_found_exception, missing_entry_point_exception, invalid_calling_convention_exception, resource_exception, access_exception, registry_exception, key_not_duplicated_exception, wrong_value_type_exception, access_denied_exception, synchronisation_exception, tss_exception, version_info_exception, and toolhelp_exception.
typedef ws_dword_t error_code_type |
The error code type.
Reimplemented in missing_entry_point_exception, invalid_calling_convention_exception, access_exception, registry_exception, synchronisation_exception, tss_exception, and toolhelp_exception.
typedef windows_exception class_type |
The class type.
Reimplemented from os_exception.
Reimplemented in clipboard_scope_exception, clipboard_exception, control_panel_exception, applet_entry_not_found_exception, missing_entry_point_exception, invalid_calling_convention_exception, resource_exception, access_exception, registry_exception, key_not_duplicated_exception, wrong_value_type_exception, access_denied_exception, synchronisation_exception, tss_exception, version_info_exception, and toolhelp_exception.
typedef size_t size_type |
The size type.
windows_exception | ( | error_code_type | err | ) | [inline, explicit] |
Constructs an instance from the given error code.
windows_exception | ( | class_type const & | rhs | ) | [inline] |
Copy constructor.
windows_exception | ( | char const * | reason, | |
error_code_type | err | |||
) | [inline] |
Constructs an instance from the given message and error code.
windows_exception | ( | char const * | reason | ) | [inline] |
Constructs an instance from the given message and error code.
virtual char const* what | ( | ) | const throw () [inline, virtual] |
Returns a human-readable string describing the exception condition.
Implements os_exception.
Reimplemented in tss_exception.
error_code_type get_error_code | ( | ) | const [inline] |
The error code associated with the exception.
error_code_type last_error | ( | ) | const [inline] |