summaryrefslogtreecommitdiff
path: root/setup_native/source/win32/customactions/reg4msdoc/registryexception.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'setup_native/source/win32/customactions/reg4msdoc/registryexception.cxx')
-rw-r--r--setup_native/source/win32/customactions/reg4msdoc/registryexception.cxx88
1 files changed, 0 insertions, 88 deletions
diff --git a/setup_native/source/win32/customactions/reg4msdoc/registryexception.cxx b/setup_native/source/win32/customactions/reg4msdoc/registryexception.cxx
deleted file mode 100644
index d4fc34d0d..000000000
--- a/setup_native/source/win32/customactions/reg4msdoc/registryexception.cxx
+++ /dev/null
@@ -1,88 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-// RegistryException.cpp: Implementierung der Klasse RegistryException.
-//
-//////////////////////////////////////////////////////////////////////
-
-#include "registryexception.hxx"
-
-#ifdef _MSC_VER
-#pragma warning(push, 1) /* disable warnings within system headers */
-#endif
-#include <windows.h>
-#ifdef _MSC_VER
-#pragma warning(pop)
-#endif
-
-//////////////////////////////////////////////////////////////////////
-// Konstruktion/Destruktion
-//////////////////////////////////////////////////////////////////////
-
-RegistryException::RegistryException(long ErrorCode) :
- m_ErrorCode(ErrorCode),
- m_ErrorMsg(0)
-{
-}
-
-RegistryException::~RegistryException() throw()
-{
- if (m_ErrorMsg)
- LocalFree(m_ErrorMsg);
-}
-
-const char* RegistryException::what() const throw()
-{
- FormatMessage(
- FORMAT_MESSAGE_ALLOCATE_BUFFER |
- FORMAT_MESSAGE_FROM_SYSTEM |
- FORMAT_MESSAGE_IGNORE_INSERTS,
- NULL,
- m_ErrorCode,
- MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), // Default language
- (LPTSTR) &m_ErrorMsg,
- 0,
- NULL);
-
- return reinterpret_cast<char*>(m_ErrorMsg);
-}
-
-long RegistryException::GetErrorCode() const
-{
- return m_ErrorCode;
-}
-
-//#######################################
-// Thrown when a Registry key is accessed
-// that is closed
-//#######################################
-
-RegistryIOException::RegistryIOException(long ErrorCode) :
- RegistryException(ErrorCode)
-{
-};
-
-RegistryNoWriteAccessException::RegistryNoWriteAccessException(long ErrorCode) :
- RegistryException(ErrorCode)
-{
-};
-
-RegistryAccessDeniedException::RegistryAccessDeniedException(long ErrorCode) :
- RegistryException(ErrorCode)
-{
-};
-
-RegistryValueNotFoundException::RegistryValueNotFoundException(long ErrorCode) :
- RegistryException(ErrorCode)
-{
-};
-
-RegistryKeyNotFoundException::RegistryKeyNotFoundException(long ErrorCode) :
- RegistryException(ErrorCode)
-{
-};
-
-RegistryInvalidOperationException::RegistryInvalidOperationException(long ErrorCode) :
- RegistryException(ErrorCode)
-{
-};
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */