windows_exception Class Reference
[Error Library]

#include <winstl/error/exceptions.hpp>

Inheritance diagram for windows_exception:

os_exception project_exception access_exception clipboard_exception control_panel_exception invalid_calling_convention_exception missing_entry_point_exception registry_exception resource_exception synchronisation_exception toolhelp_exception version_info_exception

List of all members.


Detailed Description

General exception class for Windows operating system failures.

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

Member Typedef Documentation

typedef stlsoft:: os_exception parent_class_type

typedef ws_dword_t error_code_type

typedef size_t size_type

The size type.


Constructor & Destructor Documentation

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.


Member Function Documentation

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

Returns a human-readable string describing the exception condition.

Implements os_exception.

Reimplemented in tss_exception.

Examples:
by_library/windows_clipboard/clipboard_format_sequence/clipboard_format_sequence.cpp, and by_library/windows_clipboard/clipboard_scope/clipboard_scope.cpp.

error_code_type get_error_code (  )  const [inline]

The error code associated with the exception.

error_code_type last_error (  )  const [inline]

[DEPRECATED] The error code associated with the exception

Deprecated:
Use get_error_code() instead.


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

Generated on Thu Jun 10 08:59:21 2010 for STLSoft by  doxygen 1.5.6