registry_exception Class Reference
[Windows Registry Library]

#include <winstl/registry/error/exceptions.hpp>

Inheritance diagram for registry_exception:

windows_exception os_exception project_exception access_denied_exception key_not_duplicated_exception wrong_value_type_exception

List of all members.


Detailed Description

Root exception thrown by the Windows Registry Library.

Public Types

Member Types
typedef windows_exception parent_class_type
 The parent class type.
typedef registry_exception class_type
 The class type.
typedef
parent_class_type::error_code_type 
error_code_type
 The error code type.
typedef stlsoft::sign_traits
< error_code_type >
::alt_sign_type 
error_code_alt_type

Public Member Functions

Construction
 registry_exception (char const *reason, error_code_type err)
 Constructs an instance from a reason and an error code.
 registry_exception (char const *reason, error_code_alt_type err)
 Constructs an instance from a reason and an error code.

Member Typedef Documentation

The parent class type.

Reimplemented from windows_exception.

Reimplemented in key_not_duplicated_exception, wrong_value_type_exception, and access_denied_exception.

The class type.

Reimplemented from windows_exception.

Reimplemented in key_not_duplicated_exception, wrong_value_type_exception, and access_denied_exception.

The error code type.

Reimplemented from windows_exception.


Constructor & Destructor Documentation

registry_exception ( char const *  reason,
error_code_type  err 
) [inline]

Constructs an instance from a reason and an error code.

registry_exception ( char const *  reason,
error_code_alt_type  err 
) [inline]

Constructs an instance from a reason and an error code.

Note:
Since the Windows Registry API error code type is LONG this provides a suitable overload that does not incur compiler warnings. The casting to an unsigned type within the body is entirely benign.


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

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