diff options
author | Michael Stahl <mstahl@redhat.com> | 2012-01-28 20:52:45 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2012-01-28 20:52:45 +0100 |
commit | 2e626373db2412ac22e8c5c27a60d11cd29e875b (patch) | |
tree | 9e9f67205cd5b72f1031721273e1534a3a1e5b0f /setup_native/source/win32/customactions/reg4msdoc/registryexception.hxx | |
parent | f7ee7bbd5174b084f018c2ec94d8c70c98ee04da (diff) |
replace obsolete "master" branch with README that points at new repoHEADmaster-deletedmaster
Diffstat (limited to 'setup_native/source/win32/customactions/reg4msdoc/registryexception.hxx')
-rw-r--r-- | setup_native/source/win32/customactions/reg4msdoc/registryexception.hxx | 107 |
1 files changed, 0 insertions, 107 deletions
diff --git a/setup_native/source/win32/customactions/reg4msdoc/registryexception.hxx b/setup_native/source/win32/customactions/reg4msdoc/registryexception.hxx deleted file mode 100644 index 96ce60367..000000000 --- a/setup_native/source/win32/customactions/reg4msdoc/registryexception.hxx +++ /dev/null @@ -1,107 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -// RegistryException.h: Schnittstelle für die Klasse RegistryException. -// -////////////////////////////////////////////////////////////////////// - -#ifndef _REGISTRYEXCEPTION_HXX_ -#define _REGISTRYEXCEPTION_HXX_ - -#include <exception> - -//####################################### -// Base class for all Registry exceptions -//####################################### - -class RegistryException : public std::exception -{ -public: - - RegistryException(long ErrorCode); - - virtual ~RegistryException() throw(); - - /** - @descr Returns a string that describes the error if - available, else NULL will be returned. The - returned string is only temporary so the caller - has to copy it if he needs the string further. - */ - virtual const char* what() const throw(); - - /** - @descr Returns the error code. - */ - - long GetErrorCode() const; - -private: - long m_ErrorCode; - void* m_ErrorMsg; -}; - -//####################################### -// Thrown when a Registry key is accessed -// that is closed -//####################################### - -class RegistryIOException : public RegistryException -{ -public: - RegistryIOException(long ErrorCode); -}; - -//####################################### -// Thrown when trying to write to a readonly registry key -//####################################### - -class RegistryNoWriteAccessException : public RegistryException -{ -public: - RegistryNoWriteAccessException(long ErrorCode); -}; - -//####################################### -// Thrown when trying to access an registry key, with improper -// access rights -//####################################### - -class RegistryAccessDeniedException : public RegistryException -{ -public: - RegistryAccessDeniedException(long ErrorCode); -}; - -//####################################### -// A specified registry value could not be read because it is not -// available -//####################################### - -class RegistryValueNotFoundException : public RegistryException -{ -public: - RegistryValueNotFoundException(long ErrorCode); -}; - -//####################################### -// A specified registry key was not found -//####################################### - -class RegistryKeyNotFoundException : public RegistryException -{ -public: - RegistryKeyNotFoundException(long ErrorCode); -}; - -//####################################### -// A specified registry operation is invalid -//####################################### - -class RegistryInvalidOperationException : public RegistryException -{ -public: - RegistryInvalidOperationException(long ErrorCode); -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |