[mapguide-commits] r9746 - in sandbox/jng/flatten_exceptions/Common: MapGuideCommon MapGuideCommon/MapLayer MapGuideCommon/Services MapGuideCommon/System MapGuideCommon/Util PlatformBase/Services

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Wed Oct 21 04:21:38 PDT 2020


Author: jng
Date: 2020-10-21 04:21:38 -0700 (Wed, 21 Oct 2020)
New Revision: 9746

Removed:
   sandbox/jng/flatten_exceptions/Common/MapGuideCommon/Exception/
Modified:
   sandbox/jng/flatten_exceptions/Common/MapGuideCommon/MapGuideCommon.h
   sandbox/jng/flatten_exceptions/Common/MapGuideCommon/MapGuideCommon.vcxproj
   sandbox/jng/flatten_exceptions/Common/MapGuideCommon/MapGuideCommon.vcxproj.filters
   sandbox/jng/flatten_exceptions/Common/MapGuideCommon/MapGuideCommonBuild.cpp
   sandbox/jng/flatten_exceptions/Common/MapGuideCommon/MapLayer/Layer.cpp
   sandbox/jng/flatten_exceptions/Common/MapGuideCommon/MapLayer/Map.cpp
   sandbox/jng/flatten_exceptions/Common/MapGuideCommon/MapLayer/Selection.cpp
   sandbox/jng/flatten_exceptions/Common/MapGuideCommon/Services/Command.cpp
   sandbox/jng/flatten_exceptions/Common/MapGuideCommon/Services/PrintLayout.cpp
   sandbox/jng/flatten_exceptions/Common/MapGuideCommon/Services/ProxyDataReader.cpp
   sandbox/jng/flatten_exceptions/Common/MapGuideCommon/Services/ProxyFeatureReader.cpp
   sandbox/jng/flatten_exceptions/Common/MapGuideCommon/Services/ProxyGwsFeatureReader.cpp
   sandbox/jng/flatten_exceptions/Common/MapGuideCommon/Services/ProxySqlDataReader.cpp
   sandbox/jng/flatten_exceptions/Common/MapGuideCommon/Services/ServerConnection.cpp
   sandbox/jng/flatten_exceptions/Common/MapGuideCommon/Services/ServerConnectionStack.cpp
   sandbox/jng/flatten_exceptions/Common/MapGuideCommon/Services/ServerInformation.cpp
   sandbox/jng/flatten_exceptions/Common/MapGuideCommon/Services/Site.h
   sandbox/jng/flatten_exceptions/Common/MapGuideCommon/Services/SiteConnection.cpp
   sandbox/jng/flatten_exceptions/Common/MapGuideCommon/Services/SiteManager.cpp
   sandbox/jng/flatten_exceptions/Common/MapGuideCommon/System/CryptographyManager.h
   sandbox/jng/flatten_exceptions/Common/MapGuideCommon/System/MapGuideCommonClassId.h
   sandbox/jng/flatten_exceptions/Common/MapGuideCommon/System/MapGuideCommonFactory.cpp
   sandbox/jng/flatten_exceptions/Common/MapGuideCommon/System/UserInformation.cpp
   sandbox/jng/flatten_exceptions/Common/MapGuideCommon/Util/IpUtil.cpp
   sandbox/jng/flatten_exceptions/Common/MapGuideCommon/Util/TimerUtil.cpp
   sandbox/jng/flatten_exceptions/Common/PlatformBase/Services/FeatureService.h
Log:
Remove all exceptions in MapGuideCommon and modify all throws to throw MgException, passing an exception code instead.

Modified: sandbox/jng/flatten_exceptions/Common/MapGuideCommon/MapGuideCommon.h
===================================================================
--- sandbox/jng/flatten_exceptions/Common/MapGuideCommon/MapGuideCommon.h	2020-10-21 11:05:48 UTC (rev 9745)
+++ sandbox/jng/flatten_exceptions/Common/MapGuideCommon/MapGuideCommon.h	2020-10-21 11:21:38 UTC (rev 9746)
@@ -65,65 +65,6 @@
 #include "MapLayer/Map.h"
 #include "MapLayer/Selection.h"
 
-#include "Exception/AllProviderConnectionsUsedException.h"
-#include "Exception/AuthenticationFailedException.h"
-#include "Exception/ConnectionFailedException.h"
-#include "Exception/ConnectionNotOpenException.h"
-#include "Exception/DbException.h"
-#include "Exception/DbXmlException.h"
-#include "Exception/DuplicateGroupException.h"
-#include "Exception/DuplicateNameException.h"
-#include "Exception/DuplicateParameterException.h"
-#include "Exception/DuplicateRepositoryException.h"
-#include "Exception/DuplicateRoleException.h"
-#include "Exception/DuplicateServerException.h"
-#include "Exception/DuplicateSessionException.h"
-#include "Exception/DuplicateUserException.h"
-#include "Exception/DwfException.h"
-#include "Exception/DwfSectionNotFoundException.h"
-#include "Exception/DwfSectionResourceNotFoundException.h"
-#include "Exception/EndOfStreamException.h"
-#include "Exception/EvaluationExpiredException.h"
-#include "Exception/GroupNotFoundException.h"
-#include "Exception/InvalidDwfPackageException.h"
-#include "Exception/InvalidDwfSectionException.h"
-#include "Exception/InvalidFeatureSourceException.h"
-#include "Exception/InvalidIpAddressException.h"
-#include "Exception/InvalidLicenseException.h"
-#include "Exception/InvalidLogEntryException.h"
-#include "Exception/InvalidOperationVersionException.h"
-#include "Exception/InvalidPasswordException.h"
-#include "Exception/InvalidPrintLayoutFontSizeUnitsException.h"
-#include "Exception/InvalidPrintLayoutPositionUnitsException.h"
-#include "Exception/InvalidPrintLayoutSizeUnitsException.h"
-#include "Exception/InvalidSerialNumberException.h"
-#include "Exception/InvalidServerNameException.h"
-#include "Exception/LicenseException.h"
-#include "Exception/LicenseExpiredException.h"
-#include "Exception/LogOpenFailedException.h"
-#include "Exception/OperationProcessingException.h"
-#include "Exception/ParameterNotFoundException.h"
-#include "Exception/PathTooLongException.h"
-#include "Exception/PermissionDeniedException.h"
-#include "Exception/PortNotAvailableException.h"
-#include "Exception/PrintToScaleModeNotSelectedException.h"
-#include "Exception/RasterTransformationNotSupportedException.h"
-#include "Exception/RepositoryCreationFailedException.h"
-#include "Exception/RepositoryNotFoundException.h"
-#include "Exception/RepositoryNotOpenException.h"
-#include "Exception/RepositoryOpenFailedException.h"
-#include "Exception/RoleNotFoundException.h"
-#include "Exception/ServerNotFoundException.h"
-#include "Exception/ServerNotOnlineException.h"
-#include "Exception/SessionExpiredException.h"
-#include "Exception/SessionNotFoundException.h"
-#include "Exception/StylizeLayerFailedException.h"
-#include "Exception/UnauthorizedAccessException.h"
-#include "Exception/UnknownTileProviderException.h"
-#include "Exception/UnsupportedTileProviderException.h"
-#include "Exception/UnsupportedProviderThreadModelException.h"
-#include "Exception/UriFormatException.h"
-
 #ifndef SWIG_PUBLIC_API
 #include "Net/IOperationHandler.h"
 #include "Services/Command.h"

Modified: sandbox/jng/flatten_exceptions/Common/MapGuideCommon/MapGuideCommon.vcxproj
===================================================================
--- sandbox/jng/flatten_exceptions/Common/MapGuideCommon/MapGuideCommon.vcxproj	2020-10-21 11:05:48 UTC (rev 9745)
+++ sandbox/jng/flatten_exceptions/Common/MapGuideCommon/MapGuideCommon.vcxproj	2020-10-21 11:21:38 UTC (rev 9746)
@@ -198,18 +198,6 @@
     </Link>
   </ItemDefinitionGroup>
   <ItemGroup>
-    <ClCompile Include="Exception\UnknownTileProviderException.cpp">
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
-    </ClCompile>
-    <ClCompile Include="Exception\UnsupportedTileProviderException.cpp">
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
-    </ClCompile>
     <ClCompile Include="MapLayer\Layer.cpp">
       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
@@ -246,342 +234,6 @@
       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
     </ClCompile>
-    <ClCompile Include="Exception\AllProviderConnectionsUsedException.cpp">
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
-    </ClCompile>
-    <ClCompile Include="Exception\AuthenticationFailedException.cpp">
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
-    </ClCompile>
-    <ClCompile Include="Exception\ConnectionFailedException.cpp">
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
-    </ClCompile>
-    <ClCompile Include="Exception\ConnectionNotOpenException.cpp">
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
-    </ClCompile>
-    <ClCompile Include="Exception\DbException.cpp">
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
-    </ClCompile>
-    <ClCompile Include="Exception\DbXmlException.cpp">
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
-    </ClCompile>
-    <ClCompile Include="Exception\DuplicateGroupException.cpp">
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
-    </ClCompile>
-    <ClCompile Include="Exception\DuplicateNameException.cpp">
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
-    </ClCompile>
-    <ClCompile Include="Exception\DuplicateParameterException.cpp">
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
-    </ClCompile>
-    <ClCompile Include="Exception\DuplicateRepositoryException.cpp">
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
-    </ClCompile>
-    <ClCompile Include="Exception\DuplicateRoleException.cpp">
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
-    </ClCompile>
-    <ClCompile Include="Exception\DuplicateServerException.cpp">
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
-    </ClCompile>
-    <ClCompile Include="Exception\DuplicateSessionException.cpp">
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
-    </ClCompile>
-    <ClCompile Include="Exception\DuplicateUserException.cpp">
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
-    </ClCompile>
-    <ClCompile Include="Exception\DwfException.cpp">
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
-    </ClCompile>
-    <ClCompile Include="Exception\DwfSectionNotFoundException.cpp">
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
-    </ClCompile>
-    <ClCompile Include="Exception\DwfSectionResourceNotFoundException.cpp">
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
-    </ClCompile>
-    <ClCompile Include="Exception\EndOfStreamException.cpp">
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
-    </ClCompile>
-    <ClCompile Include="Exception\EvaluationExpiredException.cpp">
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
-    </ClCompile>
-    <ClCompile Include="Exception\GroupNotFoundException.cpp">
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
-    </ClCompile>
-    <ClCompile Include="Exception\InvalidDwfPackageException.cpp">
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
-    </ClCompile>
-    <ClCompile Include="Exception\InvalidDwfSectionException.cpp">
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
-    </ClCompile>
-    <ClCompile Include="Exception\InvalidFeatureSourceException.cpp">
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
-    </ClCompile>
-    <ClCompile Include="Exception\InvalidIpAddressException.cpp">
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
-    </ClCompile>
-    <ClCompile Include="Exception\InvalidLicenseException.cpp">
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
-    </ClCompile>
-    <ClCompile Include="Exception\InvalidLogEntryException.cpp">
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
-    </ClCompile>
-    <ClCompile Include="Exception\InvalidOperationVersionException.cpp">
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
-    </ClCompile>
-    <ClCompile Include="Exception\InvalidPasswordException.cpp">
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
-    </ClCompile>
-    <ClCompile Include="Exception\InvalidPrintLayoutFontSizeUnitsException.cpp">
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
-    </ClCompile>
-    <ClCompile Include="Exception\InvalidPrintLayoutPositionUnitsException.cpp">
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
-    </ClCompile>
-    <ClCompile Include="Exception\InvalidPrintLayoutSizeUnitsException.cpp">
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
-    </ClCompile>
-    <ClCompile Include="Exception\InvalidSerialNumberException.cpp">
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
-    </ClCompile>
-    <ClCompile Include="Exception\InvalidServerNameException.cpp">
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
-    </ClCompile>
-    <ClCompile Include="Exception\LicenseException.cpp">
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
-    </ClCompile>
-    <ClCompile Include="Exception\LicenseExpiredException.cpp">
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
-    </ClCompile>
-    <ClCompile Include="Exception\LogOpenFailedException.cpp">
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
-    </ClCompile>
-    <ClCompile Include="Exception\OperationProcessingException.cpp">
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
-    </ClCompile>
-    <ClCompile Include="Exception\ParameterNotFoundException.cpp">
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
-    </ClCompile>
-    <ClCompile Include="Exception\PathTooLongException.cpp">
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
-    </ClCompile>
-    <ClCompile Include="Exception\PermissionDeniedException.cpp">
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
-    </ClCompile>
-    <ClCompile Include="Exception\PortNotAvailableException.cpp">
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
-    </ClCompile>
-    <ClCompile Include="Exception\PrintToScaleModeNotSelectedException.cpp">
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
-    </ClCompile>
-    <ClCompile Include="Exception\RasterTransformationNotSupportedException.cpp">
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
-    </ClCompile>
-    <ClCompile Include="Exception\RepositoryCreationFailedException.cpp">
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
-    </ClCompile>
-    <ClCompile Include="Exception\RepositoryNotFoundException.cpp">
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
-    </ClCompile>
-    <ClCompile Include="Exception\RepositoryNotOpenException.cpp">
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
-    </ClCompile>
-    <ClCompile Include="Exception\RepositoryOpenFailedException.cpp">
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
-    </ClCompile>
-    <ClCompile Include="Exception\RoleNotFoundException.cpp">
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
-    </ClCompile>
-    <ClCompile Include="Exception\ServerNotFoundException.cpp">
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
-    </ClCompile>
-    <ClCompile Include="Exception\ServerNotOnlineException.cpp">
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
-    </ClCompile>
-    <ClCompile Include="Exception\SessionExpiredException.cpp">
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
-    </ClCompile>
-    <ClCompile Include="Exception\SessionNotFoundException.cpp">
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
-    </ClCompile>
-    <ClCompile Include="Exception\StylizeLayerFailedException.cpp">
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
-    </ClCompile>
-    <ClCompile Include="Exception\UnauthorizedAccessException.cpp">
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
-    </ClCompile>
-    <ClCompile Include="Exception\UnsupportedProviderThreadModelException.cpp">
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
-    </ClCompile>
-    <ClCompile Include="Exception\UriFormatException.cpp">
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
-    </ClCompile>
     <ClCompile Include="Net\IOperationHandler.cpp">
       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
@@ -957,8 +609,6 @@
     </ClCompile>
   </ItemGroup>
   <ItemGroup>
-    <ClInclude Include="Exception\UnknownTileProviderException.h" />
-    <ClInclude Include="Exception\UnsupportedTileProviderException.h" />
     <ClInclude Include="MapLayer\Layer.h" />
     <ClInclude Include="MapLayer\Map.h" />
     <ClInclude Include="MapLayer\Selection.h" />
@@ -965,62 +615,6 @@
     <ClInclude Include="Controller\Controller.h" />
     <ClInclude Include="Controller\DwfController.h" />
     <ClInclude Include="Controller\HtmlController.h" />
-    <ClInclude Include="Exception\AllProviderConnectionsUsedException.h" />
-    <ClInclude Include="Exception\AuthenticationFailedException.h" />
-    <ClInclude Include="Exception\ConnectionFailedException.h" />
-    <ClInclude Include="Exception\ConnectionNotOpenException.h" />
-    <ClInclude Include="Exception\DbException.h" />
-    <ClInclude Include="Exception\DbXmlException.h" />
-    <ClInclude Include="Exception\DuplicateGroupException.h" />
-    <ClInclude Include="Exception\DuplicateNameException.h" />
-    <ClInclude Include="Exception\DuplicateParameterException.h" />
-    <ClInclude Include="Exception\DuplicateRepositoryException.h" />
-    <ClInclude Include="Exception\DuplicateRoleException.h" />
-    <ClInclude Include="Exception\DuplicateServerException.h" />
-    <ClInclude Include="Exception\DuplicateSessionException.h" />
-    <ClInclude Include="Exception\DuplicateUserException.h" />
-    <ClInclude Include="Exception\DwfException.h" />
-    <ClInclude Include="Exception\DwfSectionNotFoundException.h" />
-    <ClInclude Include="Exception\DwfSectionResourceNotFoundException.h" />
-    <ClInclude Include="Exception\EndOfStreamException.h" />
-    <ClInclude Include="Exception\EvaluationExpiredException.h" />
-    <ClInclude Include="Exception\GroupNotFoundException.h" />
-    <ClInclude Include="Exception\InvalidDwfPackageException.h" />
-    <ClInclude Include="Exception\InvalidDwfSectionException.h" />
-    <ClInclude Include="Exception\InvalidFeatureSourceException.h" />
-    <ClInclude Include="Exception\InvalidIpAddressException.h" />
-    <ClInclude Include="Exception\InvalidLicenseException.h" />
-    <ClInclude Include="Exception\InvalidLogEntryException.h" />
-    <ClInclude Include="Exception\InvalidOperationVersionException.h" />
-    <ClInclude Include="Exception\InvalidPasswordException.h" />
-    <ClInclude Include="Exception\InvalidPrintLayoutFontSizeUnitsException.h" />
-    <ClInclude Include="Exception\InvalidPrintLayoutPositionUnitsException.h" />
-    <ClInclude Include="Exception\InvalidPrintLayoutSizeUnitsException.h" />
-    <ClInclude Include="Exception\InvalidSerialNumberException.h" />
-    <ClInclude Include="Exception\InvalidServerNameException.h" />
-    <ClInclude Include="Exception\LicenseException.h" />
-    <ClInclude Include="Exception\LicenseExpiredException.h" />
-    <ClInclude Include="Exception\LogOpenFailedException.h" />
-    <ClInclude Include="Exception\OperationProcessingException.h" />
-    <ClInclude Include="Exception\ParameterNotFoundException.h" />
-    <ClInclude Include="Exception\PathTooLongException.h" />
-    <ClInclude Include="Exception\PermissionDeniedException.h" />
-    <ClInclude Include="Exception\PortNotAvailableException.h" />
-    <ClInclude Include="Exception\PrintToScaleModeNotSelectedException.h" />
-    <ClInclude Include="Exception\RasterTransformationNotSupportedException.h" />
-    <ClInclude Include="Exception\RepositoryCreationFailedException.h" />
-    <ClInclude Include="Exception\RepositoryNotFoundException.h" />
-    <ClInclude Include="Exception\RepositoryNotOpenException.h" />
-    <ClInclude Include="Exception\RepositoryOpenFailedException.h" />
-    <ClInclude Include="Exception\RoleNotFoundException.h" />
-    <ClInclude Include="Exception\ServerNotFoundException.h" />
-    <ClInclude Include="Exception\ServerNotOnlineException.h" />
-    <ClInclude Include="Exception\SessionExpiredException.h" />
-    <ClInclude Include="Exception\SessionNotFoundException.h" />
-    <ClInclude Include="Exception\StylizeLayerFailedException.h" />
-    <ClInclude Include="Exception\UnauthorizedAccessException.h" />
-    <ClInclude Include="Exception\UnsupportedProviderThreadModelException.h" />
-    <ClInclude Include="Exception\UriFormatException.h" />
     <ClInclude Include="Net\IOperationHandler.h" />
     <ClInclude Include="Services\Command.h" />
     <ClInclude Include="Services\ConnectionProperties.h" />

Modified: sandbox/jng/flatten_exceptions/Common/MapGuideCommon/MapGuideCommon.vcxproj.filters
===================================================================
--- sandbox/jng/flatten_exceptions/Common/MapGuideCommon/MapGuideCommon.vcxproj.filters	2020-10-21 11:05:48 UTC (rev 9745)
+++ sandbox/jng/flatten_exceptions/Common/MapGuideCommon/MapGuideCommon.vcxproj.filters	2020-10-21 11:21:38 UTC (rev 9746)
@@ -7,9 +7,6 @@
     <Filter Include="Controller">
       <UniqueIdentifier>{f2931e10-9b2a-4c65-a45b-87b247a19774}</UniqueIdentifier>
     </Filter>
-    <Filter Include="Exception">
-      <UniqueIdentifier>{684cecbd-a4b2-476a-8c9d-c98ee8d65678}</UniqueIdentifier>
-    </Filter>
     <Filter Include="Net">
       <UniqueIdentifier>{19455d03-2a41-470e-af83-3e03cccc5d8c}</UniqueIdentifier>
     </Filter>
@@ -42,174 +39,6 @@
     <ClCompile Include="Controller\HtmlController.cpp">
       <Filter>Controller</Filter>
     </ClCompile>
-    <ClCompile Include="Exception\AllProviderConnectionsUsedException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\AuthenticationFailedException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\ConnectionFailedException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\ConnectionNotOpenException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\DbException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\DbXmlException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\DuplicateGroupException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\DuplicateNameException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\DuplicateParameterException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\DuplicateRepositoryException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\DuplicateRoleException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\DuplicateServerException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\DuplicateSessionException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\DuplicateUserException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\DwfException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\DwfSectionNotFoundException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\DwfSectionResourceNotFoundException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\EndOfStreamException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\EvaluationExpiredException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\GroupNotFoundException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\InvalidDwfPackageException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\InvalidDwfSectionException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\InvalidFeatureSourceException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\InvalidIpAddressException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\InvalidLicenseException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\InvalidLogEntryException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\InvalidOperationVersionException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\InvalidPasswordException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\InvalidPrintLayoutFontSizeUnitsException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\InvalidPrintLayoutPositionUnitsException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\InvalidPrintLayoutSizeUnitsException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\InvalidSerialNumberException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\InvalidServerNameException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\LicenseException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\LicenseExpiredException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\LogOpenFailedException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\OperationProcessingException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\ParameterNotFoundException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\PathTooLongException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\PermissionDeniedException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\PortNotAvailableException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\PrintToScaleModeNotSelectedException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\RasterTransformationNotSupportedException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\RepositoryCreationFailedException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\RepositoryNotFoundException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\RepositoryNotOpenException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\RepositoryOpenFailedException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\RoleNotFoundException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\ServerNotFoundException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\ServerNotOnlineException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\SessionExpiredException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\SessionNotFoundException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\StylizeLayerFailedException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\UnauthorizedAccessException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\UnsupportedProviderThreadModelException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\UriFormatException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
     <ClCompile Include="Net\IOperationHandler.cpp">
       <Filter>Net</Filter>
     </ClCompile>
@@ -394,12 +223,6 @@
     <ClCompile Include="Util\TimerUtil.cpp">
       <Filter>Util</Filter>
     </ClCompile>
-    <ClCompile Include="Exception\UnknownTileProviderException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\UnsupportedTileProviderException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
     <ClCompile Include="Services\Metatile.cpp">
       <Filter>Services</Filter>
     </ClCompile>
@@ -423,174 +246,6 @@
     <ClInclude Include="Controller\HtmlController.h">
       <Filter>Controller</Filter>
     </ClInclude>
-    <ClInclude Include="Exception\AllProviderConnectionsUsedException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\AuthenticationFailedException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\ConnectionFailedException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\ConnectionNotOpenException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\DbException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\DbXmlException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\DuplicateGroupException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\DuplicateNameException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\DuplicateParameterException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\DuplicateRepositoryException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\DuplicateRoleException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\DuplicateServerException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\DuplicateSessionException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\DuplicateUserException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\DwfException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\DwfSectionNotFoundException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\DwfSectionResourceNotFoundException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\EndOfStreamException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\EvaluationExpiredException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\GroupNotFoundException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\InvalidDwfPackageException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\InvalidDwfSectionException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\InvalidFeatureSourceException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\InvalidIpAddressException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\InvalidLicenseException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\InvalidLogEntryException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\InvalidOperationVersionException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\InvalidPasswordException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\InvalidPrintLayoutFontSizeUnitsException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\InvalidPrintLayoutPositionUnitsException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\InvalidPrintLayoutSizeUnitsException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\InvalidSerialNumberException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\InvalidServerNameException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\LicenseException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\LicenseExpiredException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\LogOpenFailedException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\OperationProcessingException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\ParameterNotFoundException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\PathTooLongException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\PermissionDeniedException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\PortNotAvailableException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\PrintToScaleModeNotSelectedException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\RasterTransformationNotSupportedException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\RepositoryCreationFailedException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\RepositoryNotFoundException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\RepositoryNotOpenException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\RepositoryOpenFailedException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\RoleNotFoundException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\ServerNotFoundException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\ServerNotOnlineException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\SessionExpiredException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\SessionNotFoundException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\StylizeLayerFailedException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\UnauthorizedAccessException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\UnsupportedProviderThreadModelException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\UriFormatException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
     <ClInclude Include="Net\IOperationHandler.h">
       <Filter>Net</Filter>
     </ClInclude>
@@ -778,12 +433,6 @@
     <ClInclude Include="Util\TimerUtil.h">
       <Filter>Util</Filter>
     </ClInclude>
-    <ClInclude Include="Exception\UnknownTileProviderException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\UnsupportedTileProviderException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
     <ClInclude Include="Services\Metatile.h">
       <Filter>Services</Filter>
     </ClInclude>

Modified: sandbox/jng/flatten_exceptions/Common/MapGuideCommon/MapGuideCommonBuild.cpp
===================================================================
--- sandbox/jng/flatten_exceptions/Common/MapGuideCommon/MapGuideCommonBuild.cpp	2020-10-21 11:05:48 UTC (rev 9745)
+++ sandbox/jng/flatten_exceptions/Common/MapGuideCommon/MapGuideCommonBuild.cpp	2020-10-21 11:21:38 UTC (rev 9746)
@@ -18,64 +18,6 @@
 #include  "Controller/Controller.cpp"
 #include  "Controller/DwfController.cpp"
 #include  "Controller/HtmlController.cpp"
-#include  "Exception/AllProviderConnectionsUsedException.cpp"
-#include  "Exception/AuthenticationFailedException.cpp"
-#include  "Exception/ConnectionFailedException.cpp"
-#include  "Exception/ConnectionNotOpenException.cpp"
-#include  "Exception/DbException.cpp"
-#include  "Exception/DbXmlException.cpp"
-#include  "Exception/DuplicateGroupException.cpp"
-#include  "Exception/DuplicateNameException.cpp"
-#include  "Exception/DuplicateParameterException.cpp"
-#include  "Exception/DuplicateRepositoryException.cpp"
-#include  "Exception/DuplicateRoleException.cpp"
-#include  "Exception/DuplicateServerException.cpp"
-#include  "Exception/DuplicateSessionException.cpp"
-#include  "Exception/DuplicateUserException.cpp"
-#include  "Exception/DwfException.cpp"
-#include  "Exception/DwfSectionNotFoundException.cpp"
-#include  "Exception/DwfSectionResourceNotFoundException.cpp"
-#include  "Exception/EndOfStreamException.cpp"
-#include  "Exception/EvaluationExpiredException.cpp"
-#include  "Exception/GroupNotFoundException.cpp"
-#include  "Exception/InvalidDwfPackageException.cpp"
-#include  "Exception/InvalidDwfSectionException.cpp"
-#include  "Exception/InvalidFeatureSourceException.cpp"
-#include  "Exception/InvalidIpAddressException.cpp"
-#include  "Exception/InvalidLicenseException.cpp"
-#include  "Exception/InvalidLogEntryException.cpp"
-#include  "Exception/InvalidOperationVersionException.cpp"
-#include  "Exception/InvalidPasswordException.cpp"
-#include  "Exception/InvalidPrintLayoutFontSizeUnitsException.cpp"
-#include  "Exception/InvalidPrintLayoutPositionUnitsException.cpp"
-#include  "Exception/InvalidPrintLayoutSizeUnitsException.cpp"
-#include  "Exception/InvalidSerialNumberException.cpp"
-#include  "Exception/InvalidServerNameException.cpp"
-#include  "Exception/LicenseException.cpp"
-#include  "Exception/LicenseExpiredException.cpp"
-#include  "Exception/LogOpenFailedException.cpp"
-#include  "Exception/OperationProcessingException.cpp"
-#include  "Exception/ParameterNotFoundException.cpp"
-#include  "Exception/PathTooLongException.cpp"
-#include  "Exception/PermissionDeniedException.cpp"
-#include  "Exception/PortNotAvailableException.cpp"
-#include  "Exception/PrintToScaleModeNotSelectedException.cpp"
-#include  "Exception/RasterTransformationNotSupportedException.cpp"
-#include  "Exception/RepositoryCreationFailedException.cpp"
-#include  "Exception/RepositoryNotFoundException.cpp"
-#include  "Exception/RepositoryNotOpenException.cpp"
-#include  "Exception/RepositoryOpenFailedException.cpp"
-#include  "Exception/RoleNotFoundException.cpp"
-#include  "Exception/ServerNotFoundException.cpp"
-#include  "Exception/ServerNotOnlineException.cpp"
-#include  "Exception/SessionExpiredException.cpp"
-#include  "Exception/SessionNotFoundException.cpp"
-#include  "Exception/StylizeLayerFailedException.cpp"
-#include  "Exception/UnauthorizedAccessException.cpp"
-#include  "Exception/UnknownTileProviderException.cpp"
-#include  "Exception/UnsupportedTileProviderException.cpp"
-#include  "Exception/UnsupportedProviderThreadModelException.cpp"
-#include  "Exception/UriFormatException.cpp"
 #include  "MapLayer/Layer.cpp"
 #include  "MapLayer/Map.cpp"
 #include  "MapLayer/Selection.cpp"

Modified: sandbox/jng/flatten_exceptions/Common/MapGuideCommon/MapLayer/Layer.cpp
===================================================================
--- sandbox/jng/flatten_exceptions/Common/MapGuideCommon/MapLayer/Layer.cpp	2020-10-21 11:05:48 UTC (rev 9745)
+++ sandbox/jng/flatten_exceptions/Common/MapGuideCommon/MapLayer/Layer.cpp	2020-10-21 11:21:38 UTC (rev 9746)
@@ -362,7 +362,7 @@
         STRING errorMsg = parser.GetErrorMessage();
         MgStringCollection arguments;
         arguments.Add(errorMsg);
-        throw new MgInvalidFeatureSourceException(L"MgLayer::UpdateFeatures", __LINE__, __WFILE__, &arguments, L"", NULL);
+        throw new MgException(MgExceptionCodes::MgInvalidFeatureSourceException, L"MgLayer::UpdateFeatures", __LINE__, __WFILE__, &arguments, L"", NULL);
     }
 
     auto_ptr<MdfModel::FeatureSource> featureSource;
@@ -445,7 +445,7 @@
         Ptr<MgDataPropertyDefinition> prop = dynamic_cast<MgDataPropertyDefinition*>(idProps->GetItem(nIds));
         if (0 == (MgDataPropertyDefinition*)prop)
         {
-            throw new MgInvalidCastException(L"MgLayer.PopulateIdentityProperties",
+            throw new MgException(MgExceptionCodes::MgInvalidCastException, L"MgLayer.PopulateIdentityProperties",
                 __LINE__, __WFILE__, NULL, L"", NULL);
         }
         MgLayer::IdProperty idProp;

Modified: sandbox/jng/flatten_exceptions/Common/MapGuideCommon/MapLayer/Map.cpp
===================================================================
--- sandbox/jng/flatten_exceptions/Common/MapGuideCommon/MapLayer/Map.cpp	2020-10-21 11:05:48 UTC (rev 9745)
+++ sandbox/jng/flatten_exceptions/Common/MapGuideCommon/MapLayer/Map.cpp	2020-10-21 11:21:38 UTC (rev 9746)
@@ -1031,7 +1031,7 @@
     {
         if (NULL == m_siteConnection.p || m_name.empty())
         {
-            throw new MgNullReferenceException(L"MgMap.Save",
+            throw new MgException(MgExceptionCodes::MgNullReferenceException, L"MgMap.Save",
                 __LINE__, __WFILE__, NULL, L"", NULL);
         }
         else
@@ -1234,7 +1234,7 @@
             MgStringCollection args;
             args.Add(layer->GetName());
             args.Add(parent->GetName());
-            throw new MgGroupNotFoundException(L"MgMap.PackLayersAndGroups", __LINE__, __WFILE__, NULL, L"MgLayerBelongsToGroupNotInMap", &args);
+            throw new MgException(MgExceptionCodes::MgGroupNotFoundException, L"MgMap.PackLayersAndGroups", __LINE__, __WFILE__, NULL, L"MgLayerBelongsToGroupNotInMap", &args);
         }
         stream->WriteString(parent != NULL? parent->GetName(): L"");
         stream->WriteObject(layer);
@@ -1366,7 +1366,7 @@
 
     if (version != m_serializeVersion)
     {
-        throw new MgStreamIoException(L"MgMap.Deserialize", __LINE__, __WFILE__, NULL, L"MgInvalidTCPProtocol", NULL);
+        throw new MgException(MgExceptionCodes::MgStreamIoException, L"MgMap.Deserialize", __LINE__, __WFILE__, NULL, L"MgInvalidTCPProtocol", NULL);
     }
 
     //resource id for MgMap

Modified: sandbox/jng/flatten_exceptions/Common/MapGuideCommon/MapLayer/Selection.cpp
===================================================================
--- sandbox/jng/flatten_exceptions/Common/MapGuideCommon/MapLayer/Selection.cpp	2020-10-21 11:05:48 UTC (rev 9745)
+++ sandbox/jng/flatten_exceptions/Common/MapGuideCommon/MapLayer/Selection.cpp	2020-10-21 11:21:38 UTC (rev 9746)
@@ -125,7 +125,7 @@
     if (userInfo.p != NULL) sessionId = userInfo->GetMgSessionId();
     if (sessionId.empty())
     {
-        throw new MgSessionExpiredException(L"MgSelection.Open",__LINE__,__WFILE__, NULL, L"MgSelectionOpenWithEmptySession", NULL);
+        throw new MgException(MgExceptionCodes::MgSessionExpiredException, L"MgSelection.Open",__LINE__,__WFILE__, NULL, L"MgSelectionOpenWithEmptySession", NULL);
     }
 
     Ptr<MgResourceIdentifier> resId = new MgResourceIdentifier(GetResourceName(sessionId, mapName));
@@ -143,7 +143,7 @@
     if (userInfo.p != NULL) sessionId = userInfo->GetMgSessionId();
     if (sessionId.empty())
     {
-        throw new MgSessionExpiredException(L"MgSelection.Save",__LINE__,__WFILE__, NULL, L"MgSelectionSaveWithEmptySession", NULL);
+        throw new MgException(MgExceptionCodes::MgSessionExpiredException, L"MgSelection.Save",__LINE__,__WFILE__, NULL, L"MgSelectionSaveWithEmptySession", NULL);
     }
 
     Ptr<MgResourceIdentifier> resId = new MgResourceIdentifier(GetResourceName(sessionId, mapName));
@@ -157,7 +157,7 @@
 {
     if (sessionId.empty())
     {
-        throw new MgSessionExpiredException(L"MgSelection.Save",__LINE__,__WFILE__, NULL, L"MgSelectionSaveWithEmptySession", NULL);
+        throw new MgException(MgExceptionCodes::MgSessionExpiredException, L"MgSelection.Save",__LINE__,__WFILE__, NULL, L"MgSelectionSaveWithEmptySession", NULL);
     }
 
     Ptr<MgResourceIdentifier> resId = new MgResourceIdentifier(GetResourceName(sessionId, mapName));

Modified: sandbox/jng/flatten_exceptions/Common/MapGuideCommon/Services/Command.cpp
===================================================================
--- sandbox/jng/flatten_exceptions/Common/MapGuideCommon/Services/Command.cpp	2020-10-21 11:05:48 UTC (rev 9745)
+++ sandbox/jng/flatten_exceptions/Common/MapGuideCommon/Services/Command.cpp	2020-10-21 11:21:38 UTC (rev 9746)
@@ -173,12 +173,12 @@
 
     if (MgStreamParser::mshStreamStart != msh.m_streamStart)
     {
-        throw new MgInvalidStreamHeaderException(L"MgCommand.GetResponse",
+        throw new MgException(MgExceptionCodes::MgInvalidStreamHeaderException, L"MgCommand.GetResponse",
             __LINE__, __WFILE__, NULL, L"", NULL);
     }
     else if (MgStreamParser::StreamVersion != msh.m_streamVersion)
     {
-        throw new MgStreamIoException(L"MgCommand.GetResponse",
+        throw new MgException(MgExceptionCodes::MgStreamIoException, L"MgCommand.GetResponse",
             __LINE__, __WFILE__, NULL, L"MgInvalidTCPProtocol", NULL);
     }
 

Modified: sandbox/jng/flatten_exceptions/Common/MapGuideCommon/Services/PrintLayout.cpp
===================================================================
--- sandbox/jng/flatten_exceptions/Common/MapGuideCommon/Services/PrintLayout.cpp	2020-10-21 11:05:48 UTC (rev 9745)
+++ sandbox/jng/flatten_exceptions/Common/MapGuideCommon/Services/PrintLayout.cpp	2020-10-21 11:21:38 UTC (rev 9746)
@@ -263,7 +263,7 @@
                         && positionUnits != L"meters" && positionUnits != L"inches" && positionUnits != L"percent")
                     {
                         // invalid print layout position units
-                        throw new MgInvalidPrintLayoutPositionUnitsException(L"MgPrintLayout.GetLayoutPropertiesFromXml", __LINE__, __WFILE__, NULL, L"", NULL);
+                        throw new MgException(MgExceptionCodes::MgInvalidPrintLayoutPositionUnitsException, L"MgPrintLayout.GetLayoutPropertiesFromXml", __LINE__, __WFILE__, NULL, L"", NULL);
                     }
                 }
                 pXmlUtil->GetElementValue(logoNode, "ResourceId", resId, false);
@@ -278,7 +278,7 @@
                         && sizeUnits != L"inches" && sizeUnits != L"meters")
                     {
                         // invalid print layout size units
-                        throw new MgInvalidPrintLayoutSizeUnitsException(L"MgPrintLayout.GetLayoutPropertiesFromXml", __LINE__, __WFILE__, NULL, L"", NULL);
+                        throw new MgException(MgExceptionCodes::MgInvalidPrintLayoutSizeUnitsException, L"MgPrintLayout.GetLayoutPropertiesFromXml", __LINE__, __WFILE__, NULL, L"", NULL);
                     }
                 }
                 pXmlUtil->GetElementValue(logoNode, "Rotation", rotation, false);
@@ -325,7 +325,7 @@
                         && positionUnits != L"percent" && positionUnits != L"meters" && positionUnits != L"inches")
                     {
                         // invalid print layout position units
-                        throw new MgInvalidPrintLayoutPositionUnitsException(L"MgPrintLayout.GetLayoutPropertiesFromXml", __LINE__, __WFILE__, NULL, L"", NULL);
+                        throw new MgException(MgExceptionCodes::MgInvalidPrintLayoutPositionUnitsException, L"MgPrintLayout.GetLayoutPropertiesFromXml", __LINE__, __WFILE__, NULL, L"", NULL);
                     }
                 }
                 DOMNode* fontNode = pXmlUtil->GetElementNode(textNode, "Font", false);
@@ -338,7 +338,7 @@
                         && fontSizeUnits != L"points" && fontSizeUnits != L"meters" && fontSizeUnits != L"inches")
                     {
                         // invalid print layout font size units
-                        throw new MgInvalidPrintLayoutFontSizeUnitsException(L"MgPrintLayout.GetLayoutPropertiesFromXml", __LINE__, __WFILE__, NULL, L"", NULL);
+                        throw new MgException(MgExceptionCodes::MgInvalidPrintLayoutFontSizeUnitsException, L"MgPrintLayout.GetLayoutPropertiesFromXml", __LINE__, __WFILE__, NULL, L"", NULL);
                     }
                 }
                 pXmlUtil->GetElementValue(textNode, "Value", value, false);

Modified: sandbox/jng/flatten_exceptions/Common/MapGuideCommon/Services/ProxyDataReader.cpp
===================================================================
--- sandbox/jng/flatten_exceptions/Common/MapGuideCommon/Services/ProxyDataReader.cpp	2020-10-21 11:05:48 UTC (rev 9745)
+++ sandbox/jng/flatten_exceptions/Common/MapGuideCommon/Services/ProxyDataReader.cpp	2020-10-21 11:21:38 UTC (rev 9746)
@@ -811,7 +811,7 @@
         MgStringCollection arguments;
         arguments.Add(propertyName);
 
-        throw new MgException(MgExceptionCodes::MgNullPropertyValueException, "MgProxyDataReader.GetProperty",
+        throw new MgException(MgExceptionCodes::MgNullPropertyValueException, L"MgProxyDataReader.GetProperty",
             __LINE__, __WFILE__, &arguments, L"", NULL);
     }
 
@@ -850,7 +850,7 @@
         MgStringCollection arguments;
         arguments.Add(buffer);
 
-        throw new MgException(MgExceptionCodes::MgNullPropertyValueException, "MgProxyDataReader.GetProperty",
+        throw new MgException(MgExceptionCodes::MgNullPropertyValueException, L"MgProxyDataReader.GetProperty",
             __LINE__, __WFILE__, &arguments, L"", NULL);
     }
 

Modified: sandbox/jng/flatten_exceptions/Common/MapGuideCommon/Services/ProxyFeatureReader.cpp
===================================================================
--- sandbox/jng/flatten_exceptions/Common/MapGuideCommon/Services/ProxyFeatureReader.cpp	2020-10-21 11:05:48 UTC (rev 9745)
+++ sandbox/jng/flatten_exceptions/Common/MapGuideCommon/Services/ProxyFeatureReader.cpp	2020-10-21 11:21:38 UTC (rev 9746)
@@ -20,7 +20,7 @@
 #define CHECK_FEATURESET_COUNT(pointer, methodname)        \
 if (0 == pointer->GetCount())                           \
 {                                                       \
-    throw new MgEmptyFeatureSetException(methodname,    \
+    throw new MgException(MgExceptionCodes::MgEmptyFeatureSetException, methodname,    \
                                        __LINE__, __WFILE__, NULL, L"", NULL); \
 }
 
@@ -27,7 +27,7 @@
 #define CHECK_PROPERTY_TYPE(property, type, methodname) \
 if (property != type)                                   \
 {                                                       \
-    throw new MgInvalidPropertyTypeException(methodname, \
+    throw new MgException(MgExceptionCodes::MgInvalidPropertyTypeException, methodname, \
                                        __LINE__, __WFILE__, NULL, L"", NULL); \
 }
 
@@ -689,7 +689,7 @@
         MgStringCollection arguments;
         arguments.Add(propertyName);
 
-        throw new MgException(MgExceptionCodes::MgNullPropertyValueException, "MgProxyFeatureReader.GetProperty",
+        throw new MgException(MgExceptionCodes::MgNullPropertyValueException, L"MgProxyFeatureReader.GetProperty",
             __LINE__, __WFILE__, &arguments, L"", NULL);
     }
 
@@ -712,7 +712,7 @@
         MgStringCollection arguments;
         arguments.Add(buffer);
 
-        throw new MgException(MgExceptionCodes::MgNullPropertyValueException, "MgProxyFeatureReader.GetProperty",
+        throw new MgException(MgExceptionCodes::MgNullPropertyValueException, L"MgProxyFeatureReader.GetProperty",
             __LINE__, __WFILE__, &arguments, L"", NULL);
     }
 

Modified: sandbox/jng/flatten_exceptions/Common/MapGuideCommon/Services/ProxyGwsFeatureReader.cpp
===================================================================
--- sandbox/jng/flatten_exceptions/Common/MapGuideCommon/Services/ProxyGwsFeatureReader.cpp	2020-10-21 11:05:48 UTC (rev 9745)
+++ sandbox/jng/flatten_exceptions/Common/MapGuideCommon/Services/ProxyGwsFeatureReader.cpp	2020-10-21 11:21:38 UTC (rev 9746)
@@ -623,7 +623,7 @@
         MgStringCollection arguments;
         arguments.Add(propertyName);
 
-        throw new MgException(MgExceptionCodes::MgNullPropertyValueException, "MgProxyGwsFeatureReader.GetProperty",
+        throw new MgException(MgExceptionCodes::MgNullPropertyValueException, L"MgProxyGwsFeatureReader.GetProperty",
             __LINE__, __WFILE__, &arguments, L"", NULL);
     }
 
@@ -662,7 +662,7 @@
         MgStringCollection arguments;
         arguments.Add(buffer);
 
-        throw new MgException(MgExceptionCodes::MgNullPropertyValueException, "MgProxyGwsFeatureReader.GetProperty",
+        throw new MgException(MgExceptionCodes::MgNullPropertyValueException, L"MgProxyGwsFeatureReader.GetProperty",
             __LINE__, __WFILE__, &arguments, L"", NULL);
     }
 

Modified: sandbox/jng/flatten_exceptions/Common/MapGuideCommon/Services/ProxySqlDataReader.cpp
===================================================================
--- sandbox/jng/flatten_exceptions/Common/MapGuideCommon/Services/ProxySqlDataReader.cpp	2020-10-21 11:05:48 UTC (rev 9745)
+++ sandbox/jng/flatten_exceptions/Common/MapGuideCommon/Services/ProxySqlDataReader.cpp	2020-10-21 11:21:38 UTC (rev 9746)
@@ -20,7 +20,7 @@
 #define CHECK_FEATURESET_COUNT(pointer, methodname)        \
 if (0 == pointer->GetCount())                           \
 {                                                       \
-    throw new MgEmptyFeatureSetException(methodname,    \
+    throw new MgException(MgExceptionCodes::MgEmptyFeatureSetException, methodname,    \
                                        __LINE__, __WFILE__, NULL, L"", NULL); \
 }
 
@@ -27,7 +27,7 @@
 #define CHECK_PROPERTY_TYPE(property, type, methodname) \
 if (property != type)                                   \
 {                                                       \
-    throw new MgInvalidPropertyTypeException(methodname, \
+    throw new MgException(MgExceptionCodes::MgInvalidPropertyTypeException, methodname, \
                                        __LINE__, __WFILE__, NULL, L"", NULL); \
 }
 
@@ -807,7 +807,7 @@
         MgStringCollection arguments;
         arguments.Add(propertyName);
 
-        throw new MgException(MgExceptionCodes::MgNullPropertyValueException, "MgProxySqlDataReader.GetProperty",
+        throw new MgException(MgExceptionCodes::MgNullPropertyValueException, L"MgProxySqlDataReader.GetProperty",
             __LINE__, __WFILE__, &arguments, L"", NULL);
     }
 
@@ -846,7 +846,7 @@
         MgStringCollection arguments;
         arguments.Add(buffer);
 
-        throw new MgException(MgExceptionCodes::MgNullPropertyValueException, "MgProxySqlDataReader.GetProperty",
+        throw new MgException(MgExceptionCodes::MgNullPropertyValueException, L"MgProxySqlDataReader.GetProperty",
             __LINE__, __WFILE__, &arguments, L"", NULL);
     }
 
@@ -898,7 +898,7 @@
 /// MgFdoException
 MgRaster* MgProxySqlDataReader::GetRaster(CREFSTRING propertyName)
 {
-    throw new MgInvalidPropertyTypeException(L"MgProxySqlDataReader.GetRaster", __LINE__, __WFILE__, NULL, L"", NULL);
+    throw new MgException(MgExceptionCodes::MgInvalidPropertyTypeException, L"MgProxySqlDataReader.GetRaster", __LINE__, __WFILE__, NULL, L"", NULL);
 }
 
 /// <summary>Gets the raster object of the specified property.
@@ -912,7 +912,7 @@
 /// MgFdoException
 MgRaster* MgProxySqlDataReader::GetRaster(INT32 index)
 {
-    throw new MgInvalidPropertyTypeException(L"MgProxySqlDataReader.GetRaster", __LINE__, __WFILE__, NULL, L"", NULL);
+    throw new MgException(MgExceptionCodes::MgInvalidPropertyTypeException, L"MgProxySqlDataReader.GetRaster", __LINE__, __WFILE__, NULL, L"", NULL);
 }
 
 //////////////////////////////////////////////////////////////////

Modified: sandbox/jng/flatten_exceptions/Common/MapGuideCommon/Services/ServerConnection.cpp
===================================================================
--- sandbox/jng/flatten_exceptions/Common/MapGuideCommon/Services/ServerConnection.cpp	2020-10-21 11:05:48 UTC (rev 9745)
+++ sandbox/jng/flatten_exceptions/Common/MapGuideCommon/Services/ServerConnection.cpp	2020-10-21 11:21:38 UTC (rev 9746)
@@ -99,7 +99,7 @@
     {
         m_isOpen = false;
 
-        throw new MgConnectionFailedException(L"MgServerConnection.Open",
+        throw new MgException(MgExceptionCodes::MgConnectionFailedException, L"MgServerConnection.Open",
             __LINE__, __WFILE__, NULL, L"", NULL);
     }
 }
@@ -332,7 +332,7 @@
 
             if (!msc->IsOpen())
             {
-                throw new MgConnectionNotOpenException(L"MgServerConnection.Acquire", __LINE__, __WFILE__, NULL, L"", NULL);
+                throw new MgException(MgExceptionCodes::MgConnectionNotOpenException, L"MgServerConnection.Acquire", __LINE__, __WFILE__, NULL, L"", NULL);
             }
 
             msc->SetStack(stack);

Modified: sandbox/jng/flatten_exceptions/Common/MapGuideCommon/Services/ServerConnectionStack.cpp
===================================================================
--- sandbox/jng/flatten_exceptions/Common/MapGuideCommon/Services/ServerConnectionStack.cpp	2020-10-21 11:05:48 UTC (rev 9745)
+++ sandbox/jng/flatten_exceptions/Common/MapGuideCommon/Services/ServerConnectionStack.cpp	2020-10-21 11:21:38 UTC (rev 9746)
@@ -135,7 +135,7 @@
     int acquired = m_activeConnections.acquire(future);
     if (acquired == -1)
     {
-        throw new MgConnectionFailedException(L"MgServerConnectionStack.Pop",
+        throw new MgException(MgExceptionCodes::MgConnectionFailedException, L"MgServerConnectionStack.Pop",
             __LINE__, __WFILE__, NULL, L"", NULL);
     }
 

Modified: sandbox/jng/flatten_exceptions/Common/MapGuideCommon/Services/ServerInformation.cpp
===================================================================
--- sandbox/jng/flatten_exceptions/Common/MapGuideCommon/Services/ServerInformation.cpp	2020-10-21 11:05:48 UTC (rev 9745)
+++ sandbox/jng/flatten_exceptions/Common/MapGuideCommon/Services/ServerInformation.cpp	2020-10-21 11:21:38 UTC (rev 9746)
@@ -221,7 +221,7 @@
         MgStringCollection arguments;
         arguments.Add(name);
 
-        throw new MgInvalidServerNameException(
+        throw new MgException(MgExceptionCodes::MgInvalidServerNameException, 
             L"MgServerInformation.CheckName",
             __LINE__, __WFILE__, &arguments, L"", NULL);
     }
@@ -268,7 +268,7 @@
         MgStringCollection arguments;
         arguments.Add(address);
 
-        throw new MgInvalidIpAddressException(
+        throw new MgException(MgExceptionCodes::MgInvalidIpAddressException, 
             L"MgServerInformation.CheckAddress",
             __LINE__, __WFILE__, &arguments, L"", NULL);
     }
@@ -414,7 +414,7 @@
                 // Everything in the config file is treated as a string
                 // so we should not be here.
 
-                throw new MgInvalidPropertyTypeException(
+                throw new MgException(MgExceptionCodes::MgInvalidPropertyTypeException, 
                     L"MgServerInformation::ToServiceFlags", __LINE__, __WFILE__, NULL, L"", NULL);
             }
 

Modified: sandbox/jng/flatten_exceptions/Common/MapGuideCommon/Services/Site.h
===================================================================
--- sandbox/jng/flatten_exceptions/Common/MapGuideCommon/Services/Site.h	2020-10-21 11:05:48 UTC (rev 9745)
+++ sandbox/jng/flatten_exceptions/Common/MapGuideCommon/Services/Site.h	2020-10-21 11:21:38 UTC (rev 9746)
@@ -35,7 +35,7 @@
 
 #define CHECK_SITE_CONN(methodName)                                           \
     if (NULL == this->m_pSiteConn)                                            \
-        throw new MgConnectionNotOpenException(methodName, __LINE__, __WFILE__, NULL, L"", NULL); \
+        throw new MgException(MgExceptionCodes::MgConnectionNotOpenException, methodName, __LINE__, __WFILE__, NULL, L"", NULL); \
 
 #define CHECK_EMPTY_CREFSTRING(str, methodName)                               \
     if (((CREFSTRING)str).empty())                                            \

Modified: sandbox/jng/flatten_exceptions/Common/MapGuideCommon/Services/SiteConnection.cpp
===================================================================
--- sandbox/jng/flatten_exceptions/Common/MapGuideCommon/Services/SiteConnection.cpp	2020-10-21 11:05:48 UTC (rev 9745)
+++ sandbox/jng/flatten_exceptions/Common/MapGuideCommon/Services/SiteConnection.cpp	2020-10-21 11:21:38 UTC (rev 9746)
@@ -86,7 +86,7 @@
     // We can not have null userInformation
     if (NULL == userInformation)
     {
-        throw new MgAuthenticationFailedException(L"MgSiteConnection.Open", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgException(MgExceptionCodes::MgAuthenticationFailedException, L"MgSiteConnection.Open", __LINE__, __WFILE__, NULL, L"", NULL);
     }
 
     m_connProp = NULL;
@@ -99,7 +99,7 @@
             MgConfigProperties::DefaultConfigurationFilename :
             m_config->GetFileName());
 
-        throw new MgConfigurationException(L"MgSiteConnection.Open",
+        throw new MgException(MgExceptionCodes::MgConfigurationException, L"MgSiteConnection.Open",
             __LINE__, __WFILE__, &arguments, L"", NULL);
     }
 
@@ -130,7 +130,7 @@
     if (m_connProp == NULL)
     {
         // There might not be any MapGuide servers running for the site
-        throw new MgConnectionFailedException(L"MgSiteConnection.Open",
+        throw new MgException(MgExceptionCodes::MgConnectionFailedException, L"MgSiteConnection.Open",
             __LINE__, __WFILE__, NULL, L"", NULL);
     }
 
@@ -572,7 +572,7 @@
     }
     else
     {
-        throw new MgConnectionNotOpenException(L"MgSiteConnection.GetSite", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgException(MgExceptionCodes::MgConnectionNotOpenException, L"MgSiteConnection.GetSite", __LINE__, __WFILE__, NULL, L"", NULL);
     }
 
     return site.Detach();
@@ -582,7 +582,7 @@
 {
     if (NULL == m_connProp.p)
     {
-        throw new MgConnectionNotOpenException(L"MgSiteConnection.GetUserInfo", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgException(MgExceptionCodes::MgConnectionNotOpenException, L"MgSiteConnection.GetUserInfo", __LINE__, __WFILE__, NULL, L"", NULL);
     }
     return  m_connProp->GetUserInfo();
 }

Modified: sandbox/jng/flatten_exceptions/Common/MapGuideCommon/Services/SiteManager.cpp
===================================================================
--- sandbox/jng/flatten_exceptions/Common/MapGuideCommon/Services/SiteManager.cpp	2020-10-21 11:05:48 UTC (rev 9745)
+++ sandbox/jng/flatten_exceptions/Common/MapGuideCommon/Services/SiteManager.cpp	2020-10-21 11:21:38 UTC (rev 9746)
@@ -331,7 +331,7 @@
             // We have a session, but it will not exist on any other machine so we force the session exception
             MgStringCollection args;
             args.Add(sessionId);
-            throw new MgSessionExpiredException(L"MgSiteManager.GetConnectionProperties",__LINE__,__WFILE__, NULL, L"MgSessionExpired", &args);
+            throw new MgException(MgExceptionCodes::MgSessionExpiredException, L"MgSiteManager.GetConnectionProperties",__LINE__,__WFILE__, NULL, L"MgSessionExpired", &args);
         }
     }
     else
@@ -347,7 +347,7 @@
     if (NULL == connProps.p)
     {
         // There might not be any MapGuide servers running for the site
-        throw new MgConnectionFailedException(
+        throw new MgException(MgExceptionCodes::MgConnectionFailedException, 
             L"MgSiteManager.GetConnectionProperties",
             __LINE__, __WFILE__, NULL, L"", NULL);
     }

Modified: sandbox/jng/flatten_exceptions/Common/MapGuideCommon/System/CryptographyManager.h
===================================================================
--- sandbox/jng/flatten_exceptions/Common/MapGuideCommon/System/CryptographyManager.h	2020-10-21 11:05:48 UTC (rev 9745)
+++ sandbox/jng/flatten_exceptions/Common/MapGuideCommon/System/CryptographyManager.h	2020-10-21 11:21:38 UTC (rev 9746)
@@ -41,27 +41,27 @@
                 break;                                                        \
                                                                               \
             case ecInvalidOperation:                                          \
-                cryptographyException = new MgInvalidOperationException(      \
+                cryptographyException = new MgException(MgExceptionCodes::MgInvalidOperationException,       \
                     methodName, __LINE__, __WFILE__, NULL, L"", NULL);        \
                 break;                                                        \
                                                                               \
             case ecNullArgument:                                              \
-                cryptographyException = new MgNullArgumentException(          \
+                cryptographyException = new MgException(MgExceptionCodes::MgNullArgumentException,           \
                     methodName, __LINE__, __WFILE__, NULL, L"", NULL);        \
                 break;                                                        \
                                                                               \
             case ecInvalidArgument:                                           \
-                cryptographyException = new MgInvalidArgumentException(       \
+                cryptographyException = new MgException(MgExceptionCodes::MgInvalidArgumentException,        \
                     methodName, __LINE__, __WFILE__, NULL, L"", NULL);        \
                 break;                                                        \
                                                                               \
             case ecLengthError:                                               \
-                cryptographyException = new MgLengthException(                \
+                cryptographyException = new MgException(MgExceptionCodes::MgLengthException,                 \
                     methodName, __LINE__, __WFILE__, NULL, L"", NULL);        \
                 break;                                                        \
                                                                               \
             case ecDateTimeError:                                             \
-                cryptographyException = new MgDateTimeException(              \
+                cryptographyException = new MgException(MgExceptionCodes::MgDateTimeException,               \
                     methodName, __LINE__, __WFILE__, NULL, L"", NULL);        \
                 break;                                                        \
                                                                               \
@@ -68,23 +68,23 @@
             case ecFileIoError:                                               \
             case ecReadError:                                                 \
             case ecWriteError:                                                \
-                cryptographyException = new MgFileIoException(                \
+                cryptographyException = new MgException(MgExceptionCodes::MgFileIoException,                 \
                     methodName, __LINE__, __WFILE__, NULL, L"", NULL);        \
                 break;                                                        \
                                                                               \
             case ecEncryptionError:                                           \
-                cryptographyException = new MgEncryptionException(            \
+                cryptographyException = new MgException(MgExceptionCodes::MgEncryptionException,             \
                     methodName, __LINE__, __WFILE__, NULL, L"", NULL);        \
                 break;                                                        \
                                                                               \
             case ecDecryptionError:                                           \
-                cryptographyException = new MgDecryptionException(            \
+                cryptographyException = new MgException(MgExceptionCodes::MgDecryptionException,             \
                     methodName, __LINE__, __WFILE__, NULL, L"", NULL);        \
                 break;                                                        \
                                                                               \
             case ecUnclassified:                                              \
             default:                                                          \
-                cryptographyException = new MgUnclassifiedException(          \
+                cryptographyException = new MgException(MgExceptionCodes::MgUnclassifiedException,           \
                     methodName, __LINE__, __WFILE__, NULL, L"", NULL);        \
                 break;                                                        \
         }                                                                     \
@@ -97,12 +97,12 @@
     }                                                                         \
     catch (exception& e)                                                      \
     {                                                                         \
-        cryptographyException = MgSystemException::Create(                    \
+        cryptographyException = MgException::Create(                          \
             e, methodName, __LINE__, __WFILE__);                              \
     }                                                                         \
     catch (...)                                                               \
     {                                                                         \
-        cryptographyException = new MgUnclassifiedException(                  \
+        cryptographyException = new MgException(MgExceptionCodes::MgUnclassifiedException,                   \
             methodName, __LINE__, __WFILE__, NULL, L"", NULL);                \
     }                                                                         \
 

Modified: sandbox/jng/flatten_exceptions/Common/MapGuideCommon/System/MapGuideCommonClassId.h
===================================================================
--- sandbox/jng/flatten_exceptions/Common/MapGuideCommon/System/MapGuideCommonClassId.h	2020-10-21 11:05:48 UTC (rev 9745)
+++ sandbox/jng/flatten_exceptions/Common/MapGuideCommon/System/MapGuideCommonClassId.h	2020-10-21 11:21:38 UTC (rev 9746)
@@ -33,6 +33,9 @@
 
 
 // MapGuide Exceptions
+//
+// NOTE: Although we removed these exceptions, we are keeping the ids in to prevent these ids from being
+// accidentally used for new classes in the future
 #define MapGuide_Exception_MgAuthenticationFailedException              MAPGUIDE_EXCEPTION_ID+0
 #define MapGuide_Exception_MgConnectionFailedException                  MAPGUIDE_EXCEPTION_ID+1
 #define MapGuide_Exception_MgConnectionNotOpenException                 MAPGUIDE_EXCEPTION_ID+2

Modified: sandbox/jng/flatten_exceptions/Common/MapGuideCommon/System/MapGuideCommonFactory.cpp
===================================================================
--- sandbox/jng/flatten_exceptions/Common/MapGuideCommon/System/MapGuideCommonFactory.cpp	2020-10-21 11:05:48 UTC (rev 9745)
+++ sandbox/jng/flatten_exceptions/Common/MapGuideCommon/System/MapGuideCommonFactory.cpp	2020-10-21 11:21:38 UTC (rev 9746)
@@ -35,63 +35,6 @@
     MgClassFactory* fact = MgClassFactory::GetInstance();
 
     //put in the map any class that can be serialized
-    EXCEPTION_CLASS_CREATOR(MgAllProviderConnectionsUsedException)
-    EXCEPTION_CLASS_CREATOR(MgAuthenticationFailedException)
-    EXCEPTION_CLASS_CREATOR(MgConnectionFailedException)
-    EXCEPTION_CLASS_CREATOR(MgConnectionNotOpenException)
-    EXCEPTION_CLASS_CREATOR(MgDbException)
-    EXCEPTION_CLASS_CREATOR(MgDbXmlException)
-    EXCEPTION_CLASS_CREATOR(MgDuplicateGroupException)
-    EXCEPTION_CLASS_CREATOR(MgDuplicateNameException)
-    EXCEPTION_CLASS_CREATOR(MgDuplicateParameterException)
-    EXCEPTION_CLASS_CREATOR(MgDuplicateRepositoryException)
-    EXCEPTION_CLASS_CREATOR(MgDuplicateRoleException)
-    EXCEPTION_CLASS_CREATOR(MgDuplicateServerException)
-    EXCEPTION_CLASS_CREATOR(MgDuplicateSessionException)
-    EXCEPTION_CLASS_CREATOR(MgDuplicateUserException)
-    EXCEPTION_CLASS_CREATOR(MgDwfException)
-    EXCEPTION_CLASS_CREATOR(MgDwfSectionNotFoundException)
-    EXCEPTION_CLASS_CREATOR(MgDwfSectionResourceNotFoundException)
-    EXCEPTION_CLASS_CREATOR(MgEndOfStreamException)
-    EXCEPTION_CLASS_CREATOR(MgEvaluationExpiredException)
-    EXCEPTION_CLASS_CREATOR(MgGroupNotFoundException)
-    EXCEPTION_CLASS_CREATOR(MgInvalidDwfPackageException)
-    EXCEPTION_CLASS_CREATOR(MgInvalidDwfSectionException)
-    EXCEPTION_CLASS_CREATOR(MgInvalidFeatureSourceException)
-    EXCEPTION_CLASS_CREATOR(MgInvalidIpAddressException)
-    EXCEPTION_CLASS_CREATOR(MgInvalidLicenseException)
-    EXCEPTION_CLASS_CREATOR(MgInvalidLogEntryException)
-    EXCEPTION_CLASS_CREATOR(MgInvalidOperationVersionException)
-    EXCEPTION_CLASS_CREATOR(MgInvalidPasswordException)
-    EXCEPTION_CLASS_CREATOR(MgInvalidPrintLayoutFontSizeUnitsException)
-    EXCEPTION_CLASS_CREATOR(MgInvalidPrintLayoutPositionUnitsException)
-    EXCEPTION_CLASS_CREATOR(MgInvalidPrintLayoutSizeUnitsException)
-    EXCEPTION_CLASS_CREATOR(MgInvalidSerialNumberException)
-    EXCEPTION_CLASS_CREATOR(MgInvalidServerNameException)
-    EXCEPTION_CLASS_CREATOR(MgLicenseException)
-    EXCEPTION_CLASS_CREATOR(MgLicenseExpiredException)
-    EXCEPTION_CLASS_CREATOR(MgLogOpenFailedException)
-    EXCEPTION_CLASS_CREATOR(MgOperationProcessingException)
-    EXCEPTION_CLASS_CREATOR(MgParameterNotFoundException)
-    EXCEPTION_CLASS_CREATOR(MgPathTooLongException)
-    EXCEPTION_CLASS_CREATOR(MgPermissionDeniedException)
-    EXCEPTION_CLASS_CREATOR(MgPortNotAvailableException)
-    EXCEPTION_CLASS_CREATOR(MgPrintToScaleModeNotSelectedException)
-    EXCEPTION_CLASS_CREATOR(MgRasterTransformationNotSupportedException)
-    EXCEPTION_CLASS_CREATOR(MgRepositoryCreationFailedException)
-    EXCEPTION_CLASS_CREATOR(MgRepositoryNotFoundException)
-    EXCEPTION_CLASS_CREATOR(MgRepositoryNotOpenException)
-    EXCEPTION_CLASS_CREATOR(MgRepositoryOpenFailedException)
-    EXCEPTION_CLASS_CREATOR(MgRoleNotFoundException)
-    EXCEPTION_CLASS_CREATOR(MgServerNotFoundException)
-    EXCEPTION_CLASS_CREATOR(MgServerNotOnlineException)
-    EXCEPTION_CLASS_CREATOR(MgSessionExpiredException)
-    EXCEPTION_CLASS_CREATOR(MgSessionNotFoundException)
-    EXCEPTION_CLASS_CREATOR(MgUnauthorizedAccessException)
-    EXCEPTION_CLASS_CREATOR(MgUnknownTileProviderException)
-    EXCEPTION_CLASS_CREATOR(MgUnsupportedTileProviderException)
-    EXCEPTION_CLASS_CREATOR(MgUnsupportedProviderThreadModelException)
-    EXCEPTION_CLASS_CREATOR(MgUriFormatException)
 
     fact->Register(MapGuide_MapLayer_Map, MgMap::CreateObject);
     fact->Register(MapGuide_MapLayer_Layer, MgLayer::CreateObject);

Modified: sandbox/jng/flatten_exceptions/Common/MapGuideCommon/System/UserInformation.cpp
===================================================================
--- sandbox/jng/flatten_exceptions/Common/MapGuideCommon/System/UserInformation.cpp	2020-10-21 11:05:48 UTC (rev 9745)
+++ sandbox/jng/flatten_exceptions/Common/MapGuideCommon/System/UserInformation.cpp	2020-10-21 11:21:38 UTC (rev 9746)
@@ -224,7 +224,7 @@
     // the locale can be either in the form "en" or "en-US"
     if (MG_LOCALE_LENGTH != locale.length() && MG_EXTENDED_LOCALE_LENGTH != locale.length())
     {
-        throw new MgLengthException(L"MgUserInformation.SetLocale",
+        throw new MgException(MgExceptionCodes::MgLengthException, L"MgUserInformation.SetLocale",
             __LINE__, __WFILE__, NULL, L"", NULL);
     }
 
@@ -233,7 +233,7 @@
         size_t dashChar = locale.find(L"-");
         if (ExtendedLocaleDashLocation != dashChar)
         {
-            throw new MgLengthException(L"MgUserInformation.SetLocale",
+            throw new MgException(MgExceptionCodes::MgLengthException, L"MgUserInformation.SetLocale",
                 __LINE__, __WFILE__, NULL, L"", NULL);
         }
         else
@@ -425,7 +425,7 @@
     if (NULL == userInfo)
     {
         // No user information should mean that we have opened the connection to the site server yet.
-        throw new MgConnectionNotOpenException(L"MgSiteConnection.GetCurrentUserInfo", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgException(MgExceptionCodes::MgConnectionNotOpenException, L"MgSiteConnection.GetCurrentUserInfo", __LINE__, __WFILE__, NULL, L"", NULL);
     }
 
     SAFE_ADDREF(userInfo);

Modified: sandbox/jng/flatten_exceptions/Common/MapGuideCommon/Util/IpUtil.cpp
===================================================================
--- sandbox/jng/flatten_exceptions/Common/MapGuideCommon/Util/IpUtil.cpp	2020-10-21 11:05:48 UTC (rev 9745)
+++ sandbox/jng/flatten_exceptions/Common/MapGuideCommon/Util/IpUtil.cpp	2020-10-21 11:21:38 UTC (rev 9746)
@@ -98,7 +98,7 @@
             MgStringCollection arguments;
             arguments.Add(address);
 
-            throw new MgInvalidIpAddressException(L"MgIpUtil.IsIpv4Address",
+            throw new MgException(MgExceptionCodes::MgInvalidIpAddressException, L"MgIpUtil.IsIpv4Address",
                 __LINE__, __WFILE__, &arguments, L"", NULL);
         }
 
@@ -232,7 +232,7 @@
                 MgStringCollection arguments;
                 arguments.Add(address);
 
-                throw new MgInvalidIpAddressException(L"MgIpUtil.IsIpv6Address",
+                throw new MgException(MgExceptionCodes::MgInvalidIpAddressException, L"MgIpUtil.IsIpv6Address",
                     __LINE__, __WFILE__, &arguments, L"", NULL);
             }
 
@@ -350,7 +350,7 @@
 
     if (localHostName.empty())
     {
-        throw new MgDomainException(L"MgIpUtil.GetLocalHostName",
+        throw new MgException(MgExceptionCodes::MgDomainException, L"MgIpUtil.GetLocalHostName",
             __LINE__, __WFILE__, NULL, L"", NULL);
     }
 
@@ -410,7 +410,7 @@
             MgStringCollection arguments;
             arguments.Add(address);
 
-            throw new MgInvalidIpAddressException(L"MgIpUtil.ValidateAddress",
+            throw new MgException(MgExceptionCodes::MgInvalidIpAddressException, L"MgIpUtil.ValidateAddress",
                 __LINE__, __WFILE__, &arguments, L"", NULL);
         }
     }
@@ -501,7 +501,7 @@
             MgStringCollection arguments;
             arguments.Add(name);
 
-            throw new MgInvalidIpAddressException(L"MgIpUtil.HostNameToAddress",
+            throw new MgException(MgExceptionCodes::MgInvalidIpAddressException, L"MgIpUtil.HostNameToAddress",
                 __LINE__, __WFILE__, &arguments, L"", NULL);
         }
         else
@@ -588,7 +588,7 @@
             MgStringCollection arguments;
             arguments.Add(address);
 
-            throw new MgInvalidIpAddressException(L"MgIpUtil.HostAddressToName",
+            throw new MgException(MgExceptionCodes::MgInvalidIpAddressException, L"MgIpUtil.HostAddressToName",
                 __LINE__, __WFILE__, &arguments, L"", NULL);
         }
         else

Modified: sandbox/jng/flatten_exceptions/Common/MapGuideCommon/Util/TimerUtil.cpp
===================================================================
--- sandbox/jng/flatten_exceptions/Common/MapGuideCommon/Util/TimerUtil.cpp	2020-10-21 11:05:48 UTC (rev 9745)
+++ sandbox/jng/flatten_exceptions/Common/MapGuideCommon/Util/TimerUtil.cpp	2020-10-21 11:21:38 UTC (rev 9746)
@@ -77,6 +77,6 @@
 void MgTimerUtil::GetFrequency(LARGE_INTEGER* pFrequency)
 {
     if(!QueryPerformanceFrequency(pFrequency))
-        throw new MgUnclassifiedException(L"MgTimerUtil.GetFrequency", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgException(MgExceptionCodes::MgUnclassifiedException, L"MgTimerUtil.GetFrequency", __LINE__, __WFILE__, NULL, L"", NULL);
 }
 #endif

Modified: sandbox/jng/flatten_exceptions/Common/PlatformBase/Services/FeatureService.h
===================================================================
--- sandbox/jng/flatten_exceptions/Common/PlatformBase/Services/FeatureService.h	2020-10-21 11:05:48 UTC (rev 9745)
+++ sandbox/jng/flatten_exceptions/Common/PlatformBase/Services/FeatureService.h	2020-10-21 11:21:38 UTC (rev 9746)
@@ -2326,7 +2326,7 @@
 #define MG_CHECK_FEATURE_SET_COUNT(pointer, methodname)                       \
 if (0 == pointer->GetCount())                                                 \
 {                                                                             \
-    throw new MgEmptyFeatureSetException(methodname,                          \
+    throw new MgException(MgExceptionCodes::MgEmptyFeatureSetException, methodname,                          \
         __LINE__, __WFILE__, NULL, L"", NULL);                                \
 }
 
@@ -2333,7 +2333,7 @@
 #define MG_CHECK_PROPERTY_TYPE(property, type, methodname)                    \
 if (property != type)                                                         \
 {                                                                             \
-    throw new MgInvalidPropertyTypeException(methodname,                      \
+    throw new MgException(MgExceptionCodes::MgInvalidPropertyTypeException, methodname,                      \
         __LINE__, __WFILE__, NULL, L"", NULL);                                \
 }
 ///\endcond



More information about the mapguide-commits mailing list