[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mapguide-commits
Subject:    [mapguide-commits] r9971 - in trunk/MgDev: . Common/CoordinateSystem Common/Foundation Common/Founda
From:       svn_mapguide () osgeo ! org
Date:       2022-10-10 9:40:20
Message-ID: 20221010094022.4CFB0126AF6 () trac ! osgeo ! org
[Download RAW message or body]

Author: jng
Date: 2022-10-10 02:40:18 -0700 (Mon, 10 Oct 2022)
New Revision: 9971

Added:
   trunk/MgDev/Common/Foundation/Exception/ExceptionCodes.cpp
   trunk/MgDev/Common/Foundation/Exception/ExceptionCodes.h
   trunk/MgDev/Desktop/MgDesktop/System/ExceptionCodes.cpp
   trunk/MgDev/Desktop/MgDesktop/System/ExceptionCodes.h
Removed:
   trunk/MgDev/Common/Foundation/Exception/ApplicationException.cpp
   trunk/MgDev/Common/Foundation/Exception/ApplicationException.h
   trunk/MgDev/Common/Foundation/Exception/ArgumentOutOfRangeException.cpp
   trunk/MgDev/Common/Foundation/Exception/ArgumentOutOfRangeException.h
   trunk/MgDev/Common/Foundation/Exception/ClassNotFoundException.cpp
   trunk/MgDev/Common/Foundation/Exception/ClassNotFoundException.h
   trunk/MgDev/Common/Foundation/Exception/ConfigurationException.cpp
   trunk/MgDev/Common/Foundation/Exception/ConfigurationException.h
   trunk/MgDev/Common/Foundation/Exception/ConfigurationLoadFailedException.cpp
   trunk/MgDev/Common/Foundation/Exception/ConfigurationLoadFailedException.h
   trunk/MgDev/Common/Foundation/Exception/ConfigurationSaveFailedException.cpp
   trunk/MgDev/Common/Foundation/Exception/ConfigurationSaveFailedException.h
   trunk/MgDev/Common/Foundation/Exception/DateTimeException.cpp
   trunk/MgDev/Common/Foundation/Exception/DateTimeException.h
   trunk/MgDev/Common/Foundation/Exception/DecryptionException.cpp
   trunk/MgDev/Common/Foundation/Exception/DecryptionException.h
   trunk/MgDev/Common/Foundation/Exception/DirectoryNotFoundException.cpp
   trunk/MgDev/Common/Foundation/Exception/DirectoryNotFoundException.h
   trunk/MgDev/Common/Foundation/Exception/DivideByZeroException.cpp
   trunk/MgDev/Common/Foundation/Exception/DivideByZeroException.h
   trunk/MgDev/Common/Foundation/Exception/DomainException.cpp
   trunk/MgDev/Common/Foundation/Exception/DomainException.h
   trunk/MgDev/Common/Foundation/Exception/DuplicateDirectoryException.cpp
   trunk/MgDev/Common/Foundation/Exception/DuplicateDirectoryException.h
   trunk/MgDev/Common/Foundation/Exception/DuplicateFileException.cpp
   trunk/MgDev/Common/Foundation/Exception/DuplicateFileException.h
   trunk/MgDev/Common/Foundation/Exception/DuplicateObjectException.cpp
   trunk/MgDev/Common/Foundation/Exception/DuplicateObjectException.h
   trunk/MgDev/Common/Foundation/Exception/EncryptionException.cpp
   trunk/MgDev/Common/Foundation/Exception/EncryptionException.h
   trunk/MgDev/Common/Foundation/Exception/FileIoException.cpp
   trunk/MgDev/Common/Foundation/Exception/FileIoException.h
   trunk/MgDev/Common/Foundation/Exception/FileNotFoundException.cpp
   trunk/MgDev/Common/Foundation/Exception/FileNotFoundException.h
   trunk/MgDev/Common/Foundation/Exception/GridDensityException.cpp
   trunk/MgDev/Common/Foundation/Exception/GridDensityException.h
   trunk/MgDev/Common/Foundation/Exception/IndexOutOfRangeException.cpp
   trunk/MgDev/Common/Foundation/Exception/IndexOutOfRangeException.h
   trunk/MgDev/Common/Foundation/Exception/InvalidArgumentException.cpp
   trunk/MgDev/Common/Foundation/Exception/InvalidArgumentException.h
   trunk/MgDev/Common/Foundation/Exception/InvalidCastException.cpp
   trunk/MgDev/Common/Foundation/Exception/InvalidCastException.h
   trunk/MgDev/Common/Foundation/Exception/InvalidMimeTypeException.cpp
   trunk/MgDev/Common/Foundation/Exception/InvalidMimeTypeException.h
   trunk/MgDev/Common/Foundation/Exception/InvalidOperationException.cpp
   trunk/MgDev/Common/Foundation/Exception/InvalidOperationException.h
   trunk/MgDev/Common/Foundation/Exception/InvalidPropertyTypeException.cpp
   trunk/MgDev/Common/Foundation/Exception/InvalidPropertyTypeException.h
   trunk/MgDev/Common/Foundation/Exception/InvalidStreamHeaderException.cpp
   trunk/MgDev/Common/Foundation/Exception/InvalidStreamHeaderException.h
   trunk/MgDev/Common/Foundation/Exception/IoException.cpp
   trunk/MgDev/Common/Foundation/Exception/IoException.h
   trunk/MgDev/Common/Foundation/Exception/LengthException.cpp
   trunk/MgDev/Common/Foundation/Exception/LengthException.h
   trunk/MgDev/Common/Foundation/Exception/LogicException.cpp
   trunk/MgDev/Common/Foundation/Exception/LogicException.h
   trunk/MgDev/Common/Foundation/Exception/NotFiniteNumberException.cpp
   trunk/MgDev/Common/Foundation/Exception/NotFiniteNumberException.h
   trunk/MgDev/Common/Foundation/Exception/NotImplementedException.cpp
   trunk/MgDev/Common/Foundation/Exception/NotImplementedException.h
   trunk/MgDev/Common/Foundation/Exception/NullArgumentException.cpp
   trunk/MgDev/Common/Foundation/Exception/NullArgumentException.h
   trunk/MgDev/Common/Foundation/Exception/NullPropertyValueException.cpp
   trunk/MgDev/Common/Foundation/Exception/NullPropertyValueException.h
   trunk/MgDev/Common/Foundation/Exception/NullReferenceException.cpp
   trunk/MgDev/Common/Foundation/Exception/NullReferenceException.h
   trunk/MgDev/Common/Foundation/Exception/ObjectNotFoundException.cpp
   trunk/MgDev/Common/Foundation/Exception/ObjectNotFoundException.h
   trunk/MgDev/Common/Foundation/Exception/OutOfMemoryException.cpp
   trunk/MgDev/Common/Foundation/Exception/OutOfMemoryException.h
   trunk/MgDev/Common/Foundation/Exception/OutOfRangeException.cpp
   trunk/MgDev/Common/Foundation/Exception/OutOfRangeException.h
   trunk/MgDev/Common/Foundation/Exception/OverflowException.cpp
   trunk/MgDev/Common/Foundation/Exception/OverflowException.h
   trunk/MgDev/Common/Foundation/Exception/PlatformNotSupportedException.cpp
   trunk/MgDev/Common/Foundation/Exception/PlatformNotSupportedException.h
   trunk/MgDev/Common/Foundation/Exception/ResourceTagNotFoundException.cpp
   trunk/MgDev/Common/Foundation/Exception/ResourceTagNotFoundException.h
   trunk/MgDev/Common/Foundation/Exception/ResourcesException.cpp
   trunk/MgDev/Common/Foundation/Exception/ResourcesException.h
   trunk/MgDev/Common/Foundation/Exception/ResourcesLoadFailedException.cpp
   trunk/MgDev/Common/Foundation/Exception/ResourcesLoadFailedException.h
   trunk/MgDev/Common/Foundation/Exception/RuntimeException.cpp
   trunk/MgDev/Common/Foundation/Exception/RuntimeException.h
   trunk/MgDev/Common/Foundation/Exception/StreamIoException.cpp
   trunk/MgDev/Common/Foundation/Exception/StreamIoException.h
   trunk/MgDev/Common/Foundation/Exception/SystemException.cpp
   trunk/MgDev/Common/Foundation/Exception/SystemException.h
   trunk/MgDev/Common/Foundation/Exception/TemporaryFileNotAvailableException.cpp
   trunk/MgDev/Common/Foundation/Exception/TemporaryFileNotAvailableException.h
   trunk/MgDev/Common/Foundation/Exception/ThirdPartyException.cpp
   trunk/MgDev/Common/Foundation/Exception/ThirdPartyException.h
   trunk/MgDev/Common/Foundation/Exception/UnclassifiedException.cpp
   trunk/MgDev/Common/Foundation/Exception/UnclassifiedException.h
   trunk/MgDev/Common/Foundation/Exception/UnderflowException.cpp
   trunk/MgDev/Common/Foundation/Exception/UnderflowException.h
   trunk/MgDev/Common/Foundation/Exception/XmlException.cpp
   trunk/MgDev/Common/Foundation/Exception/XmlException.h
   trunk/MgDev/Common/Foundation/Exception/XmlParserException.cpp
   trunk/MgDev/Common/Foundation/Exception/XmlParserException.h
   trunk/MgDev/Common/Geometry/Exception/CoordinateSystemComputationFailedException.cpp
  trunk/MgDev/Common/Geometry/Exception/CoordinateSystemComputationFailedException.h
   trunk/MgDev/Common/Geometry/Exception/CoordinateSystemConversionFailedException.cpp
  trunk/MgDev/Common/Geometry/Exception/CoordinateSystemConversionFailedException.h
   trunk/MgDev/Common/Geometry/Exception/CoordinateSystemInitializationFailedException.cpp
  trunk/MgDev/Common/Geometry/Exception/CoordinateSystemInitializationFailedException.h
  trunk/MgDev/Common/Geometry/Exception/CoordinateSystemLoadFailedException.cpp
   trunk/MgDev/Common/Geometry/Exception/CoordinateSystemLoadFailedException.h
   trunk/MgDev/Common/Geometry/Exception/CoordinateSystemMeasureFailedException.cpp
   trunk/MgDev/Common/Geometry/Exception/CoordinateSystemMeasureFailedException.h
   trunk/MgDev/Common/Geometry/Exception/CoordinateSystemTransformFailedException.cpp
   trunk/MgDev/Common/Geometry/Exception/CoordinateSystemTransformFailedException.h
   trunk/MgDev/Common/Geometry/Exception/GeometryException.cpp
   trunk/MgDev/Common/Geometry/Exception/GeometryException.h
   trunk/MgDev/Common/Geometry/Exception/InvalidCoordinateSystemException.cpp
   trunk/MgDev/Common/Geometry/Exception/InvalidCoordinateSystemException.h
   trunk/MgDev/Common/Geometry/Exception/InvalidCoordinateSystemTypeException.cpp
   trunk/MgDev/Common/Geometry/Exception/InvalidCoordinateSystemTypeException.h
   trunk/MgDev/Common/Geometry/Exception/InvalidCoordinateSystemUnitsException.cpp
   trunk/MgDev/Common/Geometry/Exception/InvalidCoordinateSystemUnitsException.h
   trunk/MgDev/Common/MapGuideCommon/Exception/
   trunk/MgDev/Common/PlatformBase/Exception/
   trunk/MgDev/Desktop/MgDesktop/Exception/
Modified:
   trunk/MgDev/
   trunk/MgDev/Common/CoordinateSystem/CoordSys.cpp
   trunk/MgDev/Common/CoordinateSystem/CoordSysCatalog.cpp
   trunk/MgDev/Common/CoordinateSystem/CoordSysCategory.cpp
   trunk/MgDev/Common/CoordinateSystem/CoordSysCategoryDictionary.cpp
   trunk/MgDev/Common/CoordinateSystem/CoordSysDatum.cpp
   trunk/MgDev/Common/CoordinateSystem/CoordSysDatumDictionary.cpp
   trunk/MgDev/Common/CoordinateSystem/CoordSysDictionary.cpp
   trunk/MgDev/Common/CoordinateSystem/CoordSysDictionaryBase.cpp
   trunk/MgDev/Common/CoordinateSystem/CoordSysDictionaryUtility.cpp
   trunk/MgDev/Common/CoordinateSystem/CoordSysEllipsoid.cpp
   trunk/MgDev/Common/CoordinateSystem/CoordSysEllipsoidDictionary.cpp
   trunk/MgDev/Common/CoordinateSystem/CoordSysEnum.cpp
   trunk/MgDev/Common/CoordinateSystem/CoordSysEnumCategory.cpp
   trunk/MgDev/Common/CoordinateSystem/CoordSysEnumCoordinateSystemInCategory.cpp
   trunk/MgDev/Common/CoordinateSystem/CoordSysEnumDatum.cpp
   trunk/MgDev/Common/CoordinateSystem/CoordSysEnumEllipsoid.cpp
   trunk/MgDev/Common/CoordinateSystem/CoordSysEnumInteger32.cpp
   trunk/MgDev/Common/CoordinateSystem/CoordSysFormatConverter.cpp
   trunk/MgDev/Common/CoordinateSystem/CoordSysGeodeticAnalyticalTransformDefParams.cpp
  trunk/MgDev/Common/CoordinateSystem/CoordSysGeodeticInterpolationTransformDefParams.cpp
  trunk/MgDev/Common/CoordinateSystem/CoordSysGeodeticMultipleRegressionTransformDefParams.cpp
  trunk/MgDev/Common/CoordinateSystem/CoordSysGeodeticPath.cpp
   trunk/MgDev/Common/CoordinateSystem/CoordSysGeodeticPathDictionary.cpp
   trunk/MgDev/Common/CoordinateSystem/CoordSysGeodeticPathElement.cpp
   trunk/MgDev/Common/CoordinateSystem/CoordSysGeodeticStandaloneTransformDefParams.cpp
  trunk/MgDev/Common/CoordinateSystem/CoordSysGeodeticTransformDef.cpp
   trunk/MgDev/Common/CoordinateSystem/CoordSysGeodeticTransformDefDictionary.cpp
   trunk/MgDev/Common/CoordinateSystem/CoordSysGeodeticTransformGridFile.cpp
   trunk/MgDev/Common/CoordinateSystem/CoordSysGeodeticTransformation.cpp
   trunk/MgDev/Common/CoordinateSystem/CoordSysGrids.cpp
   trunk/MgDev/Common/CoordinateSystem/CoordSysMacro.h
   trunk/MgDev/Common/CoordinateSystem/CoordSysMeasure.cpp
   trunk/MgDev/Common/CoordinateSystem/CoordSysMgrs.cpp
   trunk/MgDev/Common/CoordinateSystem/CoordSysProjectionInformation.cpp
   trunk/MgDev/Common/CoordinateSystem/CoordSysTransform.cpp
   trunk/MgDev/Common/CoordinateSystem/CoordSysUnitInformation.cpp
   trunk/MgDev/Common/CoordinateSystem/CoordSysUtil.cpp
   trunk/MgDev/Common/CoordinateSystem/MentorDictionary.cpp
   trunk/MgDev/Common/CoordinateSystem/MentorDictionary.h
   trunk/MgDev/Common/CoordinateSystem/MentorUtil.cpp
   trunk/MgDev/Common/Foundation/Data/Byte.cpp
   trunk/MgDev/Common/Foundation/Data/ByteSink.cpp
   trunk/MgDev/Common/Foundation/Data/ByteSource.cpp
   trunk/MgDev/Common/Foundation/Data/DateTime.cpp
   trunk/MgDev/Common/Foundation/Data/NamedCollection.cpp
   trunk/MgDev/Common/Foundation/Data/NullableProperty.cpp
   trunk/MgDev/Common/Foundation/Data/Property.cpp
   trunk/MgDev/Common/Foundation/Data/PropertyDefinition.cpp
   trunk/MgDev/Common/Foundation/Data/StringCollection.cpp
   trunk/MgDev/Common/Foundation/Exception/Exception.cpp
   trunk/MgDev/Common/Foundation/Exception/Exception.h
   trunk/MgDev/Common/Foundation/Exception/ExceptionDefs.h
   trunk/MgDev/Common/Foundation/Foundation.h
   trunk/MgDev/Common/Foundation/Foundation.vcxproj
   trunk/MgDev/Common/Foundation/Foundation.vcxproj.filters
   trunk/MgDev/Common/Foundation/FoundationBuild.cpp
   trunk/MgDev/Common/Foundation/System/ByteSourceFileImpl.cpp
   trunk/MgDev/Common/Foundation/System/ByteSourceMemoryImpl.cpp
   trunk/MgDev/Common/Foundation/System/ByteSourceSocketStreamImpl.cpp
   trunk/MgDev/Common/Foundation/System/ByteSourceStreamImpl.cpp
   trunk/MgDev/Common/Foundation/System/ClassFactory.cpp
   trunk/MgDev/Common/Foundation/System/Configuration.cpp
   trunk/MgDev/Common/Foundation/System/ConfigurationHeap.cpp
   trunk/MgDev/Common/Foundation/System/Disposable.cpp
   trunk/MgDev/Common/Foundation/System/DisposableCollection.cpp
   trunk/MgDev/Common/Foundation/System/FileUtil.cpp
   trunk/MgDev/Common/Foundation/System/FoundationClassId.h
   trunk/MgDev/Common/Foundation/System/GuardDisposable.cpp
   trunk/MgDev/Common/Foundation/System/MemoryStreamHelper.cpp
   trunk/MgDev/Common/Foundation/System/Resources.cpp
   trunk/MgDev/Common/Foundation/System/StreamHelper.cpp
   trunk/MgDev/Common/Foundation/System/StreamParser.cpp
   trunk/MgDev/Common/Foundation/System/StreamReader.cpp
   trunk/MgDev/Common/Foundation/System/StreamWriter.cpp
   trunk/MgDev/Common/Foundation/System/Util.cpp
   trunk/MgDev/Common/Foundation/System/Util.h
   trunk/MgDev/Common/Foundation/System/XmlDefs.h
   trunk/MgDev/Common/Foundation/System/XmlUtil.cpp
   trunk/MgDev/Common/Geometry/AgfStream.cpp
   trunk/MgDev/Common/Geometry/ArcSegment.cpp
   trunk/MgDev/Common/Geometry/Buffer/MgBuffer.cpp
   trunk/MgDev/Common/Geometry/Buffer/oobject.cpp
   trunk/MgDev/Common/Geometry/CoordinateSystem/CoordinateSystemFactory.cpp
   trunk/MgDev/Common/Geometry/CurvePolygon.cpp
   trunk/MgDev/Common/Geometry/CurveRing.cpp
   trunk/MgDev/Common/Geometry/CurveString.cpp
   trunk/MgDev/Common/Geometry/Envelope.cpp
   trunk/MgDev/Common/Geometry/GeometricEntity.cpp
   trunk/MgDev/Common/Geometry/Geometry.cpp
   trunk/MgDev/Common/Geometry/Geometry.vcxproj
   trunk/MgDev/Common/Geometry/Geometry.vcxproj.filters
   trunk/MgDev/Common/Geometry/GeometryBuild.cpp
   trunk/MgDev/Common/Geometry/GeometryClassFactory.cpp
   trunk/MgDev/Common/Geometry/GeometryClassId.h
   trunk/MgDev/Common/Geometry/GeometryCommon.h
   trunk/MgDev/Common/Geometry/GeometrySimplifier.cpp
   trunk/MgDev/Common/Geometry/LineString.cpp
   trunk/MgDev/Common/Geometry/LinearRing.cpp
   trunk/MgDev/Common/Geometry/LinearSegment.cpp
   trunk/MgDev/Common/Geometry/Parse/Array.h
   trunk/MgDev/Common/Geometry/Parse/ArrayHelper.cpp
   trunk/MgDev/Common/Geometry/Parse/LexAwkt.cpp
   trunk/MgDev/Common/Geometry/Parse/ParseAwkt.cpp
   trunk/MgDev/Common/Geometry/Polygon.cpp
   trunk/MgDev/Common/Geometry/Spatial/MathUtility.cpp
   trunk/MgDev/Common/Geometry/Spatial/SpatialUtility.cpp
   trunk/MgDev/Common/Geometry/Spatial/SpatialUtilityCircularArc.cpp
   trunk/MgDev/Common/MapGuideCommon/Controller/Controller.cpp
   trunk/MgDev/Common/MapGuideCommon/Controller/DwfController.cpp
   trunk/MgDev/Common/MapGuideCommon/Controller/HtmlController.cpp
   trunk/MgDev/Common/MapGuideCommon/MapGuideCommon.h
   trunk/MgDev/Common/MapGuideCommon/MapGuideCommon.vcxproj
   trunk/MgDev/Common/MapGuideCommon/MapGuideCommon.vcxproj.filters
   trunk/MgDev/Common/MapGuideCommon/MapGuideCommonBuild.cpp
   trunk/MgDev/Common/MapGuideCommon/MapLayer/Layer.cpp
   trunk/MgDev/Common/MapGuideCommon/MapLayer/Map.cpp
   trunk/MgDev/Common/MapGuideCommon/MapLayer/Selection.cpp
   trunk/MgDev/Common/MapGuideCommon/Services/Command.cpp
   trunk/MgDev/Common/MapGuideCommon/Services/MapPlot.cpp
   trunk/MgDev/Common/MapGuideCommon/Services/PackageStatusInformation.cpp
   trunk/MgDev/Common/MapGuideCommon/Services/PrintLayout.cpp
   trunk/MgDev/Common/MapGuideCommon/Services/ProxyDataReader.cpp
   trunk/MgDev/Common/MapGuideCommon/Services/ProxyFeatureReader.cpp
   trunk/MgDev/Common/MapGuideCommon/Services/ProxyFeatureService.cpp
   trunk/MgDev/Common/MapGuideCommon/Services/ProxyGwsFeatureReader.cpp
   trunk/MgDev/Common/MapGuideCommon/Services/ProxySqlDataReader.cpp
   trunk/MgDev/Common/MapGuideCommon/Services/ServerConnection.cpp
   trunk/MgDev/Common/MapGuideCommon/Services/ServerConnectionStack.cpp
   trunk/MgDev/Common/MapGuideCommon/Services/ServerInformation.cpp
   trunk/MgDev/Common/MapGuideCommon/Services/Site.h
   trunk/MgDev/Common/MapGuideCommon/Services/SiteConnection.cpp
   trunk/MgDev/Common/MapGuideCommon/Services/SiteManager.cpp
   trunk/MgDev/Common/MapGuideCommon/System/CryptographyManager.h
   trunk/MgDev/Common/MapGuideCommon/System/MapGuideCommonClassId.h
   trunk/MgDev/Common/MapGuideCommon/System/MapGuideCommonFactory.cpp
   trunk/MgDev/Common/MapGuideCommon/System/UserInformation.cpp
   trunk/MgDev/Common/MapGuideCommon/Util/IpUtil.cpp
   trunk/MgDev/Common/MapGuideCommon/Util/TimerUtil.cpp
   trunk/MgDev/Common/PlatformBase/Data/IntCollection.cpp
   trunk/MgDev/Common/PlatformBase/Data/SerializableCollection.cpp
   trunk/MgDev/Common/PlatformBase/MapLayer/ChangeList.cpp
   trunk/MgDev/Common/PlatformBase/MapLayer/LayerBase.cpp
   trunk/MgDev/Common/PlatformBase/MapLayer/MapBase.cpp
   trunk/MgDev/Common/PlatformBase/MapLayer/SelectionBase.cpp
   trunk/MgDev/Common/PlatformBase/MapLayer/Watermark.cpp
   trunk/MgDev/Common/PlatformBase/PlatformBase.h
   trunk/MgDev/Common/PlatformBase/PlatformBase.vcxproj
   trunk/MgDev/Common/PlatformBase/PlatformBase.vcxproj.filters
   trunk/MgDev/Common/PlatformBase/PlatformBaseBuild.cpp
   trunk/MgDev/Common/PlatformBase/Services/ClassDefinitionCollection.cpp
   trunk/MgDev/Common/PlatformBase/Services/DataPropertyDefinition.cpp
   trunk/MgDev/Common/PlatformBase/Services/DeleteFeatures.cpp
   trunk/MgDev/Common/PlatformBase/Services/FeatureCommandType.h
   trunk/MgDev/Common/PlatformBase/Services/FeatureQueryOptions.cpp
   trunk/MgDev/Common/PlatformBase/Services/FeatureSchema.cpp
   trunk/MgDev/Common/PlatformBase/Services/FeatureSchemaCollection.cpp
   trunk/MgDev/Common/PlatformBase/Services/FeatureService.cpp
   trunk/MgDev/Common/PlatformBase/Services/FeatureService.h
   trunk/MgDev/Common/PlatformBase/Services/FeatureSpatialOperations.h
   trunk/MgDev/Common/PlatformBase/Services/GeometryTypeInfo.cpp
   trunk/MgDev/Common/PlatformBase/Services/InsertFeatures.cpp
   trunk/MgDev/Common/PlatformBase/Services/LockFeatures.cpp
   trunk/MgDev/Common/PlatformBase/Services/ObjectPropertyType.h
   trunk/MgDev/Common/PlatformBase/Services/OrderingOption.h
   trunk/MgDev/Common/PlatformBase/Services/Parameter.cpp
   trunk/MgDev/Common/PlatformBase/Services/ParameterCollection.cpp
   trunk/MgDev/Common/PlatformBase/Services/PlatformBaseClassId.h
   trunk/MgDev/Common/PlatformBase/Services/PrintLayoutService/MapViewportBase.cpp
   trunk/MgDev/Common/PlatformBase/Services/PrintLayoutService/PrintLayoutBase.cpp
   trunk/MgDev/Common/PlatformBase/Services/PrintLayoutService/PrintLayoutElementBase.cpp
  trunk/MgDev/Common/PlatformBase/Services/PrintLayoutService/PrintLayoutElementCollection.cpp
  trunk/MgDev/Common/PlatformBase/Services/PrintLayoutService/PrintLayoutServiceBase.cpp
  trunk/MgDev/Common/PlatformBase/Services/PrintLayoutService/PropertyMappingCollection.cpp
  trunk/MgDev/Common/PlatformBase/Services/Raster.cpp
   trunk/MgDev/Common/PlatformBase/Services/ReaderType.h
   trunk/MgDev/Common/PlatformBase/Services/ResourceIdentifier.cpp
   trunk/MgDev/Common/PlatformBase/Services/ResourceService.cpp
   trunk/MgDev/Common/PlatformBase/Services/Service.cpp
   trunk/MgDev/Common/PlatformBase/Services/ServiceRegistry.cpp
   trunk/MgDev/Common/PlatformBase/Services/SpatialContextExtentType.h
   trunk/MgDev/Common/PlatformBase/Services/UnlockFeatures.cpp
   trunk/MgDev/Common/PlatformBase/Services/UpdateFeatures.cpp
   trunk/MgDev/Desktop/
   trunk/MgDev/Desktop/DesktopUnmanagedApi/DotNet/MapGuideDesktopApiGen.xml
   trunk/MgDev/Desktop/DesktopUnmanagedApi/DotNet/MapGuideDesktopConstants.xml
   trunk/MgDev/Desktop/DesktopUnmanagedApi/JavaApiEx/catchall.code
   trunk/MgDev/Desktop/DesktopUnmanagedApi/MapGuideApi/Constants.xml
   trunk/MgDev/Desktop/DesktopUnmanagedApi/MapGuideApi/MapGuideApiGen.xml
   trunk/MgDev/Desktop/DesktopUnmanagedApi/catchall.code
   trunk/MgDev/Desktop/MgDesktop/Log/LogManager.cpp
   trunk/MgDev/Desktop/MgDesktop/Log/LogThread.cpp
   trunk/MgDev/Desktop/MgDesktop/MapLayer/Layer.cpp
   trunk/MgDev/Desktop/MgDesktop/MapLayer/Layer.h
   trunk/MgDev/Desktop/MgDesktop/MapLayer/Map.cpp
   trunk/MgDev/Desktop/MgDesktop/MapLayer/Map.h
   trunk/MgDev/Desktop/MgDesktop/MapLayer/Selection.h
   trunk/MgDev/Desktop/MgDesktop/MgDesktop.h
   trunk/MgDev/Desktop/MgDesktop/MgDesktop.vcxproj
   trunk/MgDev/Desktop/MgDesktop/MgDesktop.vcxproj.filters
   trunk/MgDev/Desktop/MgDesktop/MgDesktopBuild.cpp
   trunk/MgDev/Desktop/MgDesktop/Services/ByteSourceRasterStreamImpl.cpp
   trunk/MgDev/Desktop/MgDesktop/Services/CryptoDefs.h
   trunk/MgDev/Desktop/MgDesktop/Services/DataReader.cpp
   trunk/MgDev/Desktop/MgDesktop/Services/DataReader.h
   trunk/MgDev/Desktop/MgDesktop/Services/Drawing/DrawingDefs.h
   trunk/MgDev/Desktop/MgDesktop/Services/Drawing/DrawingServiceUtil.cpp
   trunk/MgDev/Desktop/MgDesktop/Services/Drawing/DrawingServiceUtil.h
   trunk/MgDev/Desktop/MgDesktop/Services/DrawingService.cpp
   trunk/MgDev/Desktop/MgDesktop/Services/DrawingService.h
   trunk/MgDev/Desktop/MgDesktop/Services/Feature/Commands/ApplySchema.cpp
   trunk/MgDev/Desktop/MgDesktop/Services/Feature/Commands/CreateFeatureSource.cpp
   trunk/MgDev/Desktop/MgDesktop/Services/Feature/Commands/CreateFeatureSource.h
   trunk/MgDev/Desktop/MgDesktop/Services/Feature/Commands/DescribeSchema.cpp
   trunk/MgDev/Desktop/MgDesktop/Services/Feature/Commands/EnumerateDataStores.cpp
   trunk/MgDev/Desktop/MgDesktop/Services/Feature/Commands/ExtendedSelectCommand.cpp
   trunk/MgDev/Desktop/MgDesktop/Services/Feature/Commands/ExtendedSelectCommand.h
   trunk/MgDev/Desktop/MgDesktop/Services/Feature/Commands/FeatureManipulationCommand.cpp
  trunk/MgDev/Desktop/MgDesktop/Services/Feature/Commands/GetConnectionPropertyValues.cpp
  trunk/MgDev/Desktop/MgDesktop/Services/Feature/Commands/GetLongTransactions.cpp
   trunk/MgDev/Desktop/MgDesktop/Services/Feature/Commands/GetProviderCapabilities.cpp
  trunk/MgDev/Desktop/MgDesktop/Services/Feature/Commands/GetSchemaMapping.cpp
   trunk/MgDev/Desktop/MgDesktop/Services/Feature/Commands/GetSpatialContexts.cpp
   trunk/MgDev/Desktop/MgDesktop/Services/Feature/Commands/InsertCommand.cpp
   trunk/MgDev/Desktop/MgDesktop/Services/Feature/Commands/SelectAggregateCommand.cpp
   trunk/MgDev/Desktop/MgDesktop/Services/Feature/Commands/SelectCommand.cpp
   trunk/MgDev/Desktop/MgDesktop/Services/Feature/Commands/SelectFeatures.cpp
   trunk/MgDev/Desktop/MgDesktop/Services/Feature/Commands/SqlCommand.cpp
   trunk/MgDev/Desktop/MgDesktop/Services/Feature/Commands/UpdateFeatures.cpp
   trunk/MgDev/Desktop/MgDesktop/Services/Feature/FdoConnectionPool.cpp
   trunk/MgDev/Desktop/MgDesktop/Services/Feature/FdoConnectionUtil.cpp
   trunk/MgDev/Desktop/MgDesktop/Services/Feature/FdoConnectionUtil.h
   trunk/MgDev/Desktop/MgDesktop/Services/Feature/FdoForcedOneToOneFeatureReader.cpp
   trunk/MgDev/Desktop/MgDesktop/Services/Feature/FeatureClassCacheItem.cpp
   trunk/MgDev/Desktop/MgDesktop/Services/Feature/FeatureClassCacheItem.h
   trunk/MgDev/Desktop/MgDesktop/Services/Feature/FeatureConnection.cpp
   trunk/MgDev/Desktop/MgDesktop/Services/Feature/FeatureConnection.h
   trunk/MgDev/Desktop/MgDesktop/Services/Feature/FeatureDefs.h
   trunk/MgDev/Desktop/MgDesktop/Services/Feature/FeatureDistribution.cpp
   trunk/MgDev/Desktop/MgDesktop/Services/Feature/FeatureGeometricFunctions.cpp
   trunk/MgDev/Desktop/MgDesktop/Services/Feature/FeatureNumericFunctions.cpp
   trunk/MgDev/Desktop/MgDesktop/Services/Feature/FeatureSchemaCacheItem.cpp
   trunk/MgDev/Desktop/MgDesktop/Services/Feature/FeatureSchemaCacheItem.h
   trunk/MgDev/Desktop/MgDesktop/Services/Feature/FeatureServiceCache.cpp
   trunk/MgDev/Desktop/MgDesktop/Services/Feature/FeatureServiceCache.h
   trunk/MgDev/Desktop/MgDesktop/Services/Feature/FeatureServiceCacheEntry.cpp
   trunk/MgDev/Desktop/MgDesktop/Services/Feature/FeatureServiceCacheEntry.h
   trunk/MgDev/Desktop/MgDesktop/Services/Feature/FeatureSetReader.cpp
   trunk/MgDev/Desktop/MgDesktop/Services/Feature/FeatureSetReader.h
   trunk/MgDev/Desktop/MgDesktop/Services/Feature/FeatureSourceCacheItem.cpp
   trunk/MgDev/Desktop/MgDesktop/Services/Feature/FeatureSourceCacheItem.h
   trunk/MgDev/Desktop/MgDesktop/Services/Feature/FeatureStringFunctions.cpp
   trunk/MgDev/Desktop/MgDesktop/Services/Feature/FeatureUtil.cpp
   trunk/MgDev/Desktop/MgDesktop/Services/Feature/FeatureUtil.h
   trunk/MgDev/Desktop/MgDesktop/Services/Feature/GwsFeatureReader.cpp
   trunk/MgDev/Desktop/MgDesktop/Services/Feature/JoinFeatureReader.cpp
   trunk/MgDev/Desktop/MgDesktop/Services/Feature/MgCSTrans.cpp
   trunk/MgDev/Desktop/MgDesktop/Services/Feature/MgCSTrans.h
   trunk/MgDev/Desktop/MgDesktop/Services/Feature/ProjectedFeatureReader.cpp
   trunk/MgDev/Desktop/MgDesktop/Services/Feature/ProjectedFeatureReader.h
   trunk/MgDev/Desktop/MgDesktop/Services/Feature/ProxyDataReader.cpp
   trunk/MgDev/Desktop/MgDesktop/Services/Feature/RasterHelper.cpp
   trunk/MgDev/Desktop/MgDesktop/Services/Feature/RasterHelper.h
   trunk/MgDev/Desktop/MgDesktop/Services/Feature/RdbmsFeatureSourceParams.cpp
   trunk/MgDev/Desktop/MgDesktop/Services/Feature/RdbmsFeatureSourceParams.h
   trunk/MgDev/Desktop/MgDesktop/Services/Feature/SpatialContextCacheItem.cpp
   trunk/MgDev/Desktop/MgDesktop/Services/Feature/SpatialContextCacheItem.h
   trunk/MgDev/Desktop/MgDesktop/Services/Feature/TransformCache.cpp
   trunk/MgDev/Desktop/MgDesktop/Services/Feature/TransformCache.h
   trunk/MgDev/Desktop/MgDesktop/Services/FeatureReader.cpp
   trunk/MgDev/Desktop/MgDesktop/Services/FeatureReader.h
   trunk/MgDev/Desktop/MgDesktop/Services/FeatureService.cpp
   trunk/MgDev/Desktop/MgDesktop/Services/ImageFormats.cpp
   trunk/MgDev/Desktop/MgDesktop/Services/ImageFormats.h
   trunk/MgDev/Desktop/MgDesktop/Services/MappingService.cpp
   trunk/MgDev/Desktop/MgDesktop/Services/ProfilingService.cpp
   trunk/MgDev/Desktop/MgDesktop/Services/Rendering/FeatureInfoRenderer.cpp
   trunk/MgDev/Desktop/MgDesktop/Services/Rendering/FeatureInfoRenderer.h
   trunk/MgDev/Desktop/MgDesktop/Services/Rendering/LegendPlotUtil.cpp
   trunk/MgDev/Desktop/MgDesktop/Services/Rendering/LegendPlotUtil.h
   trunk/MgDev/Desktop/MgDesktop/Services/Rendering/MapPlot.cpp
   trunk/MgDev/Desktop/MgDesktop/Services/Rendering/MappingDefs.h
   trunk/MgDev/Desktop/MgDesktop/Services/Rendering/MappingUtil.cpp
   trunk/MgDev/Desktop/MgDesktop/Services/Rendering/MappingUtil.h
   trunk/MgDev/Desktop/MgDesktop/Services/Rendering/PlotSpecification.cpp
   trunk/MgDev/Desktop/MgDesktop/Services/Rendering/PrintLayout.cpp
   trunk/MgDev/Desktop/MgDesktop/Services/Rendering/RSMgFeatureReader.cpp
   trunk/MgDev/Desktop/MgDesktop/Services/Rendering/RSMgFeatureReader.h
   trunk/MgDev/Desktop/MgDesktop/Services/Rendering/RSMgInputStream.h
   trunk/MgDev/Desktop/MgDesktop/Services/Rendering/RSMgRaster.cpp
   trunk/MgDev/Desktop/MgDesktop/Services/Rendering/RSMgRaster.h
   trunk/MgDev/Desktop/MgDesktop/Services/Rendering/RSMgSymbolManager.cpp
   trunk/MgDev/Desktop/MgDesktop/Services/Rendering/RSMgSymbolManager.h
   trunk/MgDev/Desktop/MgDesktop/Services/Rendering/RenderingOptions.cpp
   trunk/MgDev/Desktop/MgDesktop/Services/Rendering/RenderingOptions.h
   trunk/MgDev/Desktop/MgDesktop/Services/RenderingService.cpp
   trunk/MgDev/Desktop/MgDesktop/Services/RenderingService.h
   trunk/MgDev/Desktop/MgDesktop/Services/Resource/ByteSourceDwfInputStreamImpl.cpp
   trunk/MgDev/Desktop/MgDesktop/Services/Resource/ByteSourceDwfInputStreamImpl.h
   trunk/MgDev/Desktop/MgDesktop/Services/Resource/OperationInfo.cpp
   trunk/MgDev/Desktop/MgDesktop/Services/Resource/OperationInfo.h
   trunk/MgDev/Desktop/MgDesktop/Services/Resource/OperationParameter.cpp
   trunk/MgDev/Desktop/MgDesktop/Services/Resource/OperationParameter.h
   trunk/MgDev/Desktop/MgDesktop/Services/Resource/ResourceContentCache.cpp
   trunk/MgDev/Desktop/MgDesktop/Services/Resource/ResourceContentCache.h
   trunk/MgDev/Desktop/MgDesktop/Services/Resource/ResourceDefs.cpp
   trunk/MgDev/Desktop/MgDesktop/Services/Resource/ResourceDefs.h
   trunk/MgDev/Desktop/MgDesktop/Services/Resource/ResourcePackageHandler.cpp
   trunk/MgDev/Desktop/MgDesktop/Services/Resource/ResourcePackageHandler.h
   trunk/MgDev/Desktop/MgDesktop/Services/Resource/ResourcePackageLoader.cpp
   trunk/MgDev/Desktop/MgDesktop/Services/Resource/ResourcePackageLoader.h
   trunk/MgDev/Desktop/MgDesktop/Services/Resource/ResourcePackageManifestHandler.cpp
   trunk/MgDev/Desktop/MgDesktop/Services/Resource/ResourcePackageManifestHandler.h
   trunk/MgDev/Desktop/MgDesktop/Services/Resource/ResourcePackageManifestParser.cpp
   trunk/MgDev/Desktop/MgDesktop/Services/Resource/ResourcePackageManifestParser.h
   trunk/MgDev/Desktop/MgDesktop/Services/Resource/UnmanagedDataManager.cpp
   trunk/MgDev/Desktop/MgDesktop/Services/Resource/UnmanagedDataType.cpp
   trunk/MgDev/Desktop/MgDesktop/Services/Resource/UnmanagedDataType.h
   trunk/MgDev/Desktop/MgDesktop/Services/Resource/ZipFileHandler.cpp
   trunk/MgDev/Desktop/MgDesktop/Services/Resource/ZipFileHandler.h
   trunk/MgDev/Desktop/MgDesktop/Services/Resource/ZipFileReader.cpp
   trunk/MgDev/Desktop/MgDesktop/Services/Resource/ZipFileReader.h
   trunk/MgDev/Desktop/MgDesktop/Services/ResourceService.cpp
   trunk/MgDev/Desktop/MgDesktop/Services/ResourceService.h
   trunk/MgDev/Desktop/MgDesktop/Services/ScrollableFeatureReader.cpp
   trunk/MgDev/Desktop/MgDesktop/Services/ScrollableFeatureReader.h
   trunk/MgDev/Desktop/MgDesktop/Services/ServiceFactory.cpp
   trunk/MgDev/Desktop/MgDesktop/Services/ServiceFactory.h
   trunk/MgDev/Desktop/MgDesktop/Services/SqlReader.cpp
   trunk/MgDev/Desktop/MgDesktop/Services/SqlReader.h
   trunk/MgDev/Desktop/MgDesktop/Services/Stylization/SEMgSymbolManager.cpp
   trunk/MgDev/Desktop/MgDesktop/Services/Stylization/SEMgSymbolManager.h
   trunk/MgDev/Desktop/MgDesktop/Services/Tile/TileCache.cpp
   trunk/MgDev/Desktop/MgDesktop/Services/Tile/TileCache.h
   trunk/MgDev/Desktop/MgDesktop/Services/Tile/TileDefs.cpp
   trunk/MgDev/Desktop/MgDesktop/Services/Tile/TileDefs.h
   trunk/MgDev/Desktop/MgDesktop/Services/TileService.cpp
   trunk/MgDev/Desktop/MgDesktop/Services/TileService.h
   trunk/MgDev/Desktop/MgDesktop/Services/Transaction.cpp
   trunk/MgDev/Desktop/MgDesktop/Services/Transaction.h
   trunk/MgDev/Desktop/MgDesktop/System/ClassId.h
   trunk/MgDev/Desktop/MgDesktop/System/ConfigProperties.cpp
   trunk/MgDev/Desktop/MgDesktop/System/ConfigProperties.h
   trunk/MgDev/Desktop/MgDesktop/System/PlatformInit.cpp
   trunk/MgDev/Desktop/MgDesktop/System/PlatformInit.h
   trunk/MgDev/Desktop/MgDesktop/System/TimerUtil.cpp
   trunk/MgDev/Desktop/MgDesktop/System/TimerUtil.h
   trunk/MgDev/Desktop/UnitTest/CatchHelperMacros.h
   trunk/MgDev/Desktop/UnitTest/TestFeatureService.cpp
   trunk/MgDev/Desktop/UnitTest/TestLogManager.cpp
   trunk/MgDev/Desktop/UnitTest/TestLogManagerThread.cpp
   trunk/MgDev/Desktop/UnitTest/TestPerformance.cpp
   trunk/MgDev/Desktop/UnitTest/TestResourceService.cpp
   trunk/MgDev/Desktop/UnitTest/TestServiceFactory.cpp
   trunk/MgDev/Desktop/UnitTest/TestTileService.cpp
   trunk/MgDev/Server/src/Common/Base/ClientHandler.cpp
   trunk/MgDev/Server/src/Common/Cache/FeatureServiceCache.cpp
   trunk/MgDev/Server/src/Common/Cache/FeatureServiceCacheEntry.cpp
   trunk/MgDev/Server/src/Common/Cache/ResourceServiceCache.cpp
   trunk/MgDev/Server/src/Common/Cache/ServerCache.cpp
   trunk/MgDev/Server/src/Common/Manager/CacheManager.cpp
   trunk/MgDev/Server/src/Common/Manager/FdoConnectionManager.cpp
   trunk/MgDev/Server/src/Common/Manager/LoadBalanceManager.cpp
   trunk/MgDev/Server/src/Common/Manager/LogManager.cpp
   trunk/MgDev/Server/src/Common/Manager/LogManager.h
   trunk/MgDev/Server/src/Common/Manager/LogThread.cpp
   trunk/MgDev/Server/src/Common/Manager/LongTransactionManager.cpp
   trunk/MgDev/Server/src/Common/Manager/PackageLogReader.cpp
   trunk/MgDev/Server/src/Common/Manager/PackageLogWriter.cpp
   trunk/MgDev/Server/src/Common/Manager/PackageManager.cpp
   trunk/MgDev/Server/src/Common/Manager/SecurityCache.cpp
   trunk/MgDev/Server/src/Common/Manager/SecurityManager.cpp
   trunk/MgDev/Server/src/Common/Manager/ServerManager.cpp
   trunk/MgDev/Server/src/Common/Manager/ServiceManager.cpp
   trunk/MgDev/Server/src/Common/Manager/SessionCache.cpp
   trunk/MgDev/Server/src/Common/Manager/UnmanagedDataManager.cpp
   trunk/MgDev/Server/src/Common/Manager/WorkerThread.cpp
   trunk/MgDev/Server/src/Core/EventTimer.cpp
   trunk/MgDev/Server/src/Core/LoadPackageCommand.cpp
   trunk/MgDev/Server/src/Core/Server.cpp
   trunk/MgDev/Server/src/Core/ServiceHandlerFactory.cpp
   trunk/MgDev/Server/src/Core/SetPwdCommand.cpp
   trunk/MgDev/Server/src/Core/TestCommand.cpp
   trunk/MgDev/Server/src/Core/TestFdoCommand.cpp
   trunk/MgDev/Server/src/Core/TimedEventHandler.cpp
   trunk/MgDev/Server/src/Services/Drawing/DrawingOperationFactory.cpp
   trunk/MgDev/Server/src/Services/Drawing/OpDescribeDrawing.cpp
   trunk/MgDev/Server/src/Services/Drawing/OpEnumerateLayers.cpp
   trunk/MgDev/Server/src/Services/Drawing/OpEnumerateSectionResources.cpp
   trunk/MgDev/Server/src/Services/Drawing/OpEnumerateSections.cpp
   trunk/MgDev/Server/src/Services/Drawing/OpGetCoordinateSpace.cpp
   trunk/MgDev/Server/src/Services/Drawing/OpGetDrawing.cpp
   trunk/MgDev/Server/src/Services/Drawing/OpGetLayer.cpp
   trunk/MgDev/Server/src/Services/Drawing/OpGetSection.cpp
   trunk/MgDev/Server/src/Services/Drawing/OpGetSectionResource.cpp
   trunk/MgDev/Server/src/Services/Drawing/ServerDrawingService.cpp
   trunk/MgDev/Server/src/Services/Drawing/ServerDrawingServiceDefs.h
   trunk/MgDev/Server/src/Services/Drawing/ServerDrawingServiceUtil.cpp
   trunk/MgDev/Server/src/Services/Feature/ByteSourceRasterStreamImpl.cpp
   trunk/MgDev/Server/src/Services/Feature/FeatureDistribution.cpp
   trunk/MgDev/Server/src/Services/Feature/FeatureGeometricFunctions.cpp
   trunk/MgDev/Server/src/Services/Feature/FeatureManipulationCommand.cpp
   trunk/MgDev/Server/src/Services/Feature/FeatureNumericFunctions.cpp
   trunk/MgDev/Server/src/Services/Feature/FeatureOperationFactory.cpp
   trunk/MgDev/Server/src/Services/Feature/FeatureStringFunctions.cpp
   trunk/MgDev/Server/src/Services/Feature/JoinFeatureReader.cpp
   trunk/MgDev/Server/src/Services/Feature/OpAddSavePoint.cpp
   trunk/MgDev/Server/src/Services/Feature/OpApplySchema.cpp
   trunk/MgDev/Server/src/Services/Feature/OpBeginTransaction.cpp
   trunk/MgDev/Server/src/Services/Feature/OpCloseDataReader.cpp
   trunk/MgDev/Server/src/Services/Feature/OpCloseFeatureReader.cpp
   trunk/MgDev/Server/src/Services/Feature/OpCloseSqlReader.cpp
   trunk/MgDev/Server/src/Services/Feature/OpCommitTransaction.cpp
   trunk/MgDev/Server/src/Services/Feature/OpCreateFeatureSource.cpp
   trunk/MgDev/Server/src/Services/Feature/OpDeleteFeatures.cpp
   trunk/MgDev/Server/src/Services/Feature/OpDescribeSchema.cpp
   trunk/MgDev/Server/src/Services/Feature/OpDescribeSchemaAsXml.cpp
   trunk/MgDev/Server/src/Services/Feature/OpDescribeWfsFeatureType.cpp
   trunk/MgDev/Server/src/Services/Feature/OpEnumerateDataStores.cpp
   trunk/MgDev/Server/src/Services/Feature/OpExecuteSqlNonQuery.cpp
   trunk/MgDev/Server/src/Services/Feature/OpExecuteSqlQuery.cpp
   trunk/MgDev/Server/src/Services/Feature/OpGetCapabilities.cpp
   trunk/MgDev/Server/src/Services/Feature/OpGetClassDefinition.cpp
   trunk/MgDev/Server/src/Services/Feature/OpGetClasses.cpp
   trunk/MgDev/Server/src/Services/Feature/OpGetConnectionPropertyValues.cpp
   trunk/MgDev/Server/src/Services/Feature/OpGetDataRows.cpp
   trunk/MgDev/Server/src/Services/Feature/OpGetFdoCacheInfo.cpp
   trunk/MgDev/Server/src/Services/Feature/OpGetFeatureProviders.cpp
   trunk/MgDev/Server/src/Services/Feature/OpGetFeatures.cpp
   trunk/MgDev/Server/src/Services/Feature/OpGetIdentityProperties.cpp
   trunk/MgDev/Server/src/Services/Feature/OpGetLongTransactions.cpp
   trunk/MgDev/Server/src/Services/Feature/OpGetRaster.cpp
   trunk/MgDev/Server/src/Services/Feature/OpGetSchemaMapping.cpp
   trunk/MgDev/Server/src/Services/Feature/OpGetSchemas.cpp
   trunk/MgDev/Server/src/Services/Feature/OpGetSpatialContexts.cpp
   trunk/MgDev/Server/src/Services/Feature/OpGetSqlRows.cpp
   trunk/MgDev/Server/src/Services/Feature/OpGetWfsFeature.cpp
   trunk/MgDev/Server/src/Services/Feature/OpGetWfsFeatureTotal.cpp
   trunk/MgDev/Server/src/Services/Feature/OpGetWfsReader.cpp
   trunk/MgDev/Server/src/Services/Feature/OpInsertFeatures.cpp
   trunk/MgDev/Server/src/Services/Feature/OpInsertFeaturesBatched.cpp
   trunk/MgDev/Server/src/Services/Feature/OpReleaseSavePoint.cpp
   trunk/MgDev/Server/src/Services/Feature/OpRollbackSavePoint.cpp
   trunk/MgDev/Server/src/Services/Feature/OpRollbackTransaction.cpp
   trunk/MgDev/Server/src/Services/Feature/OpSchemaToXml.cpp
   trunk/MgDev/Server/src/Services/Feature/OpSelectFeatures.cpp
   trunk/MgDev/Server/src/Services/Feature/OpSelectFeaturesSpatial.cpp
   trunk/MgDev/Server/src/Services/Feature/OpSetLongTransaction.cpp
   trunk/MgDev/Server/src/Services/Feature/OpTestConnection.cpp
   trunk/MgDev/Server/src/Services/Feature/OpTestFeatureSourceConnection.cpp
   trunk/MgDev/Server/src/Services/Feature/OpUpdateFeatures.cpp
   trunk/MgDev/Server/src/Services/Feature/OpUpdateFeaturesWithTransaction.cpp
   trunk/MgDev/Server/src/Services/Feature/OpUpdateMatchingFeatures.cpp
   trunk/MgDev/Server/src/Services/Feature/OpXmlToSchema.cpp
   trunk/MgDev/Server/src/Services/Feature/SelectAggregateCommand.cpp
   trunk/MgDev/Server/src/Services/Feature/SelectCommand.cpp
   trunk/MgDev/Server/src/Services/Feature/ServerApplySchema.cpp
   trunk/MgDev/Server/src/Services/Feature/ServerCreateFeatureSource.cpp
   trunk/MgDev/Server/src/Services/Feature/ServerDataReader.cpp
   trunk/MgDev/Server/src/Services/Feature/ServerDescribeSchema.cpp
   trunk/MgDev/Server/src/Services/Feature/ServerEnumerateDataStores.cpp
   trunk/MgDev/Server/src/Services/Feature/ServerFdoFeatureReader.cpp
   trunk/MgDev/Server/src/Services/Feature/ServerFeatureReader.cpp
   trunk/MgDev/Server/src/Services/Feature/ServerFeatureService.cpp
   trunk/MgDev/Server/src/Services/Feature/ServerFeatureServiceExceptionDef.h
   trunk/MgDev/Server/src/Services/Feature/ServerFeatureTransaction.cpp
   trunk/MgDev/Server/src/Services/Feature/ServerFeatureTransactionPool.cpp
   trunk/MgDev/Server/src/Services/Feature/ServerFeatureUtil.cpp
   trunk/MgDev/Server/src/Services/Feature/ServerGetConnectionPropertyValues.cpp
   trunk/MgDev/Server/src/Services/Feature/ServerGetLongTransactions.cpp
   trunk/MgDev/Server/src/Services/Feature/ServerGetProviderCapabilities.cpp
   trunk/MgDev/Server/src/Services/Feature/ServerGetSchemaMapping.cpp
   trunk/MgDev/Server/src/Services/Feature/ServerGetSpatialContexts.cpp
   trunk/MgDev/Server/src/Services/Feature/ServerGwsFeatureReader.cpp
   trunk/MgDev/Server/src/Services/Feature/ServerInsertCommand.cpp
   trunk/MgDev/Server/src/Services/Feature/ServerSelectFeatures.cpp
   trunk/MgDev/Server/src/Services/Feature/ServerSqlCommand.cpp
   trunk/MgDev/Server/src/Services/Feature/ServerSqlDataReader.cpp
   trunk/MgDev/Server/src/Services/Feature/ServerUpdateFeatures.cpp
   trunk/MgDev/Server/src/Services/Feature/TransformedGeometryFeatureReader.cpp
   trunk/MgDev/Server/src/Services/Kml/KmlOperationFactory.cpp
   trunk/MgDev/Server/src/Services/Kml/OpGetFeaturesKml.cpp
   trunk/MgDev/Server/src/Services/Kml/OpGetLayerKml.cpp
   trunk/MgDev/Server/src/Services/Kml/OpGetMapKml.cpp
   trunk/MgDev/Server/src/Services/Mapping/LegendPlotUtil.cpp
   trunk/MgDev/Server/src/Services/Mapping/MappingOperationFactory.cpp
   trunk/MgDev/Server/src/Services/Mapping/MappingUtil.cpp
   trunk/MgDev/Server/src/Services/Mapping/OpCreateRuntimeMap.cpp
   trunk/MgDev/Server/src/Services/Mapping/OpDescribeRuntimeMap.cpp
   trunk/MgDev/Server/src/Services/Mapping/OpGenerateLegendImage.cpp
   trunk/MgDev/Server/src/Services/Mapping/OpGenerateLegendPlot.cpp
   trunk/MgDev/Server/src/Services/Mapping/OpGenerateMultiPlot.cpp
   trunk/MgDev/Server/src/Services/Mapping/OpGeneratePlot.cpp
   trunk/MgDev/Server/src/Services/Mapping/OpQueryFeatures.cpp
   trunk/MgDev/Server/src/Services/Mapping/OpQueryFeaturesWms.cpp
   trunk/MgDev/Server/src/Services/Mapping/RSMgFeatureReader.cpp
   trunk/MgDev/Server/src/Services/Mapping/ServerMappingService.cpp
   trunk/MgDev/Server/src/Services/Mapping/ServerMappingServiceDefs.h
   trunk/MgDev/Server/src/Services/Profiling/OpProfileRenderDynamicOverlay.cpp
   trunk/MgDev/Server/src/Services/Profiling/OpProfileRenderMap.cpp
   trunk/MgDev/Server/src/Services/Profiling/ProfilingOperationFactory.cpp
   trunk/MgDev/Server/src/Services/Rendering/OpQueryFeatureProperties.cpp
   trunk/MgDev/Server/src/Services/Rendering/OpQueryFeatures.cpp
   trunk/MgDev/Server/src/Services/Rendering/OpRenderDynamicOverlay.cpp
   trunk/MgDev/Server/src/Services/Rendering/OpRenderMap.cpp
   trunk/MgDev/Server/src/Services/Rendering/OpRenderMapLegend.cpp
   trunk/MgDev/Server/src/Services/Rendering/OpRenderMetatile.cpp
   trunk/MgDev/Server/src/Services/Rendering/OpRenderMetatileXYZ.cpp
   trunk/MgDev/Server/src/Services/Rendering/OpRenderTile.cpp
   trunk/MgDev/Server/src/Services/Rendering/OpRenderTileFromMetatile.cpp
   trunk/MgDev/Server/src/Services/Rendering/OpRenderTileMVT.cpp
   trunk/MgDev/Server/src/Services/Rendering/OpRenderTileUTFGrid.cpp
   trunk/MgDev/Server/src/Services/Rendering/OpRenderTileXYZ.cpp
   trunk/MgDev/Server/src/Services/Rendering/RenderingOperationFactory.cpp
   trunk/MgDev/Server/src/Services/Rendering/ServerRenderingService.cpp
   trunk/MgDev/Server/src/Services/Resource/ApplicationRepositoryManager.cpp
   trunk/MgDev/Server/src/Services/Resource/DbEnvironment.cpp
   trunk/MgDev/Server/src/Services/Resource/LibraryRepositoryManager.cpp
   trunk/MgDev/Server/src/Services/Resource/LibraryResourceContentManager.cpp
   trunk/MgDev/Server/src/Services/Resource/OpApplyResourcePackage.cpp
   trunk/MgDev/Server/src/Services/Resource/OpChangeResourceOwner.cpp
   trunk/MgDev/Server/src/Services/Resource/OpCopyResource.cpp
   trunk/MgDev/Server/src/Services/Resource/OpCreateRepository.cpp
   trunk/MgDev/Server/src/Services/Resource/OpDeleteRepository.cpp
   trunk/MgDev/Server/src/Services/Resource/OpDeleteResource.cpp
   trunk/MgDev/Server/src/Services/Resource/OpDeleteResourceData.cpp
   trunk/MgDev/Server/src/Services/Resource/OpEnumerateParentMapDefinitions.cpp
   trunk/MgDev/Server/src/Services/Resource/OpEnumerateParentTileSetDefinitions.cpp
   trunk/MgDev/Server/src/Services/Resource/OpEnumerateRepositories.cpp
   trunk/MgDev/Server/src/Services/Resource/OpEnumerateResourceData.cpp
   trunk/MgDev/Server/src/Services/Resource/OpEnumerateResourceDocuments.cpp
   trunk/MgDev/Server/src/Services/Resource/OpEnumerateResourceReferences.cpp
   trunk/MgDev/Server/src/Services/Resource/OpEnumerateResources.cpp
   trunk/MgDev/Server/src/Services/Resource/OpEnumerateUnmanagedData.cpp
   trunk/MgDev/Server/src/Services/Resource/OpGetRepositoryContent.cpp
   trunk/MgDev/Server/src/Services/Resource/OpGetRepositoryHeader.cpp
   trunk/MgDev/Server/src/Services/Resource/OpGetResourceContent.cpp
   trunk/MgDev/Server/src/Services/Resource/OpGetResourceContents.cpp
   trunk/MgDev/Server/src/Services/Resource/OpGetResourceData.cpp
   trunk/MgDev/Server/src/Services/Resource/OpGetResourceHeader.cpp
   trunk/MgDev/Server/src/Services/Resource/OpGetResourceModifiedDate.cpp
   trunk/MgDev/Server/src/Services/Resource/OpInheritPermissionsFrom.cpp
   trunk/MgDev/Server/src/Services/Resource/OpMoveResource.cpp
   trunk/MgDev/Server/src/Services/Resource/OpRenameResourceData.cpp
   trunk/MgDev/Server/src/Services/Resource/OpResourceExists.cpp
   trunk/MgDev/Server/src/Services/Resource/OpSetResource.cpp
   trunk/MgDev/Server/src/Services/Resource/OpSetResourceData.cpp
   trunk/MgDev/Server/src/Services/Resource/OpUpdateRepository.cpp
   trunk/MgDev/Server/src/Services/Resource/OperationInfo.cpp
   trunk/MgDev/Server/src/Services/Resource/Repository.cpp
   trunk/MgDev/Server/src/Services/Resource/RepositoryManager.cpp
   trunk/MgDev/Server/src/Services/Resource/ResourceContentManager.cpp
   trunk/MgDev/Server/src/Services/Resource/ResourceDataFileManager.cpp
   trunk/MgDev/Server/src/Services/Resource/ResourceDataStreamManager.cpp
   trunk/MgDev/Server/src/Services/Resource/ResourceDefinitionManager.cpp
   trunk/MgDev/Server/src/Services/Resource/ResourceHeader.cpp
   trunk/MgDev/Server/src/Services/Resource/ResourceHeaderManager.cpp
   trunk/MgDev/Server/src/Services/Resource/ResourceOperationFactory.cpp
   trunk/MgDev/Server/src/Services/Resource/ResourcePackageLoader.cpp
   trunk/MgDev/Server/src/Services/Resource/ResourcePackageMaker.cpp
   trunk/MgDev/Server/src/Services/Resource/ResourceServiceDefs.h
   trunk/MgDev/Server/src/Services/Resource/ServerResourceService.cpp
   trunk/MgDev/Server/src/Services/Resource/SessionRepositoryManager.cpp
   trunk/MgDev/Server/src/Services/Resource/SessionResourceContentManager.cpp
   trunk/MgDev/Server/src/Services/Resource/SiteRepositoryManager.cpp
   trunk/MgDev/Server/src/Services/Resource/SiteResourceContentManager.cpp
   trunk/MgDev/Server/src/Services/Resource/SystemRepositoryManager.cpp
   trunk/MgDev/Server/src/Services/Resource/TagManager.cpp
   trunk/MgDev/Server/src/Services/Resource/ZipFileReader.cpp
   trunk/MgDev/Server/src/Services/Resource/ZipFileWriter.cpp
   trunk/MgDev/Server/src/Services/ServerAdmin/OpBringOnline.cpp
   trunk/MgDev/Server/src/Services/ServerAdmin/OpClearLog.cpp
   trunk/MgDev/Server/src/Services/ServerAdmin/OpDeleteLog.cpp
   trunk/MgDev/Server/src/Services/ServerAdmin/OpDeletePackage.cpp
   trunk/MgDev/Server/src/Services/ServerAdmin/OpEnableMaximumLogSize.cpp
   trunk/MgDev/Server/src/Services/ServerAdmin/OpEnumerateLogs.cpp
   trunk/MgDev/Server/src/Services/ServerAdmin/OpEnumeratePackages.cpp
   trunk/MgDev/Server/src/Services/ServerAdmin/OpGetConfigurationProperties.cpp
   trunk/MgDev/Server/src/Services/ServerAdmin/OpGetDocument.cpp
   trunk/MgDev/Server/src/Services/ServerAdmin/OpGetInformationProperties.cpp
   trunk/MgDev/Server/src/Services/ServerAdmin/OpGetLog.cpp
   trunk/MgDev/Server/src/Services/ServerAdmin/OpGetLogFile.cpp
   trunk/MgDev/Server/src/Services/ServerAdmin/OpGetPackageLog.cpp
   trunk/MgDev/Server/src/Services/ServerAdmin/OpGetPackageStatus.cpp
   trunk/MgDev/Server/src/Services/ServerAdmin/OpGetSiteStatus.cpp
   trunk/MgDev/Server/src/Services/ServerAdmin/OpGetSiteVersion.cpp
   trunk/MgDev/Server/src/Services/ServerAdmin/OpIsMaximumLogSizeEnabled.cpp
   trunk/MgDev/Server/src/Services/ServerAdmin/OpIsOnline.cpp
   trunk/MgDev/Server/src/Services/ServerAdmin/OpLoadPackage.cpp
   trunk/MgDev/Server/src/Services/ServerAdmin/OpMakePackage.cpp
   trunk/MgDev/Server/src/Services/ServerAdmin/OpNotifyResourcesChanged.cpp
   trunk/MgDev/Server/src/Services/ServerAdmin/OpRegisterServicesOnServers.cpp
   trunk/MgDev/Server/src/Services/ServerAdmin/OpRemoveConfigurationProperties.cpp
   trunk/MgDev/Server/src/Services/ServerAdmin/OpRenameLog.cpp
   trunk/MgDev/Server/src/Services/ServerAdmin/OpSetConfigurationProperties.cpp
   trunk/MgDev/Server/src/Services/ServerAdmin/OpSetDocument.cpp
   trunk/MgDev/Server/src/Services/ServerAdmin/OpSetLogDelimiter.cpp
   trunk/MgDev/Server/src/Services/ServerAdmin/OpSetMaximumLogSize.cpp
   trunk/MgDev/Server/src/Services/ServerAdmin/OpTakeOffline.cpp
   trunk/MgDev/Server/src/Services/ServerAdmin/OpUnregisterServicesOnServers.cpp
   trunk/MgDev/Server/src/Services/ServerAdmin/ServerAdminOperationFactory.cpp
   trunk/MgDev/Server/src/Services/ServerAdmin/ServerAdminService.cpp
   trunk/MgDev/Server/src/Services/Site/OpAddGroup.cpp
   trunk/MgDev/Server/src/Services/Site/OpAddServer.cpp
   trunk/MgDev/Server/src/Services/Site/OpAddUser.cpp
   trunk/MgDev/Server/src/Services/Site/OpAuthenticate.cpp
   trunk/MgDev/Server/src/Services/Site/OpCreateSession.cpp
   trunk/MgDev/Server/src/Services/Site/OpDeleteGroups.cpp
   trunk/MgDev/Server/src/Services/Site/OpDeleteUsers.cpp
   trunk/MgDev/Server/src/Services/Site/OpDestroySession.cpp
   trunk/MgDev/Server/src/Services/Site/OpEnumerateGroups.cpp
   trunk/MgDev/Server/src/Services/Site/OpEnumerateRoles.cpp
   trunk/MgDev/Server/src/Services/Site/OpEnumerateServers.cpp
   trunk/MgDev/Server/src/Services/Site/OpEnumerateUsers.cpp
   trunk/MgDev/Server/src/Services/Site/OpGetSessionTimeout.cpp
   trunk/MgDev/Server/src/Services/Site/OpGetUserForSession.cpp
   trunk/MgDev/Server/src/Services/Site/OpGrantGroupMembershipsToUsers.cpp
   trunk/MgDev/Server/src/Services/Site/OpGrantRoleMembershipsToGroups.cpp
   trunk/MgDev/Server/src/Services/Site/OpGrantRoleMembershipsToUsers.cpp
   trunk/MgDev/Server/src/Services/Site/OpRemoveServer.cpp
   trunk/MgDev/Server/src/Services/Site/OpRequestServer.cpp
   trunk/MgDev/Server/src/Services/Site/OpRevokeGroupMembershipsFromUsers.cpp
   trunk/MgDev/Server/src/Services/Site/OpRevokeRoleMembershipsFromGroups.cpp
   trunk/MgDev/Server/src/Services/Site/OpRevokeRoleMembershipsFromUsers.cpp
   trunk/MgDev/Server/src/Services/Site/OpUpdateGroup.cpp
   trunk/MgDev/Server/src/Services/Site/OpUpdateServer.cpp
   trunk/MgDev/Server/src/Services/Site/OpUpdateUser.cpp
   trunk/MgDev/Server/src/Services/Site/ServerSiteService.cpp
   trunk/MgDev/Server/src/Services/Site/SiteOperationFactory.cpp
   trunk/MgDev/Server/src/Services/Tile/MetatileLockUtil.cpp
   trunk/MgDev/Server/src/Services/Tile/OpClearCache.cpp
   trunk/MgDev/Server/src/Services/Tile/OpGetDefaultTileSizeX.cpp
   trunk/MgDev/Server/src/Services/Tile/OpGetDefaultTileSizeY.cpp
   trunk/MgDev/Server/src/Services/Tile/OpGetTile.cpp
   trunk/MgDev/Server/src/Services/Tile/OpGetTileProviders.cpp
   trunk/MgDev/Server/src/Services/Tile/OpSetTile.cpp
   trunk/MgDev/Server/src/Services/Tile/ServerTileService.cpp
   trunk/MgDev/Server/src/Services/Tile/TileCacheDefault.cpp
   trunk/MgDev/Server/src/Services/Tile/TileCacheDefaultProvider.cpp
   trunk/MgDev/Server/src/Services/Tile/TileCacheXYZProvider.cpp
   trunk/MgDev/Server/src/Services/Tile/TileOperationFactory.cpp
   trunk/MgDev/Server/src/UnitTesting/CatchHelperMacros.h
   trunk/MgDev/Server/src/UnitTesting/TestCoordinateSystem.cpp
   trunk/MgDev/Server/src/UnitTesting/TestDrawingService.cpp
   trunk/MgDev/Server/src/UnitTesting/TestFeatureService.cpp
   trunk/MgDev/Server/src/UnitTesting/TestGeometry.cpp
   trunk/MgDev/Server/src/UnitTesting/TestKmlService.cpp
   trunk/MgDev/Server/src/UnitTesting/TestLogManager.cpp
   trunk/MgDev/Server/src/UnitTesting/TestLogManagerThread.cpp
   trunk/MgDev/Server/src/UnitTesting/TestMisc.cpp
   trunk/MgDev/Server/src/UnitTesting/TestPerformance.cpp
   trunk/MgDev/Server/src/UnitTesting/TestResourceService.cpp
   trunk/MgDev/Server/src/UnitTesting/TestServerAdminService.cpp
   trunk/MgDev/Server/src/UnitTesting/TestServiceFactory.cpp
   trunk/MgDev/Server/src/UnitTesting/TestSiteService.cpp
   trunk/MgDev/Server/src/UnitTesting/TestTileService.cpp
   trunk/MgDev/UnitTest/Common/FoundationTest/DotNetUnmanagedApi/catchall.code
   trunk/MgDev/UnitTest/Common/FoundationTest/FoundationTest.cpp
   trunk/MgDev/UnitTest/WebTier/DotNet/TestMapGuideApi/ExternalTests/MapTests.cs
   trunk/MgDev/Web/src/ApacheAgent/ApachePostParser.cpp
   trunk/MgDev/Web/src/CgiAgent/CgiPostParser.cpp
   trunk/MgDev/Web/src/DotNetUnmanagedApi/Foundation/FoundationApiGen.xml
   trunk/MgDev/Web/src/DotNetUnmanagedApi/Foundation/FoundationConstants.xml
   trunk/MgDev/Web/src/DotNetUnmanagedApi/Geometry/GeometryApiGen.xml
   trunk/MgDev/Web/src/DotNetUnmanagedApi/MapGuideCommon/MapGuideCommonApiGen.xml
   trunk/MgDev/Web/src/DotNetUnmanagedApi/PlatformBase/PlatformBaseApiGen.xml
   trunk/MgDev/Web/src/DotNetUnmanagedApi/catchall.code
   trunk/MgDev/Web/src/HttpHandler/HttpClearTileCache.cpp
   trunk/MgDev/Web/src/HttpHandler/HttpCreateRuntimeMap.cpp
   trunk/MgDev/Web/src/HttpHandler/HttpCreateSession.cpp
   trunk/MgDev/Web/src/HttpHandler/HttpCsConvertCoordinateSystemCodeToWkt.cpp
   trunk/MgDev/Web/src/HttpHandler/HttpCsConvertEpsgCodeToWkt.cpp
   trunk/MgDev/Web/src/HttpHandler/HttpCsConvertWktToCoordinateSystemCode.cpp
   trunk/MgDev/Web/src/HttpHandler/HttpCsConvertWktToEpsgCode.cpp
   trunk/MgDev/Web/src/HttpHandler/HttpCsGetBaseLibrary.cpp
   trunk/MgDev/Web/src/HttpHandler/HttpCsIsValid.cpp
   trunk/MgDev/Web/src/HttpHandler/HttpCsTransformCoordinates.cpp
   trunk/MgDev/Web/src/HttpHandler/HttpDescribeRuntimeMap.cpp
   trunk/MgDev/Web/src/HttpHandler/HttpEnumerateUnmanagedData.cpp
   trunk/MgDev/Web/src/HttpHandler/HttpGeoBinaryOperation.cpp
   trunk/MgDev/Web/src/HttpHandler/HttpGeoBoundary.cpp
   trunk/MgDev/Web/src/HttpHandler/HttpGeoBuffer.cpp
   trunk/MgDev/Web/src/HttpHandler/HttpGeoConvexHull.cpp
   trunk/MgDev/Web/src/HttpHandler/HttpGeoDistance.cpp
   trunk/MgDev/Web/src/HttpHandler/HttpGeoSimplify.cpp
   trunk/MgDev/Web/src/HttpHandler/HttpGeoSpatialPredicate.cpp
   trunk/MgDev/Web/src/HttpHandler/HttpGeoTessellate.cpp
   trunk/MgDev/Web/src/HttpHandler/HttpGeometryInfo.cpp
   trunk/MgDev/Web/src/HttpHandler/HttpGetDefaultTileSizeX.cpp
   trunk/MgDev/Web/src/HttpHandler/HttpGetDefaultTileSizeY.cpp
   trunk/MgDev/Web/src/HttpHandler/HttpGetDrawingCoordinateSpace.cpp
   trunk/MgDev/Web/src/HttpHandler/HttpGetDwfViewerPage.cpp
   trunk/MgDev/Web/src/HttpHandler/HttpGetDynamicMapOverlayImage.cpp
   trunk/MgDev/Web/src/HttpHandler/HttpGetHtmlViewerPage.cpp
   trunk/MgDev/Web/src/HttpHandler/HttpGetIdentityProperties.cpp
   trunk/MgDev/Web/src/HttpHandler/HttpGetLongTransactions.cpp
   trunk/MgDev/Web/src/HttpHandler/HttpGetMapImage.cpp
   trunk/MgDev/Web/src/HttpHandler/HttpGetPlot.cpp
   trunk/MgDev/Web/src/HttpHandler/HttpGetSessionTimeout.cpp
   trunk/MgDev/Web/src/HttpHandler/HttpGetSpatialContexts.cpp
   trunk/MgDev/Web/src/HttpHandler/HttpGetTileImage.cpp
   trunk/MgDev/Web/src/HttpHandler/HttpGetTileProviders.cpp
   trunk/MgDev/Web/src/HttpHandler/HttpKmlGetFeatures.cpp
   trunk/MgDev/Web/src/HttpHandler/HttpKmlGetLayer.cpp
   trunk/MgDev/Web/src/HttpHandler/HttpPrimitiveValue.cpp
   trunk/MgDev/Web/src/HttpHandler/HttpQueryMapFeatures.cpp
   trunk/MgDev/Web/src/HttpHandler/HttpRequest.cpp
   trunk/MgDev/Web/src/HttpHandler/HttpRequestResponseHandler.cpp
   trunk/MgDev/Web/src/HttpHandler/HttpResourceExists.cpp
   trunk/MgDev/Web/src/HttpHandler/HttpTestConnection.cpp
   trunk/MgDev/Web/src/HttpHandler/HttpWfsGetFeature.cpp
   trunk/MgDev/Web/src/HttpHandler/HttpWmsGetMap.cpp
   trunk/MgDev/Web/src/HttpHandler/ReaderByteSourceImpl.cpp
   trunk/MgDev/Web/src/IsapiAgent/IsapiPostParser.cpp
   trunk/MgDev/Web/src/JavaApi/catchall.code
   trunk/MgDev/Web/src/JavaApiEx/catchall.code
   trunk/MgDev/Web/src/MapGuideApi/Constants.xml
   trunk/MgDev/Web/src/MapGuideApi/MapGuideApiGen.xml
   trunk/MgDev/Web/src/PhpApi/catchall.code
   trunk/MgDev/Web/src/WebApp/WebCommand.cpp
   trunk/MgDev/Web/src/WebApp/WebFlyoutWidget.cpp
   trunk/MgDev/Web/src/WebApp/WebInvokeUrlCommand.cpp
   trunk/MgDev/Web/src/WebApp/WebLayout.cpp
   trunk/MgDev/Web/src/WebApp/WebPrintCommand.cpp
   trunk/MgDev/Web/src/WebApp/WebSearchCommand.cpp
   trunk/MgDev/Web/src/WebApp/WebTaskBar.cpp
   trunk/MgDev/Web/src/WebApp/WebTaskPane.cpp
   trunk/MgDev/Web/src/WebApp/WebToolbar.cpp
   trunk/MgDev/Web/src/WebSupport/InitializeWebTier.cpp
   trunk/MgDev/Web/src/mapviewerjava/mainframe.jsp
   trunk/MgDev/Web/src/mapviewernet/mainframe.aspx
   trunk/MgDev/Web/src/mapviewerphp/mainframe.php
   trunk/MgDev/Web/src/schemareport/showclass.php
   trunk/MgDev/Web/src/schemareport/showgeom.php
Log:
Merged revision(s) 9743-9755 from sandbox/jng/flatten_exceptions:
Remove all exceptions in Foundation and modify all throws to throw MgException, \
                passing an exception code instead.
........
Remove all exceptions in Geometry/CoordinateSystem and modify all throws to throw \
                MgException, passing an exception code instead.
........
Remove all exceptions in PlatformBase and modify all throws to throw MgException, \
                passing an exception code instead.
........
Remove all exceptions in MapGuideCommon and modify all throws to throw MgException, \
                passing an exception code instead.
........
Remove all exceptions from the rest of the server tier and modify all throws to throw \
                MgException, passing an exception code instead.
........
Remove all exceptions from the rest of the web tier and modify all throws to throw \
MgException, passing an exception code instead. Remove all non-MgException classes \
                from SWIG config files. Add MgExceptionCodes to SWIG constants files.
........
Remove all exceptions from mg-desktop and modify all throws to throw MgException, \
passing an exception code instead. Remove all non-MgException classes from SWIG \
                config files. Add MgExceptionCodes to SWIG constants files.
........
Fix linux build
........
Fix up mg-desktop unit test runner
........
Fix APi doc for GetNativeErrorCode
........
Disable site manager tests wholesale until further notice
........
Fix up MgException handling in downstream api consumers / test code.
........
Fix incorrect operator
........


Index: trunk/MgDev
===================================================================
--- trunk/MgDev	2022-09-15 10:14:11 UTC (rev 9970)
+++ trunk/MgDev	2022-10-10 09:40:18 UTC (rev 9971)

Property changes on: trunk/MgDev
___________________________________________________________________
Modified: svn:mergeinfo
## -18,6 +18,7 ##
 /sandbox/jng/createruntimemap:7486-7555
 /sandbox/jng/deprecate_dwf:9439-9440,9442,9447,9449-9450
 /sandbox/jng/dwftk:8321-8324,8328-8329,8331,8352
+/sandbox/jng/flatten_exceptions:9743-9755
 /sandbox/jng/fusion_entrypoint_refactor:9400-9406
 /sandbox/jng/geoprocessing:9205-9229
 /sandbox/jng/geos34x:8256-8259
Modified: trunk/MgDev/Common/CoordinateSystem/CoordSys.cpp
===================================================================
--- trunk/MgDev/Common/CoordinateSystem/CoordSys.cpp	2022-09-15 10:14:11 UTC (rev \
                9970)
+++ trunk/MgDev/Common/CoordinateSystem/CoordSys.cpp	2022-10-10 09:40:18 UTC (rev \
9971) @@ -119,7 +119,7 @@
         assert(bResult);
         if (!bResult)
         {
-            throw new \
MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystem.InitFromCatalog", \
__LINE__, __WFILE__, NULL, L"", NULL); +            throw new \
MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystem.InitFromCatalog", __LINE__, __WFILE__, NULL, L"", NULL);  }
         return;
     }
@@ -153,7 +153,7 @@
                 Ptr<MgDisposable> disposableCsObject = datumMapIterator->second;
                 MgCoordinateSystemDatum* datumInfo = \
dynamic_cast<MgCoordinateSystemDatum*>(disposableCsObject.p);  if (NULL == datumInfo)
-                    throw new \
MgInvalidArgumentException(L"MgCoordinateSystem.InitFromCatalog", __LINE__, \
__WFILE__, NULL, L"", NULL); +                    throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystem.InitFromCatalog", __LINE__, __WFILE__, NULL, L"", NULL);  
                 pDatum = SAFE_ADDREF(datumInfo);
             }
@@ -164,7 +164,7 @@
             Ptr<MgCoordinateSystemDatumDictionary> pDtDict = \
m_pCatalog->GetDatumDictionary();  if (!pDtDict)
             {
-                throw new \
MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystem.InitFromCatalog", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemNoDatumDictionaryException", NULL); +  \
throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystem.InitFromCatalog", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemNoDatumDictionaryException", NULL);  }
 
             pDatum = pDtDict->Get(sDtName);
@@ -171,7 +171,7 @@
             assert(pDatum);
             if (!pDatum)
             {
-                throw new \
MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystem.InitFromCatalog", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemNoDatumInDictionaryException", NULL); \
+                throw new \
MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystem.InitFromCatalog", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemNoDatumInDictionaryException", NULL);  }
         }
 
@@ -195,7 +195,7 @@
                 Ptr<MgDisposable> disposableCsObject = ellipsoidMapIterator->second;
                 MgCoordinateSystemEllipsoid* ellipsoidInfo = \
dynamic_cast<MgCoordinateSystemEllipsoid*>(disposableCsObject.p);  if (NULL == \
                ellipsoidInfo)
-                    throw new \
MgInvalidArgumentException(L"MgCoordinateSystem.InitFromCatalog", __LINE__, \
__WFILE__, NULL, L"", NULL); +                    throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystem.InitFromCatalog", __LINE__, __WFILE__, NULL, L"", NULL);  
                 pEllipsoid = SAFE_ADDREF(ellipsoidInfo);
             }
@@ -207,7 +207,7 @@
             Ptr<MgCoordinateSystemEllipsoidDictionary> pElDict = \
m_pCatalog->GetEllipsoidDictionary();  if (!pElDict)
             {
-                throw new \
MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystem.InitFromCatalog", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemNoEllipsoidDictionaryException", \
NULL); +                throw new \
MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystem.InitFromCatalog", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemNoEllipsoidDictionaryException", NULL);  }
 
             pEllipsoid = pElDict->Get(sElName);
@@ -214,7 +214,7 @@
             assert(pEllipsoid);
             if (!pEllipsoid)
             {
-                throw new \
MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystem.InitFromCatalog", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemNoEllipsoidInDictionaryException", \
NULL); +                throw new \
MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystem.InitFromCatalog", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemNoEllipsoidInDictionaryException", NULL);  }
         }
 
@@ -283,7 +283,7 @@
         pCoordinate = new MgCoordinateXYM(x, y, lonLat->GetM());
         if (!pCoordinate)
         {
-            throw new \
MgOutOfMemoryException(L"MgCoordinateSystem.ConvertFromLonLat", __LINE__, __WFILE__, \
NULL, L"", NULL); +            throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystem.ConvertFromLonLat", __LINE__, __WFILE__, NULL, L"", NULL);  }
     }
     else if(lonLat->GetDimension() == MgCoordinateDimension::XYZ)
@@ -298,13 +298,13 @@
         pCoordinate = new MgCoordinateXYZM(x, y, z, lonLat->GetM());
         if (!pCoordinate)
         {
-            throw new \
MgOutOfMemoryException(L"MgCoordinateSystem.ConvertFromLonLat", __LINE__, __WFILE__, \
NULL, L"", NULL); +            throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystem.ConvertFromLonLat", __LINE__, __WFILE__, NULL, L"", NULL);  }
     }
     else
     {
         // What dimension is this?
-        throw new MgInvalidArgumentException(L"MgCoordinateSystem.ConvertFromLonLat", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystem.ConvertFromLonLat", __LINE__, __WFILE__, NULL, L"", NULL);  }
     MG_CATCH_AND_THROW(L"MgCoordinateSystem.ConvertFromLonLat")
 
@@ -329,7 +329,7 @@
         pCoordinate = new MgCoordinateXYM(dLongitude, dLatitude, \
coordinate->GetM());  if (!pCoordinate)
         {
-            throw new MgOutOfMemoryException(L"MgCoordinateSystem.ConvertToLonLat", \
__LINE__, __WFILE__, NULL, L"", NULL); +            throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystem.ConvertToLonLat", __LINE__, __WFILE__, NULL, L"", NULL);  }
     }
     else if(coordinate->GetDimension() == MgCoordinateDimension::XYZ)
@@ -344,13 +344,13 @@
         pCoordinate = new MgCoordinateXYZM(dLongitude, dLatitude, dZDest, \
coordinate->GetM());  if (!pCoordinate)
         {
-            throw new MgOutOfMemoryException(L"MgCoordinateSystem.ConvertToLonLat", \
__LINE__, __WFILE__, NULL, L"", NULL); +            throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystem.ConvertToLonLat", __LINE__, __WFILE__, NULL, L"", NULL);  }
     }
     else
     {
         // What dimension is this?
-        throw new MgInvalidArgumentException(L"MgCoordinateSystem.ConvertToLonLat", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystem.ConvertToLonLat", __LINE__, __WFILE__, NULL, L"", NULL);  }
     MG_CATCH_AND_THROW(L"MgCoordinateSystem.ConvertToLonLat")
 
@@ -493,7 +493,7 @@
     // and there must be a Great Circle path between the points.
     if(GetType() == MgCoordinateSystemType::Arbitrary)
     {
-        throw new MgInvalidCoordinateSystemTypeException(L"MgCoordinateSystem.MeasureGreatCircleDistance", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemMustNotBeArbitrary", NULL); +        \
throw new MgException(MgExceptionCodes::MgInvalidCoordinateSystemTypeException, \
L"MgCoordinateSystem.MeasureGreatCircleDistance", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemMustNotBeArbitrary", NULL);  }
 
     Ptr<MgCoordinate> pLonLat1=ConvertToLonLat(x1, y1);
@@ -731,12 +731,12 @@
     pErrs = new int[nNumErrs];
     if (NULL == pErrs)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystem.GetErrors", __LINE__, \
__WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystem.GetErrors", __LINE__, __WFILE__, NULL, L"", NULL);  }
     pErrsInt32 = new INT32[nNumErrs];
     if (NULL == pErrsInt32)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystem.GetErrors", __LINE__, \
__WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystem.GetErrors", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
     //Get the errors
@@ -750,7 +750,7 @@
 
     if (NULL == pNewEnum.p)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystem.GetErrors", __LINE__, \
__WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystem.GetErrors", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
     //Copy in the results.  Mentor wants a list of ints, \
MgCoordinateSystemEnumInteger32 @@ -790,12 +790,12 @@
     MG_TRY()
     if (!m_pCatalog)
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystem.ToString", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystem.ToString", __LINE__, __WFILE__, NULL, L"", NULL);  }
     Ptr<MgCoordinateSystemFormatConverter> \
pConverter=m_pCatalog->GetFormatConverter();  if (!pConverter)
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystem.ToString", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystem.ToString", __LINE__, __WFILE__, NULL, L"", NULL);  }
     sWkt=pConverter->DefinitionToWkt(this, MgCoordinateSystemWktFlavor::Ogc);
     MG_CATCH_AND_THROW(L"MgCoordinateSystem.ToString")
@@ -812,7 +812,7 @@
     wchar_t* pUnit = Convert_UTF8_To_Wide(m_csprm.csdef.unit);
     if (NULL == pUnit)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystem.GetUnits", __LINE__, \
__WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, L"MgCoordinateSystem.GetUnits", \
__LINE__, __WFILE__, NULL, L"", NULL);  }
     STRING sUnit(pUnit);
     delete[] pUnit;
@@ -838,7 +838,7 @@
     //Can't change read-only items
     if (Protected())
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystem.SetUnitCode", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemProtectedException", NULL); +        \
throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystem.SetUnitCode", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemProtectedException", NULL);  }
 
     //Make sure the projection's been properly set
@@ -846,7 +846,7 @@
     if (MgCoordinateSystemProjectionCode::Unknown == prj)
     {
         //Projection hasn't been properly set, so we can't set the unit type.
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystem.SetUnitCode", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemNotReadyException", NULL); +        \
throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystem.SetUnitCode", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemNotReadyException", NULL);  }
 
     //Make sure it's a unit type we know about
@@ -855,7 +855,7 @@
     if (!GetUnitInfo(unit, &unitType, &dScale))
     {
         //Unknown unit type.
-        throw new MgInvalidArgumentException(L"MgCoordinateSystem.SetUnitCode", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystem.SetUnitCode", __LINE__, __WFILE__, NULL, L"", NULL);  }
     assert(dScale > 0.0);
     assert(MgCoordinateSystemUnitType::Unknown != unitType);
@@ -866,7 +866,7 @@
     if (prjUnitType != unitType)
     {
         //Wrong unit type for this projection.
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystem.SetUnitCode", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemMismatchException", NULL); +        \
throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystem.SetUnitCode", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemMismatchException", NULL);  }
 
     //Okay, we're all set.  Copy in the values...
@@ -978,7 +978,7 @@
     wchar_t* pName = Convert_UTF8_To_Wide(m_csprm.csdef.key_nm);
     if (NULL == pName)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystem.GetCsCode", __LINE__, \
__WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystem.GetCsCode", __LINE__, __WFILE__, NULL, L"", NULL);  }
     sName=pName;
     delete[] pName;
@@ -999,13 +999,13 @@
     if (Protected())
     {
         //Can't modify a read-only object.
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystem.SetCsCode", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemProtectedException", NULL); +        \
throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystem.SetCsCode", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemProtectedException", NULL);  }
 
     if (sCode.empty())
     {
         //null pointer is obviously not legal...
-        throw new MgInvalidArgumentException(L"MgCoordinateSystem.SetCsCode", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystem.SetCsCode", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
     //Convert to a C++ string, for Mentor's sake
@@ -1012,7 +1012,7 @@
     char *pStr = Convert_Wide_To_UTF8(sCode.c_str()); //need to delete[] pStr
     if (NULL == pStr)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystem.SetCsCode", __LINE__, \
__WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystem.SetCsCode", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
     //Try to make a legal name.  CS_nampp() legalizes the
@@ -1024,7 +1024,7 @@
     {
         //illegal string
         delete [] pStr;
-        throw new MgInvalidArgumentException(L"MgCoordinateSystem.SetCsCode", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystem.SetCsCode", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
     //Copy into the definition
@@ -1058,7 +1058,7 @@
     wchar_t* pProjection = Convert_UTF8_To_Wide(m_csprm.csdef.prj_knm);
     if (NULL == pProjection)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystem.GetProjection", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystem.GetProjection", __LINE__, __WFILE__, NULL, L"", NULL);  }
     sProjection=pProjection;
     delete[] pProjection;
@@ -1091,13 +1091,13 @@
     if (Protected())
     {
         //Can't change read-only items
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystem.SetProjectionCode", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemProtectedException", NULL); +        \
throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystem.SetProjectionCode", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemProtectedException", NULL);  }
 
     if (MgCoordinateSystemProjectionCode::Unknown==prjType)
     {
         //cs_UNKWN_PROJ
-        throw new MgInvalidArgumentException(L"MgCoordinateSystem.SetProjectionCode", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystem.SetProjectionCode", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
     //Set the projection string
@@ -1106,7 +1106,7 @@
     if (!kpProj)
     {
         //cs_UNKWN_PROJ
-        throw new MgInvalidArgumentException(L"MgCoordinateSystem.SetProjectionCode", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystem.SetProjectionCode", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
     //if same as the existing projection, do nothing
@@ -1124,7 +1124,7 @@
     if (!pp)
     {
         //cs_UNKWN_PROJ
-        throw new MgInvalidArgumentException(L"MgCoordinateSystem.SetProjectionCode", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystem.SetProjectionCode", __LINE__, __WFILE__, NULL, L"", NULL);  }
     m_csprm.prj_code = pp->code;
     m_csprm.prj_flags = pp->flags;
@@ -1204,7 +1204,7 @@
     wchar_t* pDatum = Convert_UTF8_To_Wide(m_csprm.csdef.dat_knm);
     if (NULL == pDatum)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystem.GetDatum", __LINE__, \
__WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, L"MgCoordinateSystem.GetDatum", \
__LINE__, __WFILE__, NULL, L"", NULL);  }
     sDatum=pDatum;
     delete[] pDatum;
@@ -1266,7 +1266,7 @@
     wchar_t* pEllipsoid = Convert_UTF8_To_Wide(m_csprm.csdef.elp_knm);
     if (NULL == pEllipsoid)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystem.GetEllipsoid", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystem.GetEllipsoid", __LINE__, __WFILE__, NULL, L"", NULL);  }
     sEllipsoid=pEllipsoid;
     delete[] pEllipsoid;
@@ -1379,19 +1379,19 @@
     Ptr<MgCoordinateSystemCategoryDictionary> \
pCtDict=m_pCatalog->GetCategoryDictionary();  if (!pCtDict)
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystem.GetCategories", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemNoCategoryDictionaryException", NULL); \
+        throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystem.GetCategories", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemNoCategoryDictionaryException", NULL);  }
     //get the category dictionary pointer
     Ptr<MgCoordinateSystemEnum> pEnumCategories=pCtDict->GetEnum();
     if (!pEnumCategories)
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystem.GetCategories", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystem.GetCategories", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
    pCategoryNames = new MgStringCollection();
    if (!pCategoryNames)
    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystem.GetCategories", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystem.GetCategories", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
     //list all the categories one by one
@@ -1530,7 +1530,7 @@
         Ptr<MgCoordinateSystemDatumDictionary> \
pDtDict=pCatalog->GetDatumDictionary();  if (!pDtDict)
         {
-            throw new \
MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystem.IsUsable", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemNoDatumDictionaryException", NULL); +  \
throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystem.IsUsable", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemNoDatumDictionaryException", NULL);  }
 
         //Build a wchar_t* from the datum name
@@ -1537,7 +1537,7 @@
         wchar_t* pStrDt = Convert_UTF8_To_Wide(m_csprm.csdef.dat_knm);
         if (NULL == pStrDt)
         {
-            throw new MgOutOfMemoryException(L"MgCoordinateSystem.IsUsable", \
__LINE__, __WFILE__, NULL, L"", NULL); +            throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, L"MgCoordinateSystem.IsUsable", \
__LINE__, __WFILE__, NULL, L"", NULL);  }
         STRING strDt(pStrDt);
         delete[] pStrDt;
@@ -1554,7 +1554,7 @@
         Ptr<MgCoordinateSystemEllipsoidDictionary> \
pElDict=pCatalog->GetEllipsoidDictionary();  if (!pElDict)
         {
-            throw new \
MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystem.IsUsable", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemNoEllipsoidDictionaryException", \
NULL); +            throw new \
MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystem.IsUsable", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemNoEllipsoidDictionaryException", NULL);  }
 
         //Build a wchar_t* from the ellipsoid name
@@ -1561,7 +1561,7 @@
         wchar_t* pStrEl = Convert_UTF8_To_Wide(m_csprm.csdef.elp_knm);
         if (NULL == pStrEl)
         {
-            throw new MgOutOfMemoryException(L"MgCoordinateSystem.IsUsable", \
__LINE__, __WFILE__, NULL, L"", NULL); +            throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, L"MgCoordinateSystem.IsUsable", \
__LINE__, __WFILE__, NULL, L"", NULL);  }
         STRING strEl(pStrEl);
         delete[] pStrEl;
@@ -1600,7 +1600,7 @@
     bool bResult = BuildCsDefFromInterface(pCsDef, def);
     if (!bResult)
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystem.IsSameAs", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystem.IsSameAs", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
     //And compare with this one!
@@ -1705,7 +1705,7 @@
     //Make an object to be the copy
     if (NULL == pNew.p)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystem.CreateClone", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystem.CreateClone", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
     //Copy data members into the new object.  NOTE:  if new
@@ -1723,7 +1723,7 @@
         Ptr<MgCoordinateSystemDatum> pDtClone=m_pDatum->CreateClone();
         if (NULL == pDtClone.p)
         {
-            throw new MgOutOfMemoryException(L"MgCoordinateSystem.CreateClone", \
__LINE__, __WFILE__, NULL, L"", NULL); +            throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystem.CreateClone", __LINE__, __WFILE__, NULL, L"", NULL);  }
         pNew->m_pDatum = pDtClone;
     }
@@ -1733,7 +1733,7 @@
         Ptr<MgCoordinateSystemEllipsoid> pElClone=m_pEllipsoid->CreateClone();
         if (NULL == pElClone.p)
         {
-            throw new MgOutOfMemoryException(L"MgCoordinateSystem.CreateClone", \
__LINE__, __WFILE__, NULL, L"", NULL); +            throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystem.CreateClone", __LINE__, __WFILE__, NULL, L"", NULL);  }
         pNew->m_pEllipsoid = pElClone;
     }
@@ -1757,7 +1757,7 @@
     wchar_t* pDesc = Convert_UTF8_To_Wide(m_csprm.csdef.desc_nm);
     if (NULL == pDesc)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystem.GetDescription", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystem.GetDescription", __LINE__, __WFILE__, NULL, L"", NULL);  }
     sDesc=pDesc;
     delete[] pDesc;
@@ -1797,7 +1797,7 @@
     wchar_t* pGroup = Convert_UTF8_To_Wide(m_csprm.csdef.group);
     if (NULL == pGroup)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystem.GetGroup", __LINE__, \
__WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, L"MgCoordinateSystem.GetGroup", \
__LINE__, __WFILE__, NULL, L"", NULL);  }
     sGroup=pGroup;
     delete[] pGroup;
@@ -1835,7 +1835,7 @@
     wchar_t* pSource = Convert_UTF8_To_Wide(m_csprm.csdef.source);
     if (NULL == pSource)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystem.GetSource", __LINE__, \
__WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystem.GetSource", __LINE__, __WFILE__, NULL, L"", NULL);  }
     sSource=pSource;
     delete[] pSource;
@@ -1917,7 +1917,7 @@
     wchar_t* pLoc = Convert_UTF8_To_Wide(m_csprm.csdef.locatn);
     if (NULL == pLoc)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystem.GetLocation", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystem.GetLocation", __LINE__, __WFILE__, NULL, L"", NULL);  }
     sLoc=pLoc;
     delete[] pLoc;
@@ -1957,7 +1957,7 @@
     wchar_t* pCntrySt = Convert_UTF8_To_Wide(m_csprm.csdef.cntry_st);
     if (NULL == pCntrySt)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystem.GetCountryOrState", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystem.GetCountryOrState", __LINE__, __WFILE__, NULL, L"", NULL);  }
     sCntrySt=pCntrySt;
     delete[] pCntrySt;
@@ -2010,7 +2010,7 @@
     if (MgCoordinateSystemProjectionCode::Unknown == nProjectionCode)
     {
         //Projection type hasn't been properly initialized.
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystem.GetProjectionParamCount", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemMismatchException", NULL); +        \
throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystem.GetProjectionParamCount", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemMismatchException", NULL);  }
 
     // Now for each possible parameter.
@@ -2043,7 +2043,7 @@
     //Make sure the parameter is in the valid range
     if ((nIndex < 1) || (nIndex > knCsNumParams))
     {
-        throw new MgInvalidArgumentException(L"MgCoordinateSystem.GetProjectionParameter", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystem.GetProjectionParameter", __LINE__, __WFILE__, NULL, L"", NULL);  \
}  
     //Make sure that this parameter is used by this projection
@@ -2051,7 +2051,7 @@
     if (MgCoordinateSystemProjectionCode::Unknown == prj)
     {
         //Projection type hasn't been properly initialized.
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystem.GetProjectionParameter", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemMismatchException", NULL); +        \
throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystem.GetProjectionParameter", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemMismatchException", NULL);  }
     short prjCode = prj;
     //The following function call returns 1 if this
@@ -2065,7 +2065,7 @@
     if (1 != nResult)
     {
         //The parameter isn't used.
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystem.GetProjectionParameter", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemMismatchException", NULL); +        \
throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystem.GetProjectionParameter", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemMismatchException", NULL);  }
 
     //The parameter is used.  Return it.
@@ -2093,13 +2093,13 @@
     //Can't change read-only items
     if (Protected())
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystem.SetProjectionParameter", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemProtectedException", NULL); +        \
throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystem.SetProjectionParameter", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemProtectedException", NULL);  }
 
     //Make sure the parameter is in the valid range
     if ((nIndex < 1) || (nIndex > knCsNumParams))
     {
-        throw new MgInvalidArgumentException(L"MgCoordinateSystem.SetProjectionParameter", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystem.SetProjectionParameter", __LINE__, __WFILE__, NULL, L"", NULL);  \
}  
     //Make sure this parameter is used by this projection
@@ -2107,7 +2107,7 @@
     if (MgCoordinateSystemProjectionCode::Unknown == prj)
     {
         //Projection type hasn't been properly initialized.
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystem.SetProjectionParameter", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemMismatchException", NULL); +        \
throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystem.SetProjectionParameter", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemMismatchException", NULL);  }
     struct cs_Prjprm_ info;
     short prjCode = prj;
@@ -2123,7 +2123,7 @@
     {
         //The specified parameter isn't used by this
         //projection.
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystem.SetProjectionParameter", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemMismatchException", NULL); +        \
throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystem.SetProjectionParameter", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemMismatchException", NULL);  }
 
     //Okay, at this point we know our projection type
@@ -2134,7 +2134,7 @@
     if ((dValue < info.min_val) || (dValue > info.max_val))
     {
         //They've given us an illegal value!
-        throw new MgInvalidArgumentException(L"MgCoordinateSystem.SetProjectionParameter", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystem.SetProjectionParameter", __LINE__, __WFILE__, NULL, L"", NULL);  \
}  
     //Okay, the value they've given us is legitimate, too.
@@ -2166,7 +2166,7 @@
     //Make sure we're not read-only
     if (Protected())
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystem.SetOriginLongitude", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemProtectedException", NULL); +        \
throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystem.SetOriginLongitude", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemProtectedException", NULL);  }
 
     m_csprm.csdef.org_lng = dOrgLng;
@@ -2193,7 +2193,7 @@
     //Make sure we're not read-only
     if (Protected())
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystem.SetOriginLatitude", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemProtectedException", NULL); +        \
throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystem.SetOriginLatitude", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemProtectedException", NULL);  }
 
     m_csprm.csdef.org_lat = dOrgLat;
@@ -2223,7 +2223,7 @@
     if (Protected())
     {
         //Can't modify a read-only object.
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystem.SetOffsets", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemProtectedException", NULL); +        \
throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystem.SetOffsets", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemProtectedException", NULL);  }
 
     m_csprm.csdef.x_off = dXOffset;
@@ -2258,7 +2258,7 @@
     if (Protected())
     {
         //Can't modify a read-only object.
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystem.SetScaleReduction", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemProtectedException", NULL); +        \
throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystem.SetScaleReduction", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemProtectedException", NULL);  }
     INT32 prj = ProjectionFromString(m_csprm.csdef.prj_knm);
     if (ProjectionUsesSclRed(prj))
@@ -2287,7 +2287,7 @@
     if (Protected())
     {
         //Can't modify a read-only object.
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystem.SetMapScale", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemProtectedException", NULL); +        \
throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystem.SetMapScale", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemProtectedException", NULL);  }
 
     m_csprm.csdef.map_scl = dMapScale;
@@ -2319,7 +2319,7 @@
     if (Protected())
     {
         //Can't modify a read-only object.
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystem.SetZeroes", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemProtectedException", NULL); +        \
throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystem.SetZeroes", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemProtectedException", NULL);  }
 
     m_csprm.csdef.zero[0] = (dXZero < 0.0)? 0.0 : dXZero;
@@ -2373,7 +2373,7 @@
     if (Protected())
     {
         //Can't modify a read-only object.
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystem.SetLonLatBounds", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemProtectedException", NULL); +        \
throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystem.SetLonLatBounds", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemProtectedException", NULL);  }
 
     OrderMinMax(dLonMin, dLonMax);
@@ -2403,7 +2403,7 @@
     if (Protected())
     {
         //Can't modify a read-only object.
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystem.CancelLonLatBounds", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemProtectedException", NULL); +        \
throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystem.CancelLonLatBounds", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemProtectedException", NULL);  }
 
     //it will only be set on CsMap's transformation struct, i.e.
@@ -2428,7 +2428,7 @@
     //Make sure we're not read-only
     if (Protected())
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystem.SetXYBounds", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemProtectedException", NULL); +        \
throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystem.SetXYBounds", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemProtectedException", NULL);  }
 
     OrderMinMax(dXMin, dXMax);
@@ -2452,7 +2452,7 @@
     //Make sure we're not read-only
     if (Protected())
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystem.CancelXYBounds", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemProtectedException", NULL); +        \
throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystem.CancelXYBounds", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemProtectedException", NULL);  }
 
     m_csprm.min_xy[0] = 0.0;
@@ -2481,12 +2481,12 @@
     //Make sure we're not read-only
     if (Protected())
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystem.SetQuadrant", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemProtectedException", NULL); +        \
throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystem.SetQuadrant", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemProtectedException", NULL);  }
 
     if ((sQuad < -4) || (sQuad > 4) || (0 == sQuad))
     {
-        throw new MgInvalidArgumentException(L"MgCoordinateSystem.SetQuadrant", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystem.SetQuadrant", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
     m_csprm.csdef.quad = sQuad;
@@ -2524,21 +2524,21 @@
     if (Protected())
     {
         //Can't modify a read-only object.
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystem.SetDatum", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemProtectedException", NULL); +        \
throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystem.SetDatum", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemProtectedException", NULL);  }
     //no DT or EL if NERTH projection is used
     if (ProjectionIsNerthType (GetProjectionCode()))
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystem.SetDatum", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemNoDatumIfArbitraryException", NULL); + \
throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystem.SetDatum", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemNoDatumIfArbitraryException", NULL);  }
     if (!IsLegalMentorName(sDatum.c_str()))
     {
-        throw new MgInvalidArgumentException(L"MgCoordinateSystem.SetDatum", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystem.SetDatum", __LINE__, __WFILE__, NULL, L"", NULL);  }
     char *pStr = Convert_Wide_To_UTF8(sDatum.c_str()); //need to delete[] pStr
     if (NULL == pStr)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystem.SetDatum", __LINE__, \
__WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, L"MgCoordinateSystem.SetDatum", \
__LINE__, __WFILE__, NULL, L"", NULL);  }
 
     memset(m_csprm.csdef.dat_knm, 0, sizeof(m_csprm.csdef.key_nm));
@@ -2553,21 +2553,21 @@
     if (Protected())
     {
         //Can't modify a read-only object.
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystem.SetEllipsoid", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemProtectedException", NULL); +        \
throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystem.SetEllipsoid", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemProtectedException", NULL);  }
     //no DT or EL if NERTH projection is used
     if (ProjectionIsNerthType (GetProjectionCode()))
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystem.SetEllipsoid", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemNoDatumIfArbitraryException", NULL); + \
throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystem.SetEllipsoid", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemNoDatumIfArbitraryException", NULL);  }
     if (!IsLegalMentorName(sEllipsoid.c_str()))
     {
-        throw new MgInvalidArgumentException(L"MgCoordinateSystem.SetEllipsoid", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystem.SetEllipsoid", __LINE__, __WFILE__, NULL, L"", NULL);  }
     char *pStr = Convert_Wide_To_UTF8(sEllipsoid.c_str()); //need to delete[] pStr
     if (NULL == pStr)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystem.SetEllipsoid", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystem.SetEllipsoid", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
     memset(m_csprm.csdef.dat_knm, 0, sizeof(m_csprm.csdef.key_nm));
@@ -2601,7 +2601,7 @@
     if (Protected())
     {
         //Can't modify a read-only object.
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystem.SetDatumDefinition", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemProtectedException", NULL); +        \
throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystem.SetDatumDefinition", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemProtectedException", NULL);  }
     */
 
@@ -2608,7 +2608,7 @@
     //no DT or EL if NERTH projection is used
     if (ProjectionIsNerthType (GetProjectionCode()))
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystem.SetDatumDefinition", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemNoDatumIfArbitraryException", NULL); + \
throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystem.SetDatumDefinition", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemNoDatumIfArbitraryException", NULL);  }
 
     //Get information out of the datum def
@@ -2616,7 +2616,7 @@
     bool bResult = BuildDtDefFromInterface(pDatum, dtdef);
     if (!bResult)
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystem.SetDatumDefinition", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystem.SetDatumDefinition", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
     //If the coordinate system is not geodetic we need to switch it
@@ -2644,7 +2644,7 @@
         || (0 != CS_nampp(dtdef.key_nm))
         || (0 != CS_stricmp(m_csprm.csdef.dat_knm, dtdef.key_nm)))
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystem.SetDatumDefinition", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemMismatchException", NULL); +        \
throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystem.SetDatumDefinition", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemMismatchException", NULL);  }
 
     //Get information out of the ellipsoid def
@@ -2652,13 +2652,13 @@
     assert(pEllipsoid);
     if (!pEllipsoid)
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystem.SetDatumDefinition", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystem.SetDatumDefinition", __LINE__, __WFILE__, NULL, L"", NULL);  }
     cs_Eldef_ eldef;
     bResult = BuildElDefFromInterface(pEllipsoid, eldef);
     if (!bResult)
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystem.SetDatumDefinition", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystem.SetDatumDefinition", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
     //Okay, at this point we have a cs_Csdef_, cs_Dtdef_, and cs_Eldef_
@@ -2669,7 +2669,7 @@
     CriticalClass.Leave();
     if (NULL == pCsprm)
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystem.SetDatumDefinition", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemInternalException", NULL); +        \
throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystem.SetDatumDefinition", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemInternalException", NULL);  }
 
     //Everything worked okay!  Copy the data into our member variables.
@@ -2678,7 +2678,7 @@
     Ptr<MgCoordinateSystemDatum> pDatumClone = pDatum->CreateClone();
     if (NULL == pDatumClone.p)
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystem.SetDatumDefinition", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystem.SetDatumDefinition", __LINE__, __WFILE__, NULL, L"", NULL);  }
     m_pDatum = pDatumClone;
 
@@ -2688,7 +2688,7 @@
     //Make sure the coordinate system is valid
     if (!IsValid())
     {
-         throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystem.SetDatumDefinition", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemNotReadyException", NULL); +         \
throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystem.SetDatumDefinition", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemNotReadyException", NULL);  }
 
     MG_CATCH(L"MgCoordinateSystem.SetDatumDefinition")
@@ -2750,7 +2750,7 @@
     if (Protected())
     {
         //Can't modify a read-only object.
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystem.SetEllipsoidDefinition", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemProtectedException", NULL); +        \
throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystem.SetEllipsoidDefinition", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemProtectedException", NULL);  }
     */
 
@@ -2757,7 +2757,7 @@
     //no DT or EL if NERTH projection is used
     if (ProjectionIsNerthType (GetProjectionCode()))
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystem.SetEllipsoidDefinition", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemNoEllipsoidIfArbitraryException", \
NULL); +        throw new \
MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystem.SetEllipsoidDefinition", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemNoEllipsoidIfArbitraryException", NULL);  }
 
     //Get information out of the Ellipsoid def
@@ -2765,7 +2765,7 @@
     bool bResult = BuildElDefFromInterface(pEllipsoid, eldef);
     if (!bResult)
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystem.SetEllipsoidDefinition", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystem.SetEllipsoidDefinition", __LINE__, __WFILE__, NULL, L"", NULL);  \
}  
     //If the coordinate system is geodetic we need to switch it
@@ -2793,7 +2793,7 @@
         || (0 != CS_nampp(eldef.key_nm))
         || (0 != CS_stricmp(m_csprm.csdef.elp_knm, eldef.key_nm)))
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystem.SetEllipsoidDefinition", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemMismatchException", NULL); +        \
throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystem.SetEllipsoidDefinition", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemMismatchException", NULL);  }
 
     //Okay, at this point we have a valid cs_Csdef_ and cs_Eldef_.
@@ -2804,7 +2804,7 @@
     CriticalClass.Leave();
     if (NULL == pDatum)
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystem.SetEllipsoidDefinition", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemInternalException", NULL); +        \
throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystem.SetEllipsoidDefinition", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemInternalException", NULL);  }
 
     CriticalClass.Enter();
@@ -2812,7 +2812,7 @@
     CriticalClass.Leave();
     if (NULL == pCsprm)
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystem.SetEllipsoidDefinition", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemInternalException", NULL); +        \
throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystem.SetEllipsoidDefinition", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemInternalException", NULL);  }
 
     //We're all set.  Initialize our data members.
@@ -2821,7 +2821,7 @@
     Ptr<MgCoordinateSystemEllipsoid> pEllipsoidClone = pEllipsoid->CreateClone();
     if (NULL == pEllipsoidClone.p)
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystem.SetEllipsoidDefinition", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystem.SetEllipsoidDefinition", __LINE__, __WFILE__, NULL, L"", NULL);  \
}  m_pEllipsoid = pEllipsoidClone;
 
@@ -2830,7 +2830,7 @@
     //Make sure the coordinate system is valid
     if (!IsValid())
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystem.SetEllipsoidDefinition", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemNotReadyException", NULL); +        \
throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystem.SetEllipsoidDefinition", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemNotReadyException", NULL);  }
 
     MG_CATCH(L"MgCoordinateSystem.SetEllipsoidDefinition")
@@ -2898,7 +2898,7 @@
     else
     {
         // What dimension is this?
-        throw new MgInvalidArgumentException(L"MgCoordinateSystem.ConvertFromLonLat", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystem.ConvertFromLonLat", __LINE__, __WFILE__, NULL, L"", NULL);  }
     MG_CATCH_AND_THROW(L"MgCoordinateSystem.ConvertFromLonLat")
 }
@@ -2927,7 +2927,7 @@
     else
     {
         // What dimension is this?
-        throw new MgInvalidArgumentException(L"MgCoordinateSystem.ConvertFromLonLat", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystem.ConvertFromLonLat", __LINE__, __WFILE__, NULL, L"", NULL);  }
     MG_CATCH_AND_THROW(L"MgCoordinateSystem.ConvertFromLonLat")
 }
@@ -2948,7 +2948,7 @@
     pCoordinate=new MgCoordinateXY(dLongitude, dLatitude);
     if (!pCoordinate)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystem.ConvertToLonLat", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystem.ConvertToLonLat", __LINE__, __WFILE__, NULL, L"", NULL);  }
     MG_CATCH_AND_THROW(L"MgCoordinateSystem.ConvertToLonLat")
     return pCoordinate.Detach();
@@ -2964,7 +2964,7 @@
     pCoordinate=new MgCoordinateXYZ(dLongitude, dLatitude, dZDest);
     if (!pCoordinate)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystem.ConvertToLonLat", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystem.ConvertToLonLat", __LINE__, __WFILE__, NULL, L"", NULL);  }
     MG_CATCH_AND_THROW(L"MgCoordinateSystem.ConvertToLonLat")
     return pCoordinate.Detach();
@@ -2987,7 +2987,7 @@
     pCoordinate=new MgCoordinateXY(dX, dY);
     if (!pCoordinate)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystem.ConvertFromLonLat", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystem.ConvertFromLonLat", __LINE__, __WFILE__, NULL, L"", NULL);  }
     MG_CATCH_AND_THROW(L"MgCoordinateSystem.ConvertFromLonLat")
     return pCoordinate.Detach();
@@ -3003,7 +3003,7 @@
     pCoordinate=new MgCoordinateXYZ(dX, dY, dZDest);
     if (!pCoordinate)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystem.ConvertFromLonLat", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystem.ConvertFromLonLat", __LINE__, __WFILE__, NULL, L"", NULL);  }
     MG_CATCH_AND_THROW(L"MgCoordinateSystem.ConvertFromLonLat")
     return pCoordinate.Detach();
@@ -3060,13 +3060,13 @@
     if (Protected())
     {
         //Can't modify a read-only object.
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystem.SetString", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemProtectedException", NULL); +        \
throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystem.SetString", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemProtectedException", NULL);  }
 
     if (!IsLegalString(sSrc.c_str(), nMaxSize))
     {
         //Can't set string, caller gave us an illegal value
-        throw new MgInvalidArgumentException(L"MgCoordinateSystem.SetString", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystem.SetString", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
     //Convert to a C++ string, for Mentor's sake
@@ -3073,7 +3073,7 @@
     char *pStr = Convert_Wide_To_UTF8(sSrc.c_str()); //need to delete[] pStr
     if (NULL == pStr)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystem.SetString", __LINE__, \
__WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystem.SetString", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
     //Copy it in
@@ -3190,7 +3190,7 @@
     //Make sure we've been initialized
     if (!IsInitialized())
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystem.IsValidCoord", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemNotReadyException", NULL); +        \
throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystem.IsValidCoord", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemNotReadyException", NULL);  }
 
     //Find out whether we're in range
@@ -3232,7 +3232,7 @@
     //Make sure we're initialized
     if (!IsInitialized())
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystem.ConvertPoint", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemNotReadyException", NULL); +        \
throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystem.ConvertPoint", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemNotReadyException", NULL);  }
 
     //Do the conversion.
@@ -3252,7 +3252,7 @@
     {
         //The conversion failed, because we're outside the
         //mathematical domain of the coordinate system.
-        throw new MgCoordinateSystemConversionFailedException(L"MgCoordinateSystem.ConvertPoint", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemConversionExtentException", NULL); +   \
throw new MgException(MgExceptionCodes::MgCoordinateSystemConversionFailedException, \
L"MgCoordinateSystem.ConvertPoint", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemConversionExtentException", NULL);  }
 
     MG_CATCH_AND_THROW(L"MgCoordinateSystem.ConvertPoint")
@@ -3273,7 +3273,7 @@
     //Make sure we're initialized
     if (!IsInitialized())
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystem.GetDouble", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemNotReadyException", NULL); +        \
throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystem.GetDouble", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemNotReadyException", NULL);  }
 
     //Check the range.  We need to do this even if range checking
@@ -3289,7 +3289,7 @@
     if (nResult & cs_CNVRT_DOMN)
     {
         //Outside the mathematical domain!
-        throw new MgCoordinateSystemConversionFailedException(L"MgCoordinateSystem.GetDouble", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemConversionExtentException", NULL); +   \
throw new MgException(MgExceptionCodes::MgCoordinateSystemConversionFailedException, \
L"MgCoordinateSystem.GetDouble", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemConversionExtentException", NULL);  }
 
     //Do the conversion.
@@ -3304,7 +3304,7 @@
     {
         //WARNING
         //should really be a warning but throwing exception
-        throw new MgCoordinateSystemConversionFailedException(L"MgCoordinateSystem.GetDouble", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemConversionWarningException", NULL); +  \
throw new MgException(MgExceptionCodes::MgCoordinateSystemConversionFailedException, \
L"MgCoordinateSystem.GetDouble", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemConversionWarningException", NULL);  }
 
     MG_CATCH_AND_THROW(L"MgCoordinateSystem.GetDouble")
@@ -3326,7 +3326,7 @@
     pNew=new CCoordinateSystemMeasure(this);
     if (!pNew)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystem.GetMeasure", __LINE__, \
__WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystem.GetMeasure", __LINE__, __WFILE__, NULL, L"", NULL);  }
     MG_CATCH_AND_THROW(L"MgCoordinateSystem.GetMeasure")
     return pNew;
@@ -3379,7 +3379,7 @@
     assert(NULL != pStream);
     if (!pStream)
     {
-        throw new MgInvalidArgumentException(L"MgCoordinateSystem.SerializeFrom", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystem.SerializeFrom", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
     UINT8 nVersion=pStreamOut[0];
@@ -3415,7 +3415,7 @@
         {
             m_bEncrypted = bPrevEncrypted;
             m_csprm.csdef = prevDef;
-            throw new \
MgInvalidArgumentException(L"MgCoordinateSystem.SerializeFrom", __LINE__, __WFILE__, \
NULL, L"", NULL); +            throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystem.SerializeFrom", __LINE__, __WFILE__, NULL, L"", NULL);  }
     }
 
@@ -3432,7 +3432,7 @@
     assert(NULL != pStream);
     if (!pStream)
     {
-        throw new MgInvalidArgumentException(L"MgCoordinateSystem.SerializeTo", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystem.SerializeTo", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
     //save the version

Modified: trunk/MgDev/Common/CoordinateSystem/CoordSysCatalog.cpp
===================================================================
--- trunk/MgDev/Common/CoordinateSystem/CoordSysCatalog.cpp	2022-09-15 10:14:11 UTC \
                (rev 9970)
+++ trunk/MgDev/Common/CoordinateSystem/CoordSysCatalog.cpp	2022-10-10 09:40:18 UTC \
(rev 9971) @@ -81,7 +81,7 @@
 
     if (!m_pCsDict || !m_pDtDict || !m_pElDict || !m_pCtDict || !m_pGpDict || \
!m_pGxDict)  {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemCatalog.MgCoordinateSystemCatalog", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemCatalog.MgCoordinateSystemCatalog", __LINE__, __WFILE__, NULL, \
L"", NULL);  }
 
     //Set up Mentor global variables.  See CSDATA.C for explanation.
@@ -249,7 +249,7 @@
     if (sDir.empty())
     {
         ACE_DEBUG((LM_DEBUG, "(%t) DefaultDir for the Coordinate System library has \
                been set but is empty.\n"));
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemCatalog.GetDefaultDictionaryDir", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemCatalog.GetDefaultDictionaryDir", __LINE__, __WFILE__, NULL, L"", \
NULL);  }
 
     if (!MgFileUtil::IsDirectory(sDir.c_str()))
@@ -260,7 +260,7 @@
 
     if (!bResult)
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemCatalog.GetDefaultDictionaryDir", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystemCatalog.GetDefaultDictionaryDir", __LINE__, __WFILE__, NULL, L"", \
NULL);  }
 
     //And return success.
@@ -353,7 +353,7 @@
     //CS-Map return -1 if for cs_altdr() the Coordsys.CSD file couldn't be found; 0 \
otherwise  
     if (csmapResult)
-        throw new MgFileIoException(L"MgCoordinateSystemCatalog.SetDictionaryDir", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgFileIoException, \
L"MgCoordinateSystemCatalog.SetDictionaryDir", __LINE__, __WFILE__, NULL, L"", NULL); \
  return szPath;
 }
@@ -363,7 +363,7 @@
     MG_TRY()
 
     if (sDirPath.empty())
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemCatalog.SetDictionaryDir", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemCatalog.SetDictionaryDir", __LINE__, __WFILE__, NULL, L"", NULL); \
  m_libraryStatus = lsInitializationFailed;
     m_sDir = this->SetDictionaryDir(sDirPath, false, CS_altdr);
@@ -475,7 +475,7 @@
         || !m_pGxDict || m_pGxDict->GetFileName().empty())
     {
         //Directory hasn't been specified yet.
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemCatalog.AreDictionaryFilesWritable", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemNotReadyException", NULL); +        \
throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystemCatalog.AreDictionaryFilesWritable", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemNotReadyException", NULL);  }
 
     //the [m_sUserDir] will only contain something, if [SetUserDictionaryDir] had \
been called @@ -655,7 +655,7 @@
     //need to get at data files to do certain datum shifts.
     if (m_sDir.empty())
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemCatalog.GetGeodeticTransformations", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemNotReadyException", NULL); +        \
throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystemCatalog.GetGeodeticTransformations", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemNotReadyException", NULL);  }
 
     Ptr<CCoordinateSystemGeodeticTransformation> pNew = new \
CCoordinateSystemGeodeticTransformation(this, pSource, pTarget); @@ -662,7 +662,7 @@
 
     if (NULL == pNew.p)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemCatalog.GetGeodeticTransformations", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemCatalog.GetGeodeticTransformations", __LINE__, __WFILE__, NULL, \
L"", NULL);  }
 
     pColl = new MgDisposableCollection;
@@ -669,7 +669,7 @@
 
     if (NULL == pColl.p)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemCatalog.GetGeodeticTransformations", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemCatalog.GetGeodeticTransformations", __LINE__, __WFILE__, NULL, \
L"", NULL);  }
 
     pColl->Add(pNew);
@@ -688,7 +688,7 @@
     pNew=new CCoordinateSystemMathComparator;
     if (NULL == pNew)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemCatalog.GetMathComparator", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemCatalog.GetMathComparator", __LINE__, __WFILE__, NULL, L"", \
NULL);  }
     MG_CATCH_AND_THROW(L"MgCoordinateSystemCatalog.GetMathComparator")
     //And we're done!  Return success.
@@ -703,7 +703,7 @@
     pNew=new CCoordinateSystemFormatConverter(this);
     if (NULL == pNew)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemCatalog.GetFormatConverter", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemCatalog.GetFormatConverter", __LINE__, __WFILE__, NULL, L"", \
NULL);  }
     MG_CATCH_AND_THROW(L"MgCoordinateSystemCatalog.GetFormatConverter")
 
@@ -719,7 +719,7 @@
     pNew=new CCoordinateSystemProjectionInformation();
     if (NULL == pNew)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemCatalog.GetProjectionInformation", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemCatalog.GetProjectionInformation", __LINE__, __WFILE__, NULL, \
L"", NULL);  }
     MG_CATCH_AND_THROW(L"MgCoordinateSystemCatalog.GetProjectionInformation")
 
@@ -735,7 +735,7 @@
     pNew=new CCoordinateSystemUnitInformation();
     if (NULL == pNew)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemCatalog.GetUnitInformation", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemCatalog.GetUnitInformation", __LINE__, __WFILE__, NULL, L"", \
NULL);  }
     MG_CATCH_AND_THROW(L"MgCoordinateSystemCatalog.GetUnitInformation")
 
@@ -751,7 +751,7 @@
     pNew=new CCoordinateSystemDictionaryUtility(this);
     if (NULL == pNew)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemCatalog.GetDictionaryUtility", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemCatalog.GetDictionaryUtility", __LINE__, __WFILE__, NULL, L"", \
NULL);  }
     MG_CATCH_AND_THROW(L"MgCoordinateSystemCatalog.GetDictionaryUtility")
 

Modified: trunk/MgDev/Common/CoordinateSystem/CoordSysCategory.cpp
===================================================================
--- trunk/MgDev/Common/CoordinateSystem/CoordSysCategory.cpp	2022-09-15 10:14:11 UTC \
                (rev 9970)
+++ trunk/MgDev/Common/CoordinateSystem/CoordSysCategory.cpp	2022-10-10 09:40:18 UTC \
(rev 9971) @@ -58,7 +58,7 @@
     }
 
     if (NULL == pCategoryCopy)
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemCategory.CtorInit", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemCategory.CtorInit", __LINE__, __WFILE__, NULL, L"", NULL);  
     pToInitialize->m_pCatalog = SAFE_ADDREF(pCatalog);
     pToInitialize->mp_ctDef = pCategoryCopy;
@@ -113,15 +113,15 @@
     CHECKARGUMENTNULL(pDef, L"MgCoordinateSystemCategory.CopyFrom");
 
     if (!const_cast<CCoordinateSystemCategory*>(pDef)->IsValid())
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemCategory.CopyFrom", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemCategory.CopyFrom", __LINE__, __WFILE__, NULL, L"", NULL);  
     CCoordinateSystemCategory const* pOtherCategory = \
dynamic_cast<CCoordinateSystemCategory const*>(pDef);  if (NULL == pOtherCategory)
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemCategory.CopyFrom", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemCategory.CopyFrom", __LINE__, __WFILE__, NULL, L"", NULL);  
     cs_Ctdef_* pCategoryCopy = CScpyCategory(pOtherCategory->mp_ctDef);
     if (NULL == pCategoryCopy)
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemCategory.CopyFrom", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemCategory.CopyFrom", __LINE__, __WFILE__, NULL, L"", NULL);  
     MG_TRY()
 
@@ -163,7 +163,7 @@
 
         if (!IsLegalName(sName))
         {
-            throw new \
MgInvalidArgumentException(L"MgCoordinateSystemCategory.SetName", __LINE__, \
__WFILE__, NULL, L"", NULL); +            throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemCategory.SetName", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
         pszNewName = Convert_Wide_To_UTF8(sName.c_str());
@@ -264,13 +264,13 @@
     if (NULL == pCtDef->mp_ctDef)
     {
         _ASSERT(false);
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemCategory.IsSameAs", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemCategory.IsSameAs", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
     if (NULL == this->mp_ctDef)
     {
         _ASSERT(false);
-        throw new MgInvalidOperationException(L"MgCoordinateSystemCategory.IsSameAs", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidOperationException, \
L"MgCoordinateSystemCategory.IsSameAs", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
     if (this->mp_ctDef->nameCnt != pCtDef->mp_ctDef->nameCnt)
@@ -395,12 +395,12 @@
     pName = Convert_Wide_To_UTF8(sName.c_str());    //need to delete [] pName
     if (NULL == pName)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemCategory.AddCoordinateSystem", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemCategory.AddCoordinateSystem", __LINE__, __WFILE__, NULL, L"", \
NULL);  }
 
     if (!IsLegalMentorName(pName))
     {
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemCategory.AddCoordinateSystem", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemCategory.AddCoordinateSystem", __LINE__, __WFILE__, NULL, L"", \
NULL);  }
 
     //See if it's already present
@@ -408,13 +408,13 @@
     if (itList != allCsNames.end())
     {
         //duplicate!
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemCategory.AddCoordinateSystem", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemCategoryDuplicateException", NULL); +  \
throw new MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemCategory.AddCoordinateSystem", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemCategoryDuplicateException", NULL);  }
 
     if (CSaddItmNameEx(this->mp_ctDef, pName))
     {
         _ASSERT(false); //whatever the problem is here... the name we validated; OOM \
                ? hopefully unlikely
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemCategory.AddCoordinateSystem", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemCategoryDuplicateException", NULL); +  \
throw new MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemCategory.AddCoordinateSystem", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemCategoryDuplicateException", NULL);  }
 
     //Try to insert it in our list
@@ -451,7 +451,7 @@
         _ASSERT(NULL != pName); //would throw an exception otherwise
 
         if (!IsLegalMentorName(pName))
-            throw new \
MgInvalidArgumentException(L"MgCoordinateSystemCategory.RemoveCoordinateSystem", \
__LINE__, __WFILE__, NULL, L"", NULL); +            throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemCategory.RemoveCoordinateSystem", __LINE__, __WFILE__, NULL, L"", \
NULL);  
         if (CSrmvItmNameEx(this->mp_ctDef, pName))
         {
@@ -463,7 +463,7 @@
                 allCsNames.clear();
             }
 
-            throw new \
MgInvalidArgumentException(L"MgCoordinateSystemCategory.RemoveCoordinateSystem", \
__LINE__, __WFILE__, NULL, L"", NULL); +            throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemCategory.RemoveCoordinateSystem", __LINE__, __WFILE__, NULL, L"", \
NULL);  }
 
         //See if it's already present
@@ -530,7 +530,7 @@
     //create the new empty cs_Ctdef_ instance first
     struct cs_Ctdef_* pNewCategory = CSnewCategory(NULL);
     if (NULL == pNewCategory)
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemCategory.MgCoordinateSystemCategory", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemCategory.MgCoordinateSystemCategory", __LINE__, __WFILE__, NULL, \
L"", NULL);  
     CSrlsCategory(this->mp_ctDef);
     this->mp_ctDef = pNewCategory;

Modified: trunk/MgDev/Common/CoordinateSystem/CoordSysCategoryDictionary.cpp
===================================================================
--- trunk/MgDev/Common/CoordinateSystem/CoordSysCategoryDictionary.cpp	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/CoordinateSystem/CoordSysCategoryDictionary.cpp	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -79,7 +79,7 @@
 
     if (NULL == pNewDef.p)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemCategoryDictionary.NewCategory", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemCategoryDictionary.NewCategory", __LINE__, __WFILE__, NULL, L"", \
NULL);  }
 
     MG_CATCH_AND_THROW(L"MgCoordinateSystemCategoryDictionary.NewCategory")
@@ -155,7 +155,7 @@
         if (categoryCount < 0)
         {
             _ASSERT(NULL == pAllCategories);
-            throw new \
MgCoordinateSystemLoadFailedException(L"MgCoordinateSystemCategoryDictionary.GenerateIndex", \
__LINE__, __WFILE__, NULL, L"", NULL); +            throw new \
MgException(MgExceptionCodes::MgCoordinateSystemLoadFailedException, \
L"MgCoordinateSystemCategoryDictionary.GenerateIndex", __LINE__, __WFILE__, NULL, \
L"", NULL);  }
 
         for(int i = 0; i < categoryCount; ++i)
@@ -216,7 +216,7 @@
     {
         MgStringCollection arguments;
         arguments.Add(sFileName);
-        throw new MgFileIoException(L"MgCoordinateSystemDictionary.SetFileName", \
__LINE__, __WFILE__, &arguments, L"MgInvalidArgumentException", NULL); +        throw \
new MgException(MgExceptionCodes::MgFileIoException, \
L"MgCoordinateSystemDictionary.SetFileName", __LINE__, __WFILE__, &arguments, \
L"MgInvalidArgumentException", NULL);  }
 
     if (!sFileName.empty())
@@ -288,7 +288,7 @@
     CCoordinateSystemCategory* \
pCategoryDef=dynamic_cast<CCoordinateSystemCategory*>(pDefinition);  if \
(!pCategoryDef)  {
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemCategoryDictionary.Add", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemMismatchException", NULL); +        \
throw new MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemCategoryDictionary.Add", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemMismatchException", NULL);  }
 
     cs_Ctdef_ const* pCsMapDef = pCategoryDef->GetCategoryDef();
@@ -298,7 +298,7 @@
     if (iter != Index().end())
     {
         //Yup.
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemCategoryDictionary.Add", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemDuplicateException", NULL); +        \
throw new MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemCategoryDictionary.Add", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemDuplicateException", NULL);  }
 
     int updateResult = CS_ctupd(pCsMapDef);
@@ -305,7 +305,7 @@
     if (updateResult < 0)
     {
         //the category could not be added to the dictionary
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemCategoryDictionary.Add", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemCategoryDictionary.Add", __LINE__, __WFILE__, NULL, L"", NULL);  \
}  
     _ASSERT(0 == updateResult); //we must have added it; +1 means "updated"
@@ -351,7 +351,7 @@
     {
         MgStringCollection arguments;
         arguments.Add(sName);
-        throw new MgCoordinateSystemLoadFailedException(L"MgCoordinateSystemCategoryDictionary.Remove", \
__LINE__, __WFILE__, &arguments, L"MgCoordinateSystemNotFoundException", NULL); +     \
throw new MgException(MgExceptionCodes::MgCoordinateSystemLoadFailedException, \
L"MgCoordinateSystemCategoryDictionary.Remove", __LINE__, __WFILE__, &arguments, \
L"MgCoordinateSystemNotFoundException", NULL);  }
 
     bInvalidIndexOnFailure = true;
@@ -361,7 +361,7 @@
     {
         MgStringCollection arguments;
         arguments.Add(sName);
-        throw new MgCoordinateSystemLoadFailedException(L"MgCoordinateSystemCategoryDictionary.Remove", \
__LINE__, __WFILE__, &arguments, L"MgCoordinateSystemNotFoundException", NULL); +     \
throw new MgException(MgExceptionCodes::MgCoordinateSystemLoadFailedException, \
L"MgCoordinateSystemCategoryDictionary.Remove", __LINE__, __WFILE__, &arguments, \
L"MgCoordinateSystemNotFoundException", NULL);  }
 
     int deletionResult = CS_ctdel(pCategory);
@@ -369,7 +369,7 @@
     {
         MgStringCollection arguments;
         arguments.Add(sName);
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemCategoryDictionary.Remove", \
__LINE__, __WFILE__, &arguments, L"MgCoordinateSystemInternalException", NULL); +     \
throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystemCategoryDictionary.Remove", __LINE__, __WFILE__, &arguments, \
L"MgCoordinateSystemInternalException", NULL);  }
 
     long position = iter->second;
@@ -419,7 +419,7 @@
         CCoordinateSystemCategory* \
pCategoryDef=dynamic_cast<CCoordinateSystemCategory*>(pDefinition);  if \
(!pCategoryDef)  {
-            throw new \
MgInvalidArgumentException(L"MgCoordinateSystemCategoryDictionary.Modify", __LINE__, \
__WFILE__, NULL, L"MgCoordinateSystemMismatchException", NULL); +            throw \
new MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemCategoryDictionary.Modify", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemMismatchException", NULL);  }
 
         //Look for it in our index
@@ -426,7 +426,7 @@
         STRING str = pCategoryDef->GetName();
         if (str.empty())
         {
-            throw new \
MgInvalidArgumentException(L"MgCoordinateSystemCategoryDictionary.Modify", __LINE__, \
__WFILE__, NULL, L"", NULL); +            throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemCategoryDictionary.Modify", __LINE__, __WFILE__, NULL, L"", \
NULL);  }
         pName = Convert_Wide_To_UTF8(str.c_str());
 
@@ -437,7 +437,7 @@
         {
             MgStringCollection arguments;
             arguments.Add(str);
-            throw new \
MgCoordinateSystemLoadFailedException(L"MgCoordinateSystemCategoryDictionary.Modify", \
__LINE__, __WFILE__, &arguments, L"MgCoordinateSystemNotFoundException", NULL); +     \
throw new MgException(MgExceptionCodes::MgCoordinateSystemLoadFailedException, \
L"MgCoordinateSystemCategoryDictionary.Modify", __LINE__, __WFILE__, &arguments, \
L"MgCoordinateSystemNotFoundException", NULL);  }
 
         invalidIndexOnFailure = true;
@@ -448,7 +448,7 @@
         {
             MgStringCollection arguments;
             arguments.Add(str);
-            throw new \
MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemCategoryDictionary.Modify", \
__LINE__, __WFILE__, &arguments, L"MgCoordinateSystemInternalException", NULL); +     \
throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystemCategoryDictionary.Modify", __LINE__, __WFILE__, &arguments, \
L"MgCoordinateSystemInternalException", NULL);  }
 
         _ASSERT(1 == updateResult);
@@ -500,7 +500,7 @@
             //Nope.
             MgStringCollection arguments;
             arguments.Add(sName);
-            throw new \
MgCoordinateSystemLoadFailedException(L"MgCoordinateSystemCategoryDictionary.GetCategory", \
__LINE__, __WFILE__, &arguments, L"MgCoordinateSystemNotFoundException", NULL); +     \
throw new MgException(MgExceptionCodes::MgCoordinateSystemLoadFailedException, \
L"MgCoordinateSystemCategoryDictionary.GetCategory", __LINE__, __WFILE__, &arguments, \
L"MgCoordinateSystemNotFoundException", NULL);  }
 
         invalidIndexOnFailure = true;
@@ -511,7 +511,7 @@
             //Nope.
             MgStringCollection arguments;
             arguments.Add(sName);
-            throw new \
MgCoordinateSystemLoadFailedException(L"MgCoordinateSystemCategoryDictionary.GetCategory", \
__LINE__, __WFILE__, &arguments, L"MgCoordinateSystemNotFoundException", NULL); +     \
throw new MgException(MgExceptionCodes::MgCoordinateSystemLoadFailedException, \
L"MgCoordinateSystemCategoryDictionary.GetCategory", __LINE__, __WFILE__, &arguments, \
L"MgCoordinateSystemNotFoundException", NULL);  }
 
         //Make a new object with the [cs_Ctdef_] instance we got
@@ -610,7 +610,7 @@
             //nope, not there
             MgStringCollection arguments;
             arguments.Add(sOldName);
-            throw new \
MgCoordinateSystemLoadFailedException(L"MgCoordinateSystemCategoryDictionary.Rename", \
__LINE__, __WFILE__, &arguments, L"MgCoordinateSystemNotFoundException", NULL); +     \
throw new MgException(MgExceptionCodes::MgCoordinateSystemLoadFailedException, \
L"MgCoordinateSystemCategoryDictionary.Rename", __LINE__, __WFILE__, &arguments, \
L"MgCoordinateSystemNotFoundException", NULL);  }
 
         invalidIndexOnFailure = true;
@@ -619,15 +619,15 @@
         {
             MgStringCollection arguments;
             arguments.Add(sOldName);
-            throw new \
MgCoordinateSystemLoadFailedException(L"MgCoordinateSystemCategoryDictionary.Rename", \
__LINE__, __WFILE__, &arguments, L"MgCoordinateSystemNotFoundException", NULL); +     \
throw new MgException(MgExceptionCodes::MgCoordinateSystemLoadFailedException, \
L"MgCoordinateSystemCategoryDictionary.Rename", __LINE__, __WFILE__, &arguments, \
L"MgCoordinateSystemNotFoundException", NULL);  }
 
         pNewName = Convert_Wide_To_UTF8(sNewName.c_str());
         if (CSrplCatNameEx(pOldName, pNewName))
-            throw new \
MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemCategoryDictionary.Rename", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemNotFoundException", NULL); +           \
throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystemCategoryDictionary.Rename", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemNotFoundException", NULL);  
         if (CSupdCategories(NULL))
-            throw new \
MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemCategoryDictionary.Rename", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemNotFoundException", NULL); +           \
throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystemCategoryDictionary.Rename", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemNotFoundException", NULL);  
         long index = iter->second;
         Index().erase(iter);

Modified: trunk/MgDev/Common/CoordinateSystem/CoordSysDatum.cpp
===================================================================
--- trunk/MgDev/Common/CoordinateSystem/CoordSysDatum.cpp	2022-09-15 10:14:11 UTC \
                (rev 9970)
+++ trunk/MgDev/Common/CoordinateSystem/CoordSysDatum.cpp	2022-10-10 09:40:18 UTC \
(rev 9971) @@ -92,7 +92,7 @@
 
     if (NULL == pEl.p)
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemDatum.GetEllipsoidDefinition", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemDatumInitializationFailedException", \
NULL); +        throw new \
MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystemDatum.GetEllipsoidDefinition", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemDatumInitializationFailedException", NULL);  }
 
     MG_CATCH_AND_THROW(L"MgCoordinateSystemDatum.GetEllipsoidDefinition")
@@ -125,7 +125,7 @@
     //Make sure the specified datum is valid
     if (def.key_nm[0]=='\0')
     {
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemDatum.InitFromCatalog", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemDatum.InitFromCatalog", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
     //init the datum defintion part
@@ -152,7 +152,7 @@
     wchar_t* pwszElName=Convert_UTF8_To_Wide(def.ell_knm);
     if (!pwszElName)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemDatum.InitFromCatalog", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemDatum.InitFromCatalog", __LINE__, __WFILE__, NULL, L"", NULL);  }
     STRING sElName(::ToLower(pwszElName));
     delete[] pwszElName;
@@ -169,7 +169,7 @@
             Ptr<MgDisposable> disposableCsObject = ellipsoidsIterator->second;
             MgCoordinateSystemEllipsoid* ellipsoidInfo = \
dynamic_cast<MgCoordinateSystemEllipsoid*>(disposableCsObject.p);  if (NULL == \
                ellipsoidInfo)
-                throw new \
MgInvalidArgumentException(L"MgCoordinateSystemDatum.InitFromCatalog", __LINE__, \
__WFILE__, NULL, L"", NULL); +                throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemDatum.InitFromCatalog", __LINE__, __WFILE__, NULL, L"", NULL);  
             pEllipsoid = SAFE_ADDREF(ellipsoidInfo);
         }
@@ -182,7 +182,7 @@
         Ptr<MgCoordinateSystemEllipsoidDictionary> pElDict = \
m_pCatalog->GetEllipsoidDictionary();  if (!pElDict)
         {
-            throw new \
MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemDatum.InitFromCatalog", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemDatumNoEllipsoidDictionaryException", \
NULL); +            throw new \
MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystemDatum.InitFromCatalog", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemDatumNoEllipsoidDictionaryException", NULL);  }
 
         //load the ellipsoid defintion from the dictionary
@@ -191,7 +191,7 @@
     }
 
     if (NULL == pEllipsoid)
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemDatum.InitFromCatalog", \
__LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemDatumNoEllipsoidInDictionaryException", NULL); +        throw new \
MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystemDatum.InitFromCatalog", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemDatumNoEllipsoidInDictionaryException", NULL);  
     //Initialize from ellipsoid definitions we have
     SetEllipsoidDefinition(dynamic_cast<MgCoordinateSystemEllipsoid*>(pEllipsoid.p));
 @@ -224,7 +224,7 @@
     wchar_t* pName = Convert_UTF8_To_Wide(m_DtDef.key_nm);
     if (NULL == pName)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemDatum.GetDtCode", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemDatum.GetDtCode", __LINE__, __WFILE__, NULL, L"", NULL);  }
     sCode=pName;
     delete[] pName;
@@ -245,13 +245,13 @@
     if (Protected())
     {
         //Can't modify a read-only object.
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemDatum.SetDtCode", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemDatumProtectedException", NULL); +     \
throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystemDatum.SetDtCode", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemDatumProtectedException", NULL);  }
 
     if (sCode.empty())
     {
         //null pointer is obviously not legal...
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemDatum.SetDtCode", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemDatum.SetDtCode", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
     //Convert to a C++ string, for Mentor's sake
@@ -258,7 +258,7 @@
     char *pStr = Convert_Wide_To_UTF8(sCode.c_str()); //need to delete[] pStr
     if (NULL == pStr)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemDatum.SetDtCode", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemDatum.SetDtCode", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
     //Try to make a legal name.  CS_nampp() legalizes the
@@ -270,7 +270,7 @@
     {
         //illegal string
         delete [] pStr;
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemDatum.SetDtCode", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemDatum.SetDtCode", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
     //Copy into the definitions, dtdef and cs_datum_ must be in synch
@@ -366,7 +366,7 @@
     Ptr<MgCoordinateSystemEllipsoidDictionary> \
pElDict=pCatalog->GetEllipsoidDictionary();  if (!pElDict)
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemDatum.IsUsable", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemDatumNoEllipsoidDictionaryException", \
NULL); +        throw new \
MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystemDatum.IsUsable", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemDatumNoEllipsoidDictionaryException", NULL);  }
 
     //Build a wchar_t* from the ellipsoid name
@@ -373,7 +373,7 @@
     wchar_t* pStrEl = Convert_UTF8_To_Wide(m_datum.ell_knm);
     if (NULL == pStrEl)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemDatum.IsUsable", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemDatum.IsUsable", __LINE__, __WFILE__, NULL, L"", NULL);  }
     STRING sElName(pStrEl);
     delete[] pStrEl;
@@ -409,7 +409,7 @@
     cs_Dtdef_ def;
     if (!BuildDtDefFromInterface(pDtDef, def))
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemDatum.IsSameAs", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystemDatum.IsSameAs", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
     //And compare with this one!
@@ -462,7 +462,7 @@
 
     if (NULL == pNew.p)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemDatum.CreateClone", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemDatum.CreateClone", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
     //Copy data members into the new object.  NOTE:  if new
@@ -500,7 +500,7 @@
     wchar_t* pDesc = Convert_UTF8_To_Wide(m_datum.dt_name);
     if (NULL == pDesc)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemDatum.GetDescription", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemDatum.GetDescription", __LINE__, __WFILE__, NULL, L"", NULL);  }
     sDesc=pDesc;
     delete[] pDesc;
@@ -540,7 +540,7 @@
     wchar_t *pGroup = Convert_UTF8_To_Wide(m_DtDef.group);
     if (NULL == pGroup)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemDatum.GetGroup", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemDatum.GetGroup", __LINE__, __WFILE__, NULL, L"", NULL);  }
     sGroup=pGroup;
     delete[] pGroup;
@@ -576,7 +576,7 @@
     wchar_t *pSource = Convert_UTF8_To_Wide(m_DtDef.source);
     if (NULL == pSource)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemDatum.GetSource", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemDatum.GetSource", __LINE__, __WFILE__, NULL, L"", NULL);  }
     sSource=pSource;
     delete[] pSource;
@@ -659,7 +659,7 @@
     wchar_t* pLoc = Convert_UTF8_To_Wide(m_DtDef.locatn);
     if (NULL == pLoc)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemDatum.GetLocation", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemDatum.GetLocation", __LINE__, __WFILE__, NULL, L"", NULL);  }
     sLoc=pLoc;
     delete[] pLoc;
@@ -696,7 +696,7 @@
     wchar_t *pCountryOrState = Convert_UTF8_To_Wide(m_DtDef.cntry_st);
     if (NULL == pCountryOrState)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemDatum.GetCountryOrState", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemDatum.GetCountryOrState", __LINE__, __WFILE__, NULL, L"", NULL);  \
}  sCountryOrState=pCountryOrState;
     delete[] pCountryOrState;
@@ -734,7 +734,7 @@
     wchar_t* pEllipsoid = Convert_UTF8_To_Wide(m_DtDef.ell_knm);
     if (NULL == pEllipsoid)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemDatum.GetEllipsoid", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemDatum.GetEllipsoid", __LINE__, __WFILE__, NULL, L"", NULL);  }
     sEllipsoid=pEllipsoid;
     delete[] pEllipsoid;
@@ -755,13 +755,13 @@
     if (Protected())
     {
         //can't change a read-only object
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemDatum.SetEllipsoid", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemDatumProtectedException", NULL); +     \
throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystemDatum.SetEllipsoid", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemDatumProtectedException", NULL);  }
 
     //Make sure it's a legal datum name
     if (!IsLegalMentorName(sEllipsoid.c_str()))
     {
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemDatum.SetEllipsoid", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemDatum.SetEllipsoid", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
     //Convert wchar_t* to C++ string
@@ -768,7 +768,7 @@
     char *pStr = Convert_Wide_To_UTF8(sEllipsoid.c_str()); //need to delete [] pStr
     if (NULL == pStr)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemDatum.SetEllipsoid", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemDatum.SetEllipsoid", __LINE__, __WFILE__, NULL, L"", NULL);  }
     assert(strlen(pStr) < sizeof(m_DtDef.key_nm));
 
@@ -843,7 +843,7 @@
     //Make sure it's a legal datum name
     if (!IsLegalMentorName(sEllipsoid.c_str()))
     {
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemDatum.SetEllipsoidDefinition", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemDatum.SetEllipsoidDefinition", __LINE__, __WFILE__, NULL, L"", \
NULL);  }
 
     //Convert wchar_t* to C++ string
@@ -850,7 +850,7 @@
     char *pStr = Convert_Wide_To_UTF8(sEllipsoid.c_str()); //need to delete [] pStr
     if (NULL == pStr)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemDatum.SetEllipsoidDefinition", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemDatum.SetEllipsoidDefinition", __LINE__, __WFILE__, NULL, L"", \
NULL);  }
     assert(strlen(pStr) < sizeof(m_DtDef.key_nm));
 
@@ -871,7 +871,7 @@
     bool bResult = BuildElDefFromInterface(pEllipsoidDef, eldef);
     if (!bResult)
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemDatum.SetEllipsoidDefinition", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystemDatum.SetEllipsoidDefinition", __LINE__, __WFILE__, NULL, L"", \
NULL);  }
 
     //Make sure the datum's specified ellipsoid matches the
@@ -884,7 +884,7 @@
         || (0 != CS_nampp(eldef.key_nm))
         || (0 != CS_stricmp(m_DtDef.ell_knm, eldef.key_nm)))
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemDatum.SetEllipsoidDefinition", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemDatumMismatchException", NULL); +      \
throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystemDatum.SetEllipsoidDefinition", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemDatumMismatchException", NULL);  }
 
     //Build a cs_Datum_ from the datum and ellipsoid definitions
@@ -893,7 +893,7 @@
     CriticalClass.Leave();
     if (NULL == pDatum)
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemDatum.SetEllipsoidDefinition", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemDatumInternalException", NULL); +      \
throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystemDatum.SetEllipsoidDefinition", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemDatumInternalException", NULL);  }
 
     //Okay, everything succeeded.  Hang on to a copy of the
@@ -930,7 +930,7 @@
 
     if (NULL == pNew.p)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemDatum.GetGeodeticTransformations", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemDatum.GetGeodeticTransformations", __LINE__, __WFILE__, NULL, \
L"", NULL);  }
 
     pColl = new MgDisposableCollection;
@@ -937,7 +937,7 @@
 
     if (NULL == pColl.p)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemDatum.GetGeodeticTransformations", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemDatum.GetGeodeticTransformations", __LINE__, __WFILE__, NULL, \
L"", NULL);  }
 
     pColl->Add(pNew);
@@ -961,13 +961,13 @@
     if (Protected())
     {
         //Can't modify a read-only object.
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemDatum.SetString", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemDatumProtectedException", NULL); +     \
throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystemDatum.SetString", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemDatumProtectedException", NULL);  }
 
     if (!IsLegalString(sSrc.c_str(), nMaxSize))
     {
         //Can't set string, caller gave us an illegal value
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemDatum.SetString", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemDatum.SetString", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
     //Convert to a C++ string, for Mentor's sake
@@ -974,7 +974,7 @@
     char *pStr = Convert_Wide_To_UTF8(sSrc.c_str()); //need to delete[] pStr
     if (NULL == pStr)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemDatum.SetString", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemDatum.SetString", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
     //Copy it in
@@ -1009,7 +1009,7 @@
     assert(NULL != pStream);
     if (!pStream)
     {
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemDatum.SerializeFrom", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemDatum.SerializeFrom", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
     UINT8 nVersion=pStreamOut[0];
@@ -1057,7 +1057,7 @@
         {
             m_bEncrypted = bPrevEncrypted;
             m_DtDef = prevDef;
-            throw new \
MgInvalidArgumentException(L"MgCoordinateSystemDatum.SerializeFrom", __LINE__, \
__WFILE__, NULL, L"", NULL); +            throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemDatum.SerializeFrom", __LINE__, __WFILE__, NULL, L"", NULL);  }
     }
 
@@ -1074,7 +1074,7 @@
     assert(NULL != pStream);
     if (!pStream)
     {
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemDatum.SerializeTo", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemDatum.SerializeTo", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
     //save the version

Modified: trunk/MgDev/Common/CoordinateSystem/CoordSysDatumDictionary.cpp
===================================================================
--- trunk/MgDev/Common/CoordinateSystem/CoordSysDatumDictionary.cpp	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/CoordinateSystem/CoordSysDatumDictionary.cpp	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -313,7 +313,7 @@
 
     if (NULL == pNewDef.p)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemDatumDictionary.NewDatum", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemDatumDictionary.NewDatum", __LINE__, __WFILE__, NULL, L"", NULL); \
}  
     MG_CATCH_AND_THROW(L"MgCoordinateSystemDatumDictionary.NewDatum")
@@ -345,7 +345,7 @@
     {
         MgStringCollection arguments;
         arguments.Add(sFileName);
-        throw new MgFileIoException(L"MgCoordinateSystemDatumDictionary.SetFileName", \
__LINE__, __WFILE__, &arguments, L"MgInvalidArgumentException", NULL); +        throw \
new MgException(MgExceptionCodes::MgFileIoException, \
L"MgCoordinateSystemDatumDictionary.SetFileName", __LINE__, __WFILE__, &arguments, \
L"MgInvalidArgumentException", NULL);  }
 
     MentorDictionary::SetFileName(
@@ -414,7 +414,7 @@
     nSize=(ulFileBytes - sizeof(m_lMagic)) / nRecSize;
     if (0!=CS_fclose(pFile))
     {
-        throw new MgFileIoException(L"MgCoordinateSystemDatumDictionary.GetSize", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemDictionaryCloseFailedException", \
NULL); +        throw new MgException(MgExceptionCodes::MgFileIoException, \
L"MgCoordinateSystemDatumDictionary.GetSize", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemDictionaryCloseFailedException", NULL);  }
     MG_CATCH_AND_THROW(L"MgCoordinateSystemDatumDictionary.GetSize")
 
@@ -440,7 +440,7 @@
     MgCoordinateSystemDatum* \
pDatumDef=dynamic_cast<MgCoordinateSystemDatum*>(pDefinition);  if (!pDatumDef)
     {
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemDatumDictionary.Add", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemMismatchException", NULL); +        \
throw new MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemDatumDictionary.Add", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemMismatchException", NULL);  }
 
     MentorDictionary::UpdateDef<cs_Dtdef_, MgCoordinateSystemDatum>(
@@ -487,7 +487,7 @@
     MgCoordinateSystemDatum* \
pDatumDef=dynamic_cast<MgCoordinateSystemDatum*>(pDefinition);  if (!pDatumDef)
     {
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemDatumDictionary.Modify", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemMismatchException", NULL); +        \
throw new MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemDatumDictionary.Modify", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemMismatchException", NULL);  }
 
     MentorDictionary::UpdateDef<cs_Dtdef_, MgCoordinateSystemDatum>(
@@ -539,7 +539,7 @@
         //wasn't there!
         MgStringCollection whatArguments;
         whatArguments.Add(sName);
-        throw new MgCoordinateSystemLoadFailedException(L"MgCoordinateSystemDatumDictionary.GetDatum", \
__LINE__, __WFILE__, &whatArguments, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgCoordinateSystemLoadFailedException, \
L"MgCoordinateSystemDatumDictionary.GetDatum", __LINE__, __WFILE__, &whatArguments, \
L"", NULL);  }
 
     //Okay, at this point we have a Mentor coordsys definition
@@ -596,7 +596,7 @@
     char *pName = Convert_Wide_To_UTF8(sName.c_str()); //need to delete [] pName
     if (NULL == pName)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemDatumDictionary.Has", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemDatumDictionary.Has", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
     if (NULL != m_pmapSystemNameDescription)
@@ -684,7 +684,7 @@
 
             //close the file before calling into the [read all CS-Map defs] method
             if (0 != CS_fclose(pFile))
-                throw new MgFileIoException(L"MgCoordinateSystemDictionary.GetEnum", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemDictionaryCloseFailedException", \
NULL); +                throw new MgException(MgExceptionCodes::MgFileIoException, \
L"MgCoordinateSystemDictionary.GetEnum", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemDictionaryCloseFailedException", NULL);  
             pFile = NULL;
 
@@ -698,7 +698,7 @@
         }
         if (NULL == m_pmapSystemNameDescription)
         {
-            throw new \
MgInvalidArgumentException(L"MgCoordinateSystemDatumDictionary.GetEnum", __LINE__, \
__WFILE__, NULL, L"", NULL); +            throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemDatumDictionary.GetEnum", __LINE__, __WFILE__, NULL, L"", NULL);  \
}  }
 
@@ -707,7 +707,7 @@
 
     if (NULL == pNew.p)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemDatumDictionary.GetEnum", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemDatumDictionary.GetEnum", __LINE__, __WFILE__, NULL, L"", NULL);  \
}  
     MG_CATCH(L"MgCoordinateSystemDatumDictionary.GetEnum")
@@ -716,7 +716,7 @@
     {
         const bool fileClosed = (0 == CS_fclose(pFile));
         if (!fileClosed && NULL == mgException) //throw this exception in case no \
                other exception has already been caught
-            mgException = new \
MgFileIoException(L"MgCoordinateSystemDatumDictionary.GetEnum", __LINE__, __WFILE__, \
NULL, L"MgCoordinateSystemDictionaryCloseFailedException", NULL); +            \
mgException = new MgException(MgExceptionCodes::MgFileIoException, \
L"MgCoordinateSystemDatumDictionary.GetEnum", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemDictionaryCloseFailedException", NULL);  
         pFile = NULL;
     }
@@ -743,7 +743,7 @@
 
     CCoordinateSystemDatumDictionary* datumDictionary = \
                dynamic_cast<CCoordinateSystemDatumDictionary*>(targetDictionary);
     if (NULL == datumDictionary) //everything else is an implementation defect
-        throw new MgInvalidArgumentException(L"CCoordinateSystemDatumDictionary.ReadAllDatums", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"CCoordinateSystemDatumDictionary.ReadAllDatums", __LINE__, __WFILE__, NULL, L"", \
NULL);  
     //place a lock here - we don't want any interference; what we need is the \
*current* status of all dictionary files  SmartCriticalClass dictionaryLock;

Modified: trunk/MgDev/Common/CoordinateSystem/CoordSysDictionary.cpp
===================================================================
--- trunk/MgDev/Common/CoordinateSystem/CoordSysDictionary.cpp	2022-09-15 10:14:11 \
                UTC (rev 9970)
+++ trunk/MgDev/Common/CoordinateSystem/CoordSysDictionary.cpp	2022-10-10 09:40:18 \
UTC (rev 9971) @@ -168,7 +168,7 @@
         nNameSize = sizeof(v8.key_nm);
         return;
     default:
-        throw new MgCoordinateSystemInitializationFailedException(
+        throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
                
             L"GetCoordinateSystemSizeInfo", __LINE__, __WFILE__, NULL, L"", NULL);
     }
 
@@ -332,7 +332,7 @@
 
     if (NULL == pNewDef.p)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemDictionary.NewCoordinateSystem", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemDictionary.NewCoordinateSystem", __LINE__, __WFILE__, NULL, L"", \
NULL);  }
 
     MG_CATCH_AND_THROW(L"MgCoordinateSystemDictionary.NewCoordinateSystem")
@@ -366,7 +366,7 @@
     {
         MgStringCollection arguments;
         arguments.Add(sFileName);
-        throw new MgFileIoException(L"MgCoordinateSystemDictionary.SetFileName", \
__LINE__, __WFILE__, &arguments, L"MgInvalidArgumentException", NULL); +        throw \
new MgException(MgExceptionCodes::MgFileIoException, \
L"MgCoordinateSystemDictionary.SetFileName", __LINE__, __WFILE__, &arguments, \
L"MgInvalidArgumentException", NULL);  }
 
     MentorDictionary::SetFileName(
@@ -434,7 +434,7 @@
 
     if (0!=CS_fclose(pFile))
     {
-        throw new MgFileIoException(L"MgCoordinateSystemDictionary.GetSize", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemDictionaryCloseFailedException", \
NULL); +        throw new MgException(MgExceptionCodes::MgFileIoException, \
L"MgCoordinateSystemDictionary.GetSize", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemDictionaryCloseFailedException", NULL);  }
 
     MG_CATCH_AND_THROW(L"MgCoordinateSystemDictionary.GetSize")
@@ -461,7 +461,7 @@
     MgCoordinateSystem* \
pCoordinateSystem=dynamic_cast<MgCoordinateSystem*>(pDefinition);  if \
(!pCoordinateSystem)  {
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemDictionary.Add", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemMismatchException", NULL); +        \
throw new MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemDictionary.Add", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemMismatchException", NULL);  }
 
     MentorDictionary::UpdateDef<cs_Csdef_, MgCoordinateSystem>(
@@ -508,7 +508,7 @@
     MgCoordinateSystem* \
pCoordinateSystem=dynamic_cast<MgCoordinateSystem*>(pDefinition);  if \
(!pCoordinateSystem)  {
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemDictionary.Modify", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemMismatchException", NULL); +        \
throw new MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemDictionary.Modify", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemMismatchException", NULL);  }
 
     MentorDictionary::UpdateDef<cs_Csdef_, MgCoordinateSystem>(
@@ -551,7 +551,7 @@
 
     if (NULL == pName)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemDictionary.GetCoordinateSystem", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemDictionary.GetCoordinateSystem", __LINE__, __WFILE__, NULL, L"", \
NULL);  }
 
     //Look in the dictionary
@@ -562,7 +562,7 @@
         //wasn't there!
         MgStringCollection whatArguments;
         whatArguments.Add(sName);
-        throw new MgCoordinateSystemLoadFailedException(L"MgCoordinateSystemDictionary.GetCoordinateSystem", \
__LINE__, __WFILE__, &whatArguments, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgCoordinateSystemLoadFailedException, \
L"MgCoordinateSystemDictionary.GetCoordinateSystem", __LINE__, __WFILE__, \
&whatArguments, L"", NULL);  }
 
     //Okay, at this point we have a Mentor coordsys definition
@@ -627,7 +627,7 @@
     char *pName = Convert_Wide_To_UTF8(sName.c_str()); //need to delete [] pName
     if (NULL == pName)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemDictionary.Has", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemDictionary.Has", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
     if (NULL != m_pmapSystemNameDescription)
@@ -662,7 +662,7 @@
 
     CCoordinateSystemDictionary* csDictionary = \
dynamic_cast<CCoordinateSystemDictionary*>(targetDictionary);  if (NULL == \
                csDictionary)
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemDictionary.ReadAllCoordinateSystems", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemDictionary.ReadAllCoordinateSystems", __LINE__, __WFILE__, NULL, \
L"", NULL);  
     //in order to create the MgCoordinateSystem objects, we have to have also the \
information on the datums and ellipsoids  map<STRING, Ptr<MgDisposable> > \
ellipsoidMap; @@ -756,7 +756,7 @@
             //Generate summary for version 7 or 8 coordsys file.
             //close the file before calling into the [read all CS-Map defs] method
             if (0 != CS_fclose(pFile))
-                throw new MgFileIoException(L"MgCoordinateSystemDictionary.GetEnum", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemDictionaryCloseFailedException", \
NULL); +                throw new MgException(MgExceptionCodes::MgFileIoException, \
L"MgCoordinateSystemDictionary.GetEnum", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemDictionaryCloseFailedException", NULL);  
             pFile = NULL;
 
@@ -770,7 +770,7 @@
         }
         if (NULL == m_pmapSystemNameDescription)
         {
-            throw new \
MgInvalidArgumentException(L"MgCoordinateSystemDictionary.GetEnum", __LINE__, \
__WFILE__, NULL, L"", NULL); +            throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemDictionary.GetEnum", __LINE__, __WFILE__, NULL, L"", NULL);  }
     }
 
@@ -779,12 +779,12 @@
 
     if (NULL == pNew.p)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemDictionary.GetEnum", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemDictionary.GetEnum", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
     if (pFile && 0 != CS_fclose(pFile))
     {
-        throw new MgFileIoException(L"MgCoordinateSystemDictionary.GetEnum", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemDictionaryCloseFailedException", \
NULL); +        throw new MgException(MgExceptionCodes::MgFileIoException, \
L"MgCoordinateSystemDictionary.GetEnum", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemDictionaryCloseFailedException", NULL);  }
     pFile = NULL;
 

Modified: trunk/MgDev/Common/CoordinateSystem/CoordSysDictionaryBase.cpp
===================================================================
--- trunk/MgDev/Common/CoordinateSystem/CoordSysDictionaryBase.cpp	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/CoordinateSystem/CoordSysDictionaryBase.cpp	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -134,7 +134,7 @@
 
     if(NULL != pFile && (0 != CS_fclose(pFile)))
     {
-        throw new MgFileIoException(L"CCoordinateSystemDictionaryBase.GetSize", \
__LINE__, __WFILE__, NULL, NULL, NULL); +        throw new \
MgException(MgExceptionCodes::MgFileIoException, \
L"CCoordinateSystemDictionaryBase.GetSize", __LINE__, __WFILE__, NULL, NULL, NULL);  \
}  
     MG_THROW()
@@ -151,7 +151,7 @@
 
     T* pDictionaryDef = dynamic_cast<T*>(pDefinition);
     if (!pDictionaryDef)
-        throw new MgInvalidArgumentException(L"CCoordinateSystemDictionaryBase.Add", \
__LINE__, __WFILE__, NULL, L"CCoordinateSystemDictionaryBase", NULL); +        throw \
new MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"CCoordinateSystemDictionaryBase.Add", __LINE__, __WFILE__, NULL, \
L"CCoordinateSystemDictionaryBase", NULL);  
     MG_TRY()
 
@@ -193,7 +193,7 @@
 
     T* pDictionaryDef = dynamic_cast<T*>(pDefinition);
     if (!pDictionaryDef)
-        throw new MgInvalidArgumentException(L"CCoordinateSystemDictionaryBase.Modify", \
__LINE__, __WFILE__, NULL, L"CCoordinateSystemDictionaryBase", NULL); +        throw \
new MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"CCoordinateSystemDictionaryBase.Modify", __LINE__, __WFILE__, NULL, \
L"CCoordinateSystemDictionaryBase", NULL);  
     MG_TRY()
 
@@ -239,12 +239,12 @@
     {
         MgStringCollection whatArguments;
         whatArguments.Add(sName);
-        throw new MgCoordinateSystemLoadFailedException(L"CCoordinateSystemDictionaryBase.Get", \
__LINE__, __WFILE__, &whatArguments, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgCoordinateSystemLoadFailedException, \
L"CCoordinateSystemDictionaryBase.Get", __LINE__, __WFILE__, &whatArguments, L"", \
NULL);  }
 
     pDefinition = this->NewItem(); //no AddRef; release if needed
     if (NULL == pDefinition.p) //ABA ???
-        throw new MgOutOfMemoryException(L"CCoordinateSystemDictionaryBase.Get", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"CCoordinateSystemDictionaryBase.Get", __LINE__, __WFILE__, NULL, L"", NULL);  
     //we've created the Mg instance, we got the CS_Map definition; now let the Mg \
instance initialize itself from the  //struct;
@@ -276,10 +276,17 @@
 
         return NULL != definition;
     }
-    catch(MgCoordinateSystemLoadFailedException* loadFailedException)
+    catch (MgException* ex)
     {
-        loadFailedException->Release();
-        return false;
+        if (ex->GetExceptionCode() == \
MgExceptionCodes::MgCoordinateSystemLoadFailedException) +        {
+            ex->Release();
+            return false;
+        }
+        else
+        {
+            ex->Raise();
+        }
     }
 
     MG_CATCH_AND_THROW(L"CCoordinateSystemDictionaryBase.Has")
@@ -325,7 +332,7 @@
             definitionAccess->readAllDefinitions);
 
         if (NULL == allDictionaryEntries) //whatever happend here - the dictionay \
                file seems to be invalid
-            throw new \
MgCoordinateSystemLoadFailedException(L"CCoordinateSystemDictionaryBase.GetEnumImp", \
__LINE__, __WFILE__, NULL, L"", NULL); +            throw new \
MgException(MgExceptionCodes::MgCoordinateSystemLoadFailedException, \
L"CCoordinateSystemDictionaryBase.GetEnumImp", __LINE__, __WFILE__, NULL, L"", NULL); \
}  else
     {
@@ -343,7 +350,7 @@
         && NULL == mgException.p)
         //if there hasn't yet an exception occurred we now have one
         //if there was one already we (unfortunately) do now swallow the \
                MgFileIoException
-        mgException = new \
MgFileIoException(L"CCoordinateSystemDictionaryBase.GetEnumImp", __LINE__, __WFILE__, \
NULL, L"MgCoordinateSystemDictionaryCloseFailedException", NULL); +        \
mgException = new MgException(MgExceptionCodes::MgFileIoException, \
L"CCoordinateSystemDictionaryBase.GetEnumImp", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemDictionaryCloseFailedException", NULL);  
     MG_THROW()
 

Modified: trunk/MgDev/Common/CoordinateSystem/CoordSysDictionaryUtility.cpp
===================================================================
--- trunk/MgDev/Common/CoordinateSystem/CoordSysDictionaryUtility.cpp	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/CoordinateSystem/CoordSysDictionaryUtility.cpp	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -88,7 +88,7 @@
     char *pDict = Convert_Wide_To_Ascii(kpDict);    //need to delete [] pDict;
     if (NULL == pDict)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemDictionaryUtility.CreateDictionaryFile", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemDictionaryUtility.CreateDictionaryFile", __LINE__, __WFILE__, \
NULL, L"", NULL);  }
 
     //Make sure the file doesn't already exist
@@ -99,7 +99,7 @@
         CS_fclose(pFile);
         delete [] pDict;
         //It already exists, but it's not supposed to.
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemDictionaryUtility.CreateDictionaryFile", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemDuplicateException", NULL); +        \
throw new MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemDictionaryUtility.CreateDictionaryFile", __LINE__, __WFILE__, \
NULL, L"MgCoordinateSystemDuplicateException", NULL);  }
     if (pFile)
     {
@@ -113,7 +113,7 @@
     if (1!=nWrite || ferror(pFile))
     {
         CS_fclose(pFile);
-        throw new MgFileIoException(L"MgCoordinateSystemDictionaryUtility.CreateDictionaryFile", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgFileIoException, \
L"MgCoordinateSystemDictionaryUtility.CreateDictionaryFile", __LINE__, __WFILE__, \
NULL, L"", NULL);  }
 
     //Success!

Modified: trunk/MgDev/Common/CoordinateSystem/CoordSysEllipsoid.cpp
===================================================================
--- trunk/MgDev/Common/CoordinateSystem/CoordSysEllipsoid.cpp	2022-09-15 10:14:11 UTC \
                (rev 9970)
+++ trunk/MgDev/Common/CoordinateSystem/CoordSysEllipsoid.cpp	2022-10-10 09:40:18 UTC \
(rev 9971) @@ -63,13 +63,13 @@
     if (Protected())
     {
         //Can't modify a read-only object.
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemEllipsoid.SetString", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemEllipsoidProtectedException", NULL); + \
throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystemEllipsoid.SetString", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemEllipsoidProtectedException", NULL);  }
 
     if (!IsLegalString(sSrc.c_str(), nMaxSize))
     {
         //Can't set string, caller gave us an illegal value
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemEllipsoid.SetString", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemEllipsoid.SetString", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
     //Convert to a C++ string, for Mentor's sake
@@ -76,7 +76,7 @@
     char *pStr = Convert_Wide_To_UTF8(sSrc.c_str()); //need to delete[] pStr
     if (NULL == pStr)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemEllipsoid.SetString", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemEllipsoid.SetString", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
     //Copy it in
@@ -118,7 +118,7 @@
     wchar_t *pName = Convert_UTF8_To_Wide(m_def.key_nm);
     if (NULL == pName)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemEllipsoid.GetElCode", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemEllipsoid.GetElCode", __LINE__, __WFILE__, NULL, L"", NULL);  }
     sName=pName;
     delete[] pName;
@@ -137,12 +137,12 @@
     if (Protected())
     {
         //Can't modify a read-only object.
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemEllipsoid.SetElCode", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemEllipsoidProtectedException", NULL); + \
throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystemEllipsoid.SetElCode", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemEllipsoidProtectedException", NULL);  }
 
     if (sCode.empty())
     {
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemEllipsoid.SetElCode", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemEllipsoid.SetElCode", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
     //Convert to a C++ string, for Mentor's sake
@@ -149,7 +149,7 @@
     char *pStr = Convert_Wide_To_UTF8(sCode.c_str()); //need to delete[] pStr
     if (NULL == pStr)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemEllipsoid.SetElCode", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemEllipsoid.SetElCode", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
     //Try to make a legal name.  CS_nampp() legalizes the
@@ -161,7 +161,7 @@
     {
         //illegal string
         delete [] pStr;
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemEllipsoid.SetElCode", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemEllipsoid.SetElCode", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
     //Copy into the definition
@@ -259,7 +259,7 @@
     bool bResult = BuildElDefFromInterface(pElDef, def);
     if (!bResult)
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemEllipsoid.IsSameAs", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystemEllipsoid.IsSameAs", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
     //And compare with this one!
@@ -292,7 +292,7 @@
 
     if (NULL == pDef.p)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemEllipsoid.CreateClone", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemEllipsoid.CreateClone", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
     //Copy data members into the new object.  NOTE:  if new
@@ -324,7 +324,7 @@
     wchar_t *pDesc = Convert_UTF8_To_Wide(m_def.name);
     if (NULL == pDesc)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemEllipsoid.GetDescription", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemEllipsoid.GetDescription", __LINE__, __WFILE__, NULL, L"", NULL); \
}  sDesc=pDesc;
     delete[] pDesc;
@@ -362,7 +362,7 @@
     wchar_t *pGroup = Convert_UTF8_To_Wide(m_def.group);
     if (NULL == pGroup)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemEllipsoid.GetGroup", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemEllipsoid.GetGroup", __LINE__, __WFILE__, NULL, L"", NULL);  }
     sGroup=pGroup;
     delete[] pGroup;
@@ -399,7 +399,7 @@
     wchar_t *pSource = Convert_UTF8_To_Wide(m_def.source);
     if (NULL == pSource)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemEllipsoid.GetSource", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemEllipsoid.GetSource", __LINE__, __WFILE__, NULL, L"", NULL);  }
     STRING sSource(pSource);
     delete[] pSource;
@@ -511,7 +511,7 @@
     if (Protected())
     {
         //can't change a read-only object
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemEllipsoid.SetRadii", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemEllipsoidProtectedException", NULL); + \
throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystemEllipsoid.SetRadii", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemEllipsoidProtectedException", NULL);  }
 
     //Make sure the radii are mathematically valid
@@ -518,7 +518,7 @@
     if (!IsLegalEllipsoidRadius(dEquatorialRadius)
         || !IsLegalEllipsoidRadius(dPolarRadius))
     {
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemEllipsoid.SetRadii", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemEllipsoid.SetRadii", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
     //Make sure the flattening ratio is legitimate
@@ -525,7 +525,7 @@
     double dFlat = FlatteningRatio(dEquatorialRadius, dPolarRadius);
     if (!::IsLegalFlatteningRatio(dFlat))
     {
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemEllipsoid.SetRadii", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemEllipsoid.SetRadii", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
     //Okay, everything's kosher, store the values.
@@ -552,7 +552,7 @@
     assert(dFlat <= 1.0);
     if ((dFlat < 0.0) || (dFlat > 1.0))
     {
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemEllipsoid.FlatteningRatioToEccentricity", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemEllipsoid.FlatteningRatioToEccentricity", __LINE__, __WFILE__, \
NULL, L"", NULL);  }
 
     dEccent = Eccentricity(dFlat);
@@ -577,7 +577,7 @@
     assert(dEccent <= 1.0);
     if ((dEccent < 0.0) || (dEccent > 1.0))
     {
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemEllipsoid.EccentToFlat", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemEllipsoid.EccentToFlat", __LINE__, __WFILE__, NULL, L"", NULL);  \
}  
     dFlat = FlatteningRatio(dEccent);
@@ -602,7 +602,7 @@
     assert(dFlatteningRatio < 1.0);
     if ((dFlatteningRatio < 0.0) || (dFlatteningRatio >= 1.0))
     {
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemEllipsoid.EquatorialRadiusFromPolarRadiusFlatteningRatio", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemEllipsoid.EquatorialRadiusFromPolarRadiusFlatteningRatio", \
__LINE__, __WFILE__, NULL, L"", NULL);  }
 
     dEquatorialRadius = dPolarRadius / (1.0 - dFlatteningRatio);
@@ -627,7 +627,7 @@
     assert(dFlatteningRatio < 1.0);
     if ((dFlatteningRatio < 0.0) || (dFlatteningRatio >= 1.0))
     {
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemEllipsoid.PolarRadiusFromEquatorialRadiusFlatteningRatio", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemEllipsoid.PolarRadiusFromEquatorialRadiusFlatteningRatio", \
__LINE__, __WFILE__, NULL, L"", NULL);  }
 
     dPolarRadius = dEquatorialRadius * (1.0 - dFlatteningRatio);
@@ -787,11 +787,11 @@
 
     if (!IsLegalEllipsoidRadius(dEquatorialRadius))
     {
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemEllipsoid.FlatteningRatioFromRadii", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemEllipsoid.FlatteningRatioFromRadii", __LINE__, __WFILE__, NULL, \
L"", NULL);  }
     if (!IsLegalEllipsoidRadius(dPolarRadius))
     {
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemEllipsoid.FlatteningRatioFromRadii", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemEllipsoid.FlatteningRatioFromRadii", __LINE__, __WFILE__, NULL, \
L"", NULL);  }
 
     dFlat = FlatteningRatio(dEquatorialRadius, dPolarRadius);
@@ -815,7 +815,7 @@
     assert(NULL != pStream);
     if (!pStream)
     {
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemEllipsoid.SerializeFrom", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemEllipsoid.SerializeFrom", __LINE__, __WFILE__, NULL, L"", NULL);  \
}  
     UINT8 nVersion=pStreamOut[0];
@@ -851,7 +851,7 @@
         {
             m_bEncrypted = bPrevEncrypted;
             m_def = prevDef;
-            throw new \
MgInvalidArgumentException(L"MgCoordinateSystemEllipsoid.SerializeFrom", __LINE__, \
__WFILE__, NULL, L"", NULL); +            throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemEllipsoid.SerializeFrom", __LINE__, __WFILE__, NULL, L"", NULL);  \
}  }
 
@@ -868,7 +868,7 @@
     assert(NULL != pStream);
     if (!pStream)
     {
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemEllipsoid.SerializeTo", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemEllipsoid.SerializeTo", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
     //save the version

Modified: trunk/MgDev/Common/CoordinateSystem/CoordSysEllipsoidDictionary.cpp
===================================================================
--- trunk/MgDev/Common/CoordinateSystem/CoordSysEllipsoidDictionary.cpp	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/CoordinateSystem/CoordSysEllipsoidDictionary.cpp	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -253,7 +253,7 @@
 
     if (NULL == pNewDef.p)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemEllipsoidDictionary.NewEllipsoid", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemEllipsoidDictionary.NewEllipsoid", __LINE__, __WFILE__, NULL, \
L"", NULL);  }
 
     MG_CATCH_AND_THROW(L"MgCoordinateSystemEllipsoidDictionary.NewEllipsoid")
@@ -285,7 +285,7 @@
     {
         MgStringCollection arguments;
         arguments.Add(sFileName);
-        throw new MgFileIoException(L"MgCoordinateSystemEllipsoidDictionary.SetFileName", \
__LINE__, __WFILE__, &arguments, L"MgInvalidArgumentException", NULL); +        throw \
new MgException(MgExceptionCodes::MgFileIoException, \
L"MgCoordinateSystemEllipsoidDictionary.SetFileName", __LINE__, __WFILE__, \
&arguments, L"MgInvalidArgumentException", NULL);  }
 
     MentorDictionary::SetFileName(
@@ -352,7 +352,7 @@
     nSize=(ulFileBytes - sizeof(m_lMagic)) / sizeof(cs_Eldef_);
     if (0!=CS_fclose(pFile))
     {
-        throw new MgFileIoException(L"MgCoordinateSystemEllipsoidDictionary.GetSize", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemDictionaryCloseFailedException", \
NULL); +        throw new MgException(MgExceptionCodes::MgFileIoException, \
L"MgCoordinateSystemEllipsoidDictionary.GetSize", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemDictionaryCloseFailedException", NULL);  }
     MG_CATCH_AND_THROW(L"MgCoordinateSystemEllipsoidDictionary.GetSize")
 
@@ -379,7 +379,7 @@
     MgCoordinateSystemEllipsoid* \
pEllipsoidDef=dynamic_cast<MgCoordinateSystemEllipsoid*>(pDefinition);  if \
(!pEllipsoidDef)  {
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemEllipsoidDictionary.Add", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemMismatchException", NULL); +        \
throw new MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemEllipsoidDictionary.Add", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemMismatchException", NULL);  }
 
     MentorDictionary::UpdateDef<cs_Eldef_, MgCoordinateSystemEllipsoid>(
@@ -429,7 +429,7 @@
     MgCoordinateSystemEllipsoid* \
pEllipsoidDef=dynamic_cast<MgCoordinateSystemEllipsoid*>(pDefinition);  if \
(!pEllipsoidDef)  {
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemEllipsoidDictionary.Modify", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemMismatchException", NULL); +        \
throw new MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemEllipsoidDictionary.Modify", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemMismatchException", NULL);  }
 
     MentorDictionary::UpdateDef<cs_Eldef_, MgCoordinateSystemEllipsoid>(
@@ -475,7 +475,7 @@
         //wasn't there!
         MgStringCollection whatArguments;
         whatArguments.Add(sName);
-        throw new MgCoordinateSystemLoadFailedException(L"MgCoordinateSystemEllipsoidDictionary.GetEllipsoid", \
__LINE__, __WFILE__, &whatArguments, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgCoordinateSystemLoadFailedException, \
L"MgCoordinateSystemEllipsoidDictionary.GetEllipsoid", __LINE__, __WFILE__, \
&whatArguments, L"", NULL);  }
 
     //Okay, at this point we have a Mentor ellipsoid definition
@@ -508,7 +508,7 @@
 
     if (NULL == pEllipsoidDef.p)
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemEllipsoidDictionary.GetEllipsoid", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystemEllipsoidDictionary.GetEllipsoid", __LINE__, __WFILE__, NULL, \
L"", NULL);  }
 
     return pEllipsoidDef.Detach();
@@ -526,7 +526,7 @@
     char *pName = Convert_Wide_To_UTF8(sName.c_str()); //need to delete [] pName
     if (NULL == pName)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemEllipsoidDictionary.Has", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemEllipsoidDictionary.Has", __LINE__, __WFILE__, NULL, L"", NULL);  \
}  
     if (NULL != m_pmapSystemNameDescription)
@@ -579,7 +579,7 @@
 
     //close the file before calling into the [read all CS-Map defs] method
     if (0 != CS_fclose(pFile))
-        throw new MgFileIoException(L"MgCoordinateSystemDictionary.GetEnum", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemDictionaryCloseFailedException", \
NULL); +        throw new MgException(MgExceptionCodes::MgFileIoException, \
L"MgCoordinateSystemDictionary.GetEnum", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemDictionaryCloseFailedException", NULL);  
     pFile = NULL;
 
@@ -592,7 +592,7 @@
             CS_eldefAll);
         if (NULL == m_pmapSystemNameDescription)
         {
-            throw new \
MgInvalidArgumentException(L"MgCoordinateSystemEllipsoidDictionary.GetEnum", \
__LINE__, __WFILE__, NULL, L"", NULL); +            throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemEllipsoidDictionary.GetEnum", __LINE__, __WFILE__, NULL, L"", \
NULL);  }
     }
 
@@ -601,7 +601,7 @@
 
     if (pFile && 0 != CS_fclose(pFile))
     {
-        throw new MgFileIoException(L"MgCoordinateSystemEllipsoidDictionary.GetEnum", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemDictionaryCloseFailedException", \
NULL); +        throw new MgException(MgExceptionCodes::MgFileIoException, \
L"MgCoordinateSystemEllipsoidDictionary.GetEnum", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemDictionaryCloseFailedException", NULL);  }
 
     pFile = NULL;
@@ -630,7 +630,7 @@
 
     CCoordinateSystemEllipsoidDictionary* ellipsoidDictionary = \
dynamic_cast<CCoordinateSystemEllipsoidDictionary*>(targetDictionary);  if (NULL == \
                ellipsoidDictionary)
-        throw new MgInvalidArgumentException(L"CCoordinateSystemEllipsoidDictionary.ReadAllEllipsoids", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"CCoordinateSystemEllipsoidDictionary.ReadAllEllipsoids", __LINE__, __WFILE__, NULL, \
L"", NULL);  
     return MentorDictionary::ReadAllDefinitions<MgCoordinateSystemEllipsoid, \
cs_Eldef_, CCoordinateSystemEllipsoidDictionary>(  ellipsoidDictionary,

Modified: trunk/MgDev/Common/CoordinateSystem/CoordSysEnum.cpp
===================================================================
--- trunk/MgDev/Common/CoordinateSystem/CoordSysEnum.cpp	2022-09-15 10:14:11 UTC (rev \
                9970)
+++ trunk/MgDev/Common/CoordinateSystem/CoordSysEnum.cpp	2022-10-10 09:40:18 UTC (rev \
9971) @@ -104,7 +104,7 @@
     pOutput=new MgDisposableCollection;
     if (!pOutput)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemEnum.Next", __LINE__, \
__WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, L"MgCoordinateSystemEnum.Next", \
__LINE__, __WFILE__, NULL, L"", NULL);  }
 
     //optimization:
@@ -136,7 +136,7 @@
         wchar_t* pStr = Convert_UTF8_To_Wide(kpName);
         if (NULL == pStr)
         {
-            throw new MgOutOfMemoryException(L"MgCoordinateSystemEnum.Next", \
__LINE__, __WFILE__, NULL, L"", NULL); +            throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, L"MgCoordinateSystemEnum.Next", \
__LINE__, __WFILE__, NULL, L"", NULL);  }
 
         STRING str(pStr);
@@ -147,7 +147,7 @@
         {
             MgStringCollection arguments;
             arguments.Add(str);
-            throw new \
MgCoordinateSystemLoadFailedException(L"MgCoordinateSystemEnum.Next", __LINE__, \
__WFILE__, &arguments, L"", NULL); +            throw new \
MgException(MgExceptionCodes::MgCoordinateSystemLoadFailedException, \
L"MgCoordinateSystemEnum.Next", __LINE__, __WFILE__, &arguments, L"", NULL);  }
 
         //is it filtered out?
@@ -173,7 +173,7 @@
     pOutput=new MgStringCollection;
     if (!pOutput)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemEnum.NextName", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemEnum.NextName", __LINE__, __WFILE__, NULL, L"", NULL);  }
     for (; m_iter != m_pmapSystemNameDescription->end(); ++m_iter)
     {
@@ -190,7 +190,7 @@
         wchar_t *pwName = Convert_UTF8_To_Wide(kpName);
         if (NULL == pwName)
         {
-            throw new MgOutOfMemoryException(L"MgCoordinateSystemEnum.NextName", \
__LINE__, __WFILE__, NULL, L"", NULL); +            throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemEnum.NextName", __LINE__, __WFILE__, NULL, L"", NULL);  }
         pOutput->Add(pwName);
         delete[] pwName;
@@ -208,7 +208,7 @@
     pOutput=new MgStringCollection;
     if (!pOutput)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemEnum.NextDescription", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemEnum.NextDescription", __LINE__, __WFILE__, NULL, L"", NULL);  }
     for (; m_iter != m_pmapSystemNameDescription->end(); ++m_iter)
     {
@@ -225,7 +225,7 @@
         wchar_t *pwDecsription = Convert_UTF8_To_Wide(kpDecsription);
         if (NULL == pwDecsription)
         {
-            throw new \
MgOutOfMemoryException(L"MgCoordinateSystemEnum.NextDescription", __LINE__, \
__WFILE__, NULL, L"", NULL); +            throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemEnum.NextDescription", __LINE__, __WFILE__, NULL, L"", NULL);  }
         pOutput->Add(pwDecsription);
         delete[] pwDecsription;
@@ -261,7 +261,7 @@
 
     if (ulSkipCount != ulSkipped)
     {
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemEnum.Skip", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemEnum.Skip", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
     MG_CATCH_AND_THROW(L"MgCoordinateSystemEnum.Skip")
@@ -300,7 +300,7 @@
     wchar_t* pStr = Convert_UTF8_To_Wide(kpName);
     if (NULL == pStr)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemEnum.IsFilteredOut", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemEnum.IsFilteredOut", __LINE__, __WFILE__, NULL, L"", NULL);  }
     STRING str(pStr);
     delete[] pStr;
@@ -310,7 +310,7 @@
     {
         MgStringCollection arguments;
         arguments.Add(str);
-        throw new MgCoordinateSystemLoadFailedException(L"MgCoordinateSystemEnum.IsFilteredOut", \
__LINE__, __WFILE__, &arguments, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgCoordinateSystemLoadFailedException, \
L"MgCoordinateSystemEnum.IsFilteredOut", __LINE__, __WFILE__, &arguments, L"", NULL); \
}  
     //Evaluate it
@@ -360,7 +360,7 @@
 
     if (NULL == pNew.p)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemEnum.CreateClone", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemEnum.CreateClone", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
     //Copy data members into the new object.  NOTE:  if new

Modified: trunk/MgDev/Common/CoordinateSystem/CoordSysEnumCategory.cpp
===================================================================
--- trunk/MgDev/Common/CoordinateSystem/CoordSysEnumCategory.cpp	2022-09-15 10:14:11 \
                UTC (rev 9970)
+++ trunk/MgDev/Common/CoordinateSystem/CoordSysEnumCategory.cpp	2022-10-10 09:40:18 \
UTC (rev 9971) @@ -100,7 +100,7 @@
     wchar_t* pStr = Convert_UTF8_To_Wide(kpName);
     if (NULL == pStr)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemEnum.IsFilteredOut", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemEnum.IsFilteredOut", __LINE__, __WFILE__, NULL, L"", NULL);  }
     STRING str(pStr);
     delete[] pStr;
@@ -110,7 +110,7 @@
     {
         MgStringCollection arguments;
         arguments.Add(str);
-        throw new MgCoordinateSystemLoadFailedException(L"MgCoordinateSystemEnum.IsFilteredOut", \
__LINE__, __WFILE__, &arguments, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgCoordinateSystemLoadFailedException, \
L"MgCoordinateSystemEnum.IsFilteredOut", __LINE__, __WFILE__, &arguments, L"", NULL); \
}  
     //Evaluate it
@@ -155,7 +155,7 @@
     pOutput=new MgDisposableCollection;
     if (!pOutput)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemEnum.Next", __LINE__, \
__WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, L"MgCoordinateSystemEnum.Next", \
__LINE__, __WFILE__, NULL, L"", NULL);  }
 
     wchar_t* pStr;
@@ -173,7 +173,7 @@
         pStr = Convert_UTF8_To_Wide(kpName);
         if (NULL == pStr)
         {
-            throw new MgOutOfMemoryException(L"MgCoordinateSystemEnum.Next", \
__LINE__, __WFILE__, NULL, L"", NULL); +            throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, L"MgCoordinateSystemEnum.Next", \
__LINE__, __WFILE__, NULL, L"", NULL);  }
         STRING str(pStr);
         delete[] pStr;
@@ -183,7 +183,7 @@
         {
             MgStringCollection arguments;
             arguments.Add(str);
-            throw new \
MgCoordinateSystemLoadFailedException(L"MgCoordinateSystemEnum.Next", __LINE__, \
__WFILE__, &arguments, L"", NULL); +            throw new \
MgException(MgExceptionCodes::MgCoordinateSystemLoadFailedException, \
L"MgCoordinateSystemEnum.Next", __LINE__, __WFILE__, &arguments, L"", NULL);  }
 
         //check if this category is filtered out or not
@@ -211,7 +211,7 @@
     pOutput=new MgStringCollection;
     if (!pOutput)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemEnum.NextName", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemEnum.NextName", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
     for (; m_iter != m_pCategoryNameList->end(); ++m_iter)
@@ -231,7 +231,7 @@
         wchar_t *pwName = Convert_UTF8_To_Wide(kpName);
         if (NULL == pwName)
         {
-            throw new MgOutOfMemoryException(L"MgCoordinateSystemEnum.NextName", \
__LINE__, __WFILE__, NULL, L"", NULL); +            throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemEnum.NextName", __LINE__, __WFILE__, NULL, L"", NULL);  }
         pOutput->Add(pwName);
         delete[] pwName;
@@ -244,7 +244,7 @@
 //----------------------------------------------------------
 MgStringCollection* CCoordinateSystemEnumCategory::NextDescription(UINT32 ulCount)
 {
-    throw new MgNotImplementedException(L"MgCoordinateSystemEnum.NextDescription", \
__LINE__, __WFILE__, NULL, L"", NULL); +    throw new \
MgException(MgExceptionCodes::MgNotImplementedException, \
L"MgCoordinateSystemEnum.NextDescription", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
 //----------------------------------------------------------
@@ -273,7 +273,7 @@
 
     if (ulSkipCount != ulSkipped)
     {
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemEnum.Skip", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemEnum.Skip", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
     MG_CATCH_AND_THROW(L"MgCoordinateSystemEnum.Skip")
@@ -303,7 +303,7 @@
 
     if (NULL == pNew.p)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemEnum.CreateClone", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemEnum.CreateClone", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
     //Copy it from this one

Modified: trunk/MgDev/Common/CoordinateSystem/CoordSysEnumCoordinateSystemInCategory.cpp
 ===================================================================
--- trunk/MgDev/Common/CoordinateSystem/CoordSysEnumCoordinateSystemInCategory.cpp	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/CoordinateSystem/CoordSysEnumCoordinateSystemInCategory.cpp	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -98,18 +98,18 @@
     pOutput=new MgDisposableCollection;
     if (!pOutput)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemEnum.Next", __LINE__, \
__WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, L"MgCoordinateSystemEnum.Next", \
__LINE__, __WFILE__, NULL, L"", NULL);  }
 
     if (!m_pCatalog)
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemEnum.Next", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystemEnum.Next", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
     Ptr<MgCoordinateSystemDictionary> pCsDict = \
m_pCatalog->GetCoordinateSystemDictionary();  if (!pCsDict)
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystem.Next", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemNoDictionaryException", NULL); +       \
throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystem.Next", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemNoDictionaryException", NULL);  }
 
     for (; m_iter != this->m_csNames.end(); ++m_iter)
@@ -201,7 +201,7 @@
 
     if (ulSkipCount != ulSkipped)
     {
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemEnum.Skip", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemEnum.Skip", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
     MG_CATCH_AND_THROW(L"MgCoordinateSystemEnum.Skip")
@@ -235,12 +235,12 @@
 
     if (!m_pCatalog)
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemEnum.IsFilteredOut", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystemEnum.IsFilteredOut", __LINE__, __WFILE__, NULL, L"", NULL);  }
     Ptr<MgCoordinateSystemDictionary> \
pCsDict=m_pCatalog->GetCoordinateSystemDictionary();  if (!pCsDict)
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystem.IsFilteredOut", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemNoDictionaryException", NULL); +       \
throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystem.IsFilteredOut", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemNoDictionaryException", NULL);  }
 
     //Get a def from the set for the Filter to work with
@@ -251,7 +251,7 @@
     {
         MgStringCollection arguments;
         arguments.Add(str);
-        throw new MgCoordinateSystemLoadFailedException(L"MgCoordinateSystemEnum.IsFilteredOut", \
__LINE__, __WFILE__, &arguments, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgCoordinateSystemLoadFailedException, \
L"MgCoordinateSystemEnum.IsFilteredOut", __LINE__, __WFILE__, &arguments, L"", NULL); \
}  
     //Evaluate it

Modified: trunk/MgDev/Common/CoordinateSystem/CoordSysEnumDatum.cpp
===================================================================
--- trunk/MgDev/Common/CoordinateSystem/CoordSysEnumDatum.cpp	2022-09-15 10:14:11 UTC \
                (rev 9970)
+++ trunk/MgDev/Common/CoordinateSystem/CoordSysEnumDatum.cpp	2022-10-10 09:40:18 UTC \
(rev 9971) @@ -49,7 +49,7 @@
 
     if (NULL == pNew.p)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemEnum.CreateClone", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemEnum.CreateClone", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
     //Copy data members into the new object.  NOTE:  if new

Modified: trunk/MgDev/Common/CoordinateSystem/CoordSysEnumEllipsoid.cpp
===================================================================
--- trunk/MgDev/Common/CoordinateSystem/CoordSysEnumEllipsoid.cpp	2022-09-15 10:14:11 \
                UTC (rev 9970)
+++ trunk/MgDev/Common/CoordinateSystem/CoordSysEnumEllipsoid.cpp	2022-10-10 09:40:18 \
UTC (rev 9971) @@ -49,7 +49,7 @@
 
     if (NULL == pNew.p)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemEnum.CreateClone", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemEnum.CreateClone", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
     //Copy data members into the new object.  NOTE:  if new

Modified: trunk/MgDev/Common/CoordinateSystem/CoordSysEnumInteger32.cpp
===================================================================
--- trunk/MgDev/Common/CoordinateSystem/CoordSysEnumInteger32.cpp	2022-09-15 10:14:11 \
                UTC (rev 9970)
+++ trunk/MgDev/Common/CoordinateSystem/CoordSysEnumInteger32.cpp	2022-10-10 09:40:18 \
UTC (rev 9971) @@ -71,7 +71,7 @@
     m_pnValues = new INT32[ulSize];
     if (NULL == m_pnValues)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemEnumInteger32.SetList", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemEnumInteger32.SetList", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
     //Copy them in and return success
@@ -112,7 +112,7 @@
     pOutput=new MgIntCollection;
     if (!pOutput)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemEnumInteger32.Next", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemEnumInteger32.Next", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
     for (; m_ulPos < m_ulSize; m_ulPos++)
@@ -144,7 +144,7 @@
     pOutput=new MgStringCollection;
     if (!pOutput)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemEnumInteger32.Next", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemEnumInteger32.Next", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
     for (; m_ulPos < m_ulSize; m_ulPos++)
@@ -197,7 +197,7 @@
     }
     if (ulSkipCount != ulSkipped)
     {
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemEnumInteger32.Skip", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemEnumInteger32.Skip", __LINE__, __WFILE__, NULL, L"", NULL);  }
     MG_CATCH_AND_THROW(L"MgCoordinateSystemEnumInteger32.Skip")
 }
@@ -251,7 +251,7 @@
 
     if (NULL == pNew.p)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemEnumInteger32.CreateClone", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemEnumInteger32.CreateClone", __LINE__, __WFILE__, NULL, L"", \
NULL);  }
 
     //Copy data members into the new object.  NOTE:  if new

Modified: trunk/MgDev/Common/CoordinateSystem/CoordSysFormatConverter.cpp
===================================================================
--- trunk/MgDev/Common/CoordinateSystem/CoordSysFormatConverter.cpp	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/CoordinateSystem/CoordSysFormatConverter.cpp	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -62,13 +62,13 @@
     if (wktFlvrUnknown==GetWktFlavor(nWktFlavor))
     {
         //invalid argument
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemFormatConverter.DefinitionToWkt", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemFormatConverter.DefinitionToWkt", __LINE__, __WFILE__, NULL, L"", \
NULL);  }
 
     bool bResult = BuildDefsFromInterface(pSource, pCsDef, pDtDef, pElDef);
     if (!bResult)
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemFormatConverter.DefinitionToWkt", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystemFormatConverter.DefinitionToWkt", __LINE__, __WFILE__, NULL, L"", \
NULL);  }
 
     if (ProjectionIsNerthType (pCsDef->prj_knm))
@@ -85,7 +85,7 @@
             wchar_t* pwszWkt=Convert_UTF8_To_Wide(csWktBufr);
             if (!pwszWkt)
             {
-                throw new \
MgOutOfMemoryException(L"MgCoordinateSystemFormatConverter.DefinitionToWkt", \
__LINE__, __WFILE__, NULL, L"", NULL); +                throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemFormatConverter.DefinitionToWkt", __LINE__, __WFILE__, NULL, L"", \
NULL);  }
             sWkt=pwszWkt;
             delete[] pwszWkt;
@@ -159,11 +159,11 @@
             Ptr<CCoordinateSystem> pNew = new CCoordinateSystem(m_pCatalog);
             if (NULL == pNew.p)
             {
-                throw new \
MgOutOfMemoryException(L"MgCoordinateSystemFormatConverter.WktToDefinition", \
__LINE__, __WFILE__, NULL, L"", NULL); +                throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemFormatConverter.WktToDefinition", __LINE__, __WFILE__, NULL, L"", \
NULL);  }
             else if (!pNew->InitArbitrary(csprm))
             {
-                throw new \
MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemFormatConverter.WktToDefinition", \
__LINE__, __WFILE__, NULL, L"", NULL); +                throw new \
MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystemFormatConverter.WktToDefinition", __LINE__, __WFILE__, NULL, L"", \
NULL);  }
             return pNew.Detach();
         }
@@ -172,7 +172,7 @@
     pszWkt = Convert_Wide_To_UTF8(sWkt.c_str());
     if (NULL == pszWkt)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemFormatConverter.WktToDefinition", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemFormatConverter.WktToDefinition", __LINE__, __WFILE__, NULL, L"", \
NULL);  }
 
     struct cs_Csdef_ csDef;
@@ -346,7 +346,7 @@
         //make a coordsys object
         if (!pCsDef || !pElDef)
         {
-            throw new \
MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemFormatConverter.WktToDefinition", \
__LINE__, __WFILE__, NULL, L"", NULL); +            throw new \
MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystemFormatConverter.WktToDefinition", __LINE__, __WFILE__, NULL, L"", \
NULL);  }
 
         //do we have a datum?
@@ -356,7 +356,7 @@
             Ptr<MgCoordinateSystemDatum> pDtDef=BuildInterfaceFromDtDef(dtDef, \
NULL);  if (!pDtDef)
             {
-                throw new \
MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemFormatConverter.WktToDefinition", \
__LINE__, __WFILE__, NULL, L"", NULL); +                throw new \
MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystemFormatConverter.WktToDefinition", __LINE__, __WFILE__, NULL, L"", \
NULL);  }
             pDtDef->SetEllipsoidDefinition(pElDef);
             pCsDef->SetDatumDefinition(pDtDef);
@@ -387,7 +387,7 @@
         // Could not create the coordinate system from the WKT
         MgStringCollection arguments;
         arguments.Add(sWkt);
-        throw new MgCoordinateSystemConversionFailedException(L"MgCoordinateSystemFormatConverter.WktToDefinition", \
__LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemFailedToCreateCoordinateSystemFromWkt", &arguments); +        \
throw new MgException(MgExceptionCodes::MgCoordinateSystemConversionFailedException, \
L"MgCoordinateSystemFormatConverter.WktToDefinition", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemFailedToCreateCoordinateSystemFromWkt", &arguments);  }
     else
     {
@@ -432,7 +432,7 @@
     if (wktFlvrUnknown==GetWktFlavor(nWktFlavor))
     {
         //invalid argument
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemFormatConverter.CodeToWkt", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemFormatConverter.CodeToWkt", __LINE__, __WFILE__, NULL, L"", \
NULL);  }
 
     std::string szMsiName;
@@ -487,7 +487,7 @@
         char *pszCsSource = Convert_Wide_To_UTF8(sCodeSource.c_str());
         if (!pszCsSource)
         {
-            throw new \
MgOutOfMemoryException(L"MgCoordinateSystemFormatConverter.CodeToWkt", __LINE__, \
__WFILE__, NULL, L"", NULL); +            throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemFormatConverter.CodeToWkt", __LINE__, __WFILE__, NULL, L"", \
NULL);  }
         strName=pszCsSource;
         delete[] pszCsSource;
@@ -501,7 +501,7 @@
     else
     {
         //invalid source format
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemFormatConverter.CodeToWkt", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemFormatConverter.CodeToWkt", __LINE__, __WFILE__, NULL, L"", \
NULL);  }
 
     //now get the WKT
@@ -511,7 +511,7 @@
     wchar_t* wszMsiName=Convert_UTF8_To_Wide(szMsiName.c_str());
     if (!wszMsiName)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemFormatConverter.CodeToWkt", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemFormatConverter.CodeToWkt", __LINE__, __WFILE__, NULL, L"", \
NULL);  }
     STRING strMsiName(wszMsiName);
     delete[] wszMsiName;
@@ -520,7 +520,7 @@
     {
         MgStringCollection arguments;
         arguments.Add(strMsiName);
-        throw new MgCoordinateSystemLoadFailedException(L"MgCoordinateSystemFormatConverter.CodeToWkt", \
__LINE__, __WFILE__, &arguments, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgCoordinateSystemLoadFailedException, \
L"MgCoordinateSystemFormatConverter.CodeToWkt", __LINE__, __WFILE__, &arguments, L"", \
NULL);  }
 
     INT32 prj=pCsCoordinateSystemDef->GetProjectionCode();
@@ -536,7 +536,7 @@
             wchar_t* wszWkt=Convert_UTF8_To_Wide(csWktBufr);
             if (!wszWkt)
             {
-                throw new \
MgOutOfMemoryException(L"MgCoordinateSystemFormatConverter.CodeToWkt", __LINE__, \
__WFILE__, NULL, L"", NULL); +                throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemFormatConverter.CodeToWkt", __LINE__, __WFILE__, NULL, L"", \
NULL);  }
 
             sWkt=wszWkt;
@@ -581,7 +581,7 @@
     pszWkt = Convert_Wide_To_UTF8(sWkt.c_str());
     if (NULL == pszWkt)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemFormatConverter.WktToCode", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemFormatConverter.WktToCode", __LINE__, __WFILE__, NULL, L"", \
NULL);  }
 
     //numbers in WKT string always use a dot a separator but the locale might say \
otherwise @@ -693,7 +693,7 @@
             else
             {
                 //invalid format
-                throw new \
MgInvalidArgumentException(L"MgCoordinateSystemFormatConverter.WktToCode", __LINE__, \
__WFILE__, NULL, L"", NULL); +                throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemFormatConverter.WktToCode", __LINE__, __WFILE__, NULL, L"", \
NULL);  }
         }
     }
@@ -735,13 +735,13 @@
     STRING sCsSource=pSource->GetCsCode();
     if (sCsSource.empty())
     {
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemFormatConverter.DefinitionToCode", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemFormatConverter.DefinitionToCode", __LINE__, __WFILE__, NULL, \
L"", NULL);  }
 
     pszCsSource = Convert_Wide_To_UTF8(sCsSource.c_str());
     if (NULL == pszCsSource)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemFormatConverter.DefinitionToCode", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemFormatConverter.DefinitionToCode", __LINE__, __WFILE__, NULL, \
L"", NULL);  }
 
     //need to check if the system is in our dictionary
@@ -782,7 +782,7 @@
     else
     {
         //invalid format
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemFormatConverter.DefinitionToCode", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemFormatConverter.DefinitionToCode", __LINE__, __WFILE__, NULL, \
L"", NULL);  }
 
     MG_CATCH(L"MgCoordinateSystemFormatConverter.DefinitionToCode")
@@ -803,7 +803,7 @@
     pszCsSource = Convert_Wide_To_UTF8(sCodeSource.c_str());
     if (NULL == pszCsSource)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemFormatConverter.CodeToDefinition", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemFormatConverter.CodeToDefinition", __LINE__, __WFILE__, NULL, \
L"", NULL);  }
 
     std::string szMsiName;
@@ -846,7 +846,7 @@
     else
     {
         //invalid format
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemFormatConverter.CodeToDefinition", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemFormatConverter.CodeToDefinition", __LINE__, __WFILE__, NULL, \
L"", NULL);  }
 
     //now get the definition
@@ -857,7 +857,7 @@
         wchar_t* wszMsiName=Convert_UTF8_To_Wide(szMsiName.c_str());
         if (!wszMsiName)
         {
-            throw new \
MgOutOfMemoryException(L"MgCoordinateSystemFormatConverter.CodeToDefinition", \
__LINE__, __WFILE__, NULL, L"", NULL); +            throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemFormatConverter.CodeToDefinition", __LINE__, __WFILE__, NULL, \
L"", NULL);  }
         STRING sMsiName(wszMsiName);
         delete[] wszMsiName;
@@ -869,7 +869,7 @@
         // Could not create the coordinate system from the code
         MgStringCollection arguments;
         arguments.Add(sCodeSource);
-        throw new MgCoordinateSystemConversionFailedException(L"MgCoordinateSystemFormatConverter.CodeToDefinition", \
__LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemFailedToCreateCoordinateSystemFromCode", &arguments); +        \
throw new MgException(MgExceptionCodes::MgCoordinateSystemConversionFailedException, \
L"MgCoordinateSystemFormatConverter.CodeToDefinition", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemFailedToCreateCoordinateSystemFromCode", &arguments);  }
 
     MG_CATCH(L"MgCoordinateSystemFormatConverter.CodeToDefinition")
@@ -890,7 +890,7 @@
     pszCsSource = Convert_Wide_To_UTF8(sCodeSource.c_str());
     if (NULL == pszCsSource)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemFormatConverter.CodeToCode", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemFormatConverter.CodeToCode", __LINE__, __WFILE__, NULL, L"", \
NULL);  }
 
     //if input is EPSG
@@ -929,7 +929,7 @@
                         wchar_t \
*pwszCsDestination=Convert_UTF8_To_Wide(szMsiName.c_str());  if (!pwszCsDestination)
                         {
-                            throw new \
MgOutOfMemoryException(L"MgCoordinateSystemFormatConverter.CodeToCode", __LINE__, \
__WFILE__, NULL, L"", NULL); +                            throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemFormatConverter.CodeToCode", __LINE__, __WFILE__, NULL, L"", \
NULL);  }
                         sCsCodeDestination=pwszCsDestination;
                         delete[] pwszCsDestination;
@@ -944,7 +944,7 @@
             else
             {
                 //invalid format
-                throw new \
MgInvalidArgumentException(L"MgCoordinateSystemFormatConverter.CodeToCode", __LINE__, \
__WFILE__, NULL, L"", NULL); +                throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemFormatConverter.CodeToCode", __LINE__, __WFILE__, NULL, L"", \
NULL);  }
         }
     }
@@ -980,7 +980,7 @@
     else
     {
         //invalid format
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemFormatConverter.CodeToCode", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemFormatConverter.CodeToCode", __LINE__, __WFILE__, NULL, L"", \
NULL);  }
 
     MG_CATCH(L"MgCoordinateSystemFormatConverter.CodeToCode")
@@ -1042,7 +1042,7 @@
     else
     {
         //invalid format
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemFormatConverter.IsCodeInDictionary", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemFormatConverter.IsCodeInDictionary", __LINE__, __WFILE__, NULL, \
L"", NULL);  }
 
     MG_CATCH_AND_THROW(L"MgCoordinateSystemFormatConverter.IsCodeInDictionary")
@@ -1088,7 +1088,7 @@
 
     if (NULL == pCsDict.p)
     {
-        throw new MgCoordinateSystemInitializationFailedException(
+        throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
  L"MgCoordinateSystemFormatConverter.GetCoordinateSystem",
             __LINE__, __WFILE__, NULL, L"MgCoordinateSystemNoDictionaryException", \
NULL);  }
@@ -1117,7 +1117,7 @@
     bool bResult=BuildCsDefFromInterface(pCsDef, def);
     if (!bResult)
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemFormatConverter.ConvertArbitraryToWkt", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystemFormatConverter.ConvertArbitraryToWkt", __LINE__, __WFILE__, \
NULL, L"", NULL);  }
 
     char* szWkt=CCsArbitraryCoordinateSystemUtil::ConvertCoordinateSystemToWkt(&def);


Modified: trunk/MgDev/Common/CoordinateSystem/CoordSysGeodeticAnalyticalTransformDefParams.cpp
 ===================================================================
--- trunk/MgDev/Common/CoordinateSystem/CoordSysGeodeticAnalyticalTransformDefParams.cpp	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/CoordinateSystem/CoordSysGeodeticAnalyticalTransformDefParams.cpp	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -36,7 +36,7 @@
 {
     this->geocentricTransformParams = (csGeocentricXformParams*) \
CS_malc(sizeof(csGeocentricXformParams));  if (NULL == \
                this->geocentricTransformParams)
-        throw new MgOutOfMemoryException(L"CCoordinateSystemGeodeticAnalyticalTransformDefParams.Ctor", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"CCoordinateSystemGeodeticAnalyticalTransformDefParams.Ctor", __LINE__, __WFILE__, \
NULL, L"", NULL);  
     *this->geocentricTransformParams = params;
 }
@@ -104,7 +104,7 @@
         break;
 
     default:
-        throw new MgInvalidArgumentException(L"CCoordinateSystemGeodeticAnalyticalTransformDefParams.SetTransformationMethod", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"CCoordinateSystemGeodeticAnalyticalTransformDefParams.SetTransformationMethod", \
__LINE__, __WFILE__, NULL, L"", NULL);  }
 
     this->transformationMethod = analyticalMethodCode;

Modified: trunk/MgDev/Common/CoordinateSystem/CoordSysGeodeticInterpolationTransformDefParams.cpp
 ===================================================================
--- trunk/MgDev/Common/CoordinateSystem/CoordSysGeodeticInterpolationTransformDefParams.cpp	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/CoordinateSystem/CoordSysGeodeticInterpolationTransformDefParams.cpp	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -57,7 +57,7 @@
 
     this->gridFileParams = (csGridFileXformParams*) \
CS_malc(sizeof(csGridFileXformParams));  if (NULL == this->gridFileParams)
-        throw new MgOutOfMemoryException(L"CCoordinateSystemGeodeticInterpolationTransformDefParams.Reset", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"CCoordinateSystemGeodeticInterpolationTransformDefParams.Reset", __LINE__, \
__WFILE__, NULL, L"", NULL);  
     memset(this->gridFileParams, 0, sizeof(csGridFileXformParams));
 }
@@ -80,7 +80,7 @@
     ENSURE_NOT_NULL(gridFiles, \
L"CCoordinateSystemGeodeticInterpolationTransformDefParams.SetGridFileNames");  const \
INT32 fileNamesCount = gridFiles->GetCount();  if (fileNamesCount > csGRIDI1_FILEMAX)
-        throw new MgInvalidArgumentException(L"CCoordinateSystemGeodeticInterpolationTransformDefParams.SetGridFiles", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"CCoordinateSystemGeodeticInterpolationTransformDefParams.SetGridFiles", __LINE__, \
__WFILE__, NULL, L"", NULL);  
     bool emptyFileCollection = (0 == fileNamesCount);
     csGeodeticXfromParmsFile_* allFiles = emptyFileCollection ? NULL : new \
csGeodeticXfromParmsFile_[fileNamesCount]; @@ -95,11 +95,11 @@
         Ptr<MgDisposable> gridFile = gridFiles->GetItem(i); //calls [AddRef] on the \
                item being returned
         CCoordinateSystemGeodeticTransformGridFile* gridFileSetting = \
dynamic_cast<CCoordinateSystemGeodeticTransformGridFile*>(gridFile.p);  if (NULL == \
                gridFileSetting)
-            throw new \
MgInvalidArgumentException(L"CCoordinateSystemGeodeticInterpolationTransformDefParams.SetGridFiles", \
__LINE__, __WFILE__, NULL, L"", NULL); +            throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"CCoordinateSystemGeodeticInterpolationTransformDefParams.SetGridFiles", __LINE__, \
__WFILE__, NULL, L"", NULL);  
         //we only allow for setting valid grid files
         if (!gridFileSetting->IsValid())
-            throw new \
MgInvalidArgumentException(L"CCoordinateSystemGeodeticInterpolationTransformDefParams.SetGridFiles", \
__LINE__, __WFILE__, NULL, L"", NULL); +            throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"CCoordinateSystemGeodeticInterpolationTransformDefParams.SetGridFiles", __LINE__, \
__WFILE__, NULL, L"", NULL);  
         //take the values from the settings we have been passed here and set our \
internal  //[csGridFileXFormat] instance at index [i] to those values

Modified: trunk/MgDev/Common/CoordinateSystem/CoordSysGeodeticMultipleRegressionTransformDefParams.cpp
 ===================================================================
--- trunk/MgDev/Common/CoordinateSystem/CoordSysGeodeticMultipleRegressionTransformDefParams.cpp	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/CoordinateSystem/CoordSysGeodeticMultipleRegressionTransformDefParams.cpp	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -58,7 +58,7 @@
 
     this->mulRegParams = (csMultipleRegressionXformParams*) \
CS_malc(sizeof(csMultipleRegressionXformParams));  if (NULL == this->mulRegParams)
-        throw new MgOutOfMemoryException(L"CCoordinateSystemGeodeticMultipleRegressionTransformDefParams.Reset", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"CCoordinateSystemGeodeticMultipleRegressionTransformDefParams.Reset", __LINE__, \
__WFILE__, NULL, L"", NULL);  
     memset(this->mulRegParams, 0, sizeof(csMultipleRegressionXformParams));
 }
@@ -108,7 +108,7 @@
         break;
 
     default:
-        throw new MgInvalidArgumentException(L"CCoordinateSystemGeodeticMultipleRegressionTransformDefParams.SetTransformationMethod", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"CCoordinateSystemGeodeticMultipleRegressionTransformDefParams.SetTransformationMethod", \
__LINE__, __WFILE__, NULL, L"", NULL);  }
 
     this->transformationMethod = mulRegTransformationMethod;

Modified: trunk/MgDev/Common/CoordinateSystem/CoordSysGeodeticPath.cpp
===================================================================
--- trunk/MgDev/Common/CoordinateSystem/CoordSysGeodeticPath.cpp	2022-09-15 10:14:11 \
                UTC (rev 9970)
+++ trunk/MgDev/Common/CoordinateSystem/CoordSysGeodeticPath.cpp	2022-10-10 09:40:18 \
UTC (rev 9971) @@ -63,7 +63,7 @@
     this->pathDefinition = (cs_GeodeticPath_*)CS_malc(sizeof(cs_GeodeticPath_));
 
     if (NULL == this->pathDefinition)
-        throw new MgOutOfMemoryException(L"CCoordinateSystemGeodeticPath.Initialize", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"CCoordinateSystemGeodeticPath.Initialize", __LINE__, __WFILE__, NULL, L"", NULL);  
     memset ((void*)this->pathDefinition, 0, sizeof(cs_GeodeticPath_));
 }
@@ -156,7 +156,7 @@
 
     const INT32 pathElementCount = pathElements->GetCount();
     if (0 == pathElementCount || pathElementCount > csPATH_MAXXFRM)
-        throw new MgInvalidArgumentException(L"CCoordinateSystemGeodeticPath.SetPathElements", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"CCoordinateSystemGeodeticPath.SetPathElements", __LINE__, __WFILE__, NULL, L"", \
NULL);  
     cs_GeodeticPathElement_* validElements = new \
cs_GeodeticPathElement_[pathElementCount];  
@@ -170,7 +170,7 @@
         Ptr<MgDisposable> collectionItem = pathElements->GetItem(i);
         MgCoordinateSystemGeodeticPathElement* pathElement = \
dynamic_cast<MgCoordinateSystemGeodeticPathElement*>(collectionItem.p);  if (NULL == \
                pathElement)
-            throw new \
MgInvalidArgumentException(L"CCoordinateSystemGeodeticPath.SetPathElements", \
__LINE__, __WFILE__, NULL, L"", NULL); +            throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"CCoordinateSystemGeodeticPath.SetPathElements", __LINE__, __WFILE__, NULL, L"", \
NULL);  
         cs_GeodeticPathElement_& pathElementDef = validElements[i];
 
@@ -216,7 +216,7 @@
     assert(NULL != pStream);
     if (!pStream)
     {
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemGeodeticPath.SerializeFrom", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemGeodeticPath.SerializeFrom", __LINE__, __WFILE__, NULL, L"", \
NULL);  }
 
     UINT8 nVersion=pStreamOut[0];
@@ -231,7 +231,7 @@
         if (pathDefinition == NULL)
         {
             this->pathDefinition = previousPathPtr;
-            throw new MgOutOfMemoryException \
(L"MgCoordinateSystemGeodeticPath.SerializeFrom", __LINE__, __WFILE__, NULL, L"", \
NULL); +            throw new MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemGeodeticPath.SerializeFrom", __LINE__, __WFILE__, NULL, L"", \
NULL);  }
         memcpy(pathDefinition, pStreamOut, sizeof(cs_GeodeticPath_));
         pStreamOut = pStreamOut + sizeof(cs_GeodeticPath_);
@@ -241,7 +241,7 @@
         {
             CS_free (this->pathDefinition);
             this->pathDefinition = previousPathPtr;
-            throw new \
MgInvalidArgumentException(L"MgCoordinateSystemGeodeticPath.SerializeFrom", __LINE__, \
__WFILE__, NULL, L"", NULL); +            throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemGeodeticPath.SerializeFrom", __LINE__, __WFILE__, NULL, L"", \
NULL);  }
         CS_free (previousPathPtr);
     }
@@ -259,7 +259,7 @@
     assert(NULL != pStream);
     if (!pStream)
     {
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemGeodeticPath.SerializeTo", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemGeodeticPath.SerializeTo", __LINE__, __WFILE__, NULL, L"", NULL); \
}  
     //save the version

Modified: trunk/MgDev/Common/CoordinateSystem/CoordSysGeodeticPathDictionary.cpp
===================================================================
--- trunk/MgDev/Common/CoordinateSystem/CoordSysGeodeticPathDictionary.cpp	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/CoordinateSystem/CoordSysGeodeticPathDictionary.cpp	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -180,11 +180,8 @@
     {
         return static_cast<MgCoordinateSystemGeodeticPath*>(this->m_pDictionary->Get(sName));
  }
-    catch(MgCoordinateSystemLoadFailedException* loadFailedException)
-    {
-        //catch only the [MgCoordinateSystemLoadFailedException] and release it \
                right away
-        loadFailedException->Release();
-    }
+    //catch only the [MgCoordinateSystemLoadFailedException] and release it right \
away +    MG_CATCH_AND_RELEASE_IF_TYPE(MgCoordinateSystemLoadFailedException)
 
     return NULL;
 }

Modified: trunk/MgDev/Common/CoordinateSystem/CoordSysGeodeticPathElement.cpp
===================================================================
--- trunk/MgDev/Common/CoordinateSystem/CoordSysGeodeticPathElement.cpp	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/CoordinateSystem/CoordSysGeodeticPathElement.cpp	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -61,7 +61,7 @@
 {
     cs_GeodeticPathElement_* tempPathElement = (cs_GeodeticPathElement_*) \
CS_malc(sizeof(cs_GeodeticPathElement_));  if (NULL == tempPathElement)
-        throw new MgOutOfMemoryException(L"CCoordinateSystemGeodeticPathElement.Reset", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"CCoordinateSystemGeodeticPathElement.Reset", __LINE__, __WFILE__, NULL, L"", NULL); \
  MG_TRY()
 

Modified: trunk/MgDev/Common/CoordinateSystem/CoordSysGeodeticStandaloneTransformDefParams.cpp
 ===================================================================
--- trunk/MgDev/Common/CoordinateSystem/CoordSysGeodeticStandaloneTransformDefParams.cpp	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/CoordinateSystem/CoordSysGeodeticStandaloneTransformDefParams.cpp	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -77,7 +77,7 @@
         break;
 
     default:
-        throw new MgInvalidArgumentException(L"CCoordinateSystemGeodeticStandaloneDefParams.SetTransformationMethod", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"CCoordinateSystemGeodeticStandaloneDefParams.SetTransformationMethod", __LINE__, \
__WFILE__, NULL, L"", NULL);  }
 
     this->m_nStandaloneMethodCode = standaloneMethodCode;

Modified: trunk/MgDev/Common/CoordinateSystem/CoordSysGeodeticTransformDef.cpp
===================================================================
--- trunk/MgDev/Common/CoordinateSystem/CoordSysGeodeticTransformDef.cpp	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/CoordinateSystem/CoordSysGeodeticTransformDef.cpp	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -78,13 +78,13 @@
         break;
 
     default:
-        throw new MgInvalidArgumentException(L"CCoordinateSystemGeodeticTransformDef.Reset", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"CCoordinateSystemGeodeticTransformDef.Reset", __LINE__, __WFILE__, NULL, L"", \
NULL);  }
 
     //try creating a new [cs_GeodeticTransform_] instance before we wipe out our own \
                stuff
     cs_GeodeticTransform_* newEmptyDef = \
                (cs_GeodeticTransform_*)CS_malc(sizeof(cs_GeodeticTransform_));
     if (NULL == newEmptyDef) //uses CS_malc which returns NULL in case allocation \
                fails
-        throw new MgOutOfMemoryException(L"CCoordinateSystemGeodeticTransformDef.Initialize", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"CCoordinateSystemGeodeticTransformDef.Initialize", __LINE__, __WFILE__, NULL, L"", \
NULL);  
     MG_TRY()
 
@@ -160,7 +160,7 @@
         break;
 
     default: //invalid / unknown [methodCode] given; don't know how to proceed here
-        throw new MgInvalidArgumentException(L"CCoordinateSystemGeodeticTransformDef.Initialize", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"CCoordinateSystemGeodeticTransformDef.Initialize", __LINE__, __WFILE__, NULL, L"", \
NULL);  }
 
     return transformationType;
@@ -181,7 +181,7 @@
     VERIFY_INITIALIZED(L"CCoordinateSystemGeodeticTransformDef.CreateTransformation");
  
     if (!this->IsValid())
-        throw new MgInvalidOperationException(L"CCoordinateSystemGeodeticTransformDef.CreateTransformation", \
__LINE__,__WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidOperationException, \
L"CCoordinateSystemGeodeticTransformDef.CreateTransformation", __LINE__,__WFILE__, \
NULL, L"", NULL);  
     //we don't take ownership of the transformation being returned but
     //will release [sourceDatum] and [targetDatum];
@@ -242,7 +242,7 @@
 
     default: //invalid state; why's that?
         _ASSERT(false);
-        throw new MgInvalidOperationException(L"CCoordinateSystemGeodeticTransformDef.GetParameters", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidOperationException, \
L"CCoordinateSystemGeodeticTransformDef.GetParameters", __LINE__, __WFILE__, NULL, \
L"", NULL);  }
 }
 
@@ -314,7 +314,7 @@
     }
 
     if (NULL == transformDefParams)
-        throw new MgInvalidOperationException(L"CCoordinateSystemGeodeticTransformDef.SetParameters", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidOperationException, \
L"CCoordinateSystemGeodeticTransformDef.SetParameters", __LINE__, __WFILE__, NULL, \
L"", NULL);  
     //copy the values from the parameter we've been passed into our own [parameters] \
section  transformDefParams->CopyTo(&this->transformDefinition->parameters);
@@ -380,7 +380,7 @@
     assert(NULL != pStream);
     if (!pStream)
     {
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemGeodeticTransformDef.SerializeFrom", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemGeodeticTransformDef.SerializeFrom", __LINE__, __WFILE__, NULL, \
L"", NULL);  }
 
     // In case an exception gets thrown.
@@ -400,7 +400,7 @@
         //Read the def from the stream
         allocatedBlock = \
(cs_GeodeticTransform_*)CS_malc(sizeof(cs_GeodeticTransform_));  if (NULL == \
                allocatedBlock)
-            throw new MgOutOfMemoryException \
(L"MgCoordinateSystemGeodeticTransformDef.SerializeFrom", __LINE__, __WFILE__, NULL, \
L"", NULL); +            throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemGeodeticTransformDef.SerializeFrom", __LINE__, __WFILE__, NULL, \
L"", NULL);  
         this->transformDefinition = allocatedBlock;
 
@@ -422,7 +422,7 @@
             // Nope!  It's not valid, but not valid in such a way that would cause
             // an exception to be thrown.  transformationDefinition cannot be
             // NULL at this point.
-            throw new \
MgInvalidArgumentException(L"MgCoordinateSystemGeodeticTransformDef.SerializeFrom", \
__LINE__, __WFILE__, NULL, L"", NULL); +            throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemGeodeticTransformDef.SerializeFrom", __LINE__, __WFILE__, NULL, \
L"", NULL);  }
     }
 
@@ -452,7 +452,7 @@
     assert(NULL != pStream);
     if (!pStream)
     {
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemGeodeticTransformDef.SerializeTo", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemGeodeticTransformDef.SerializeTo", __LINE__, __WFILE__, NULL, \
L"", NULL);  }
 
     //save the version

Modified: trunk/MgDev/Common/CoordinateSystem/CoordSysGeodeticTransformDefDictionary.cpp
 ===================================================================
--- trunk/MgDev/Common/CoordinateSystem/CoordSysGeodeticTransformDefDictionary.cpp	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/CoordinateSystem/CoordSysGeodeticTransformDefDictionary.cpp	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -86,11 +86,8 @@
     {
         return static_cast<MgCoordinateSystemGeodeticTransformDef*>(this->m_pDictionary->Get(transformationName));
  }
-    catch(MgCoordinateSystemLoadFailedException* loadFailedException)
-    {
-        //catch only the [MgCoordinateSystemLoadFailedException] and release it \
                right away
-        loadFailedException->Release();
-    }
+    //catch only the [MgCoordinateSystemLoadFailedException] and release it right \
away +    MG_CATCH_AND_RELEASE_IF_TYPE(MgCoordinateSystemLoadFailedException)
 
     return NULL;
 }

Modified: trunk/MgDev/Common/CoordinateSystem/CoordSysGeodeticTransformGridFile.cpp
===================================================================
--- trunk/MgDev/Common/CoordinateSystem/CoordSysGeodeticTransformGridFile.cpp	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/CoordinateSystem/CoordSysGeodeticTransformGridFile.cpp	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -38,7 +38,7 @@
 {
     this->gridFileDesc = \
(csGeodeticXfromParmsFile_*)CS_malc(sizeof(csGeodeticXfromParmsFile_));  if (NULL == \
                this->gridFileDesc)
-        throw new MgOutOfMemoryException(L"CCoordinateSystemGeodeticAnalyticalTransformDefParams.ctor", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"CCoordinateSystemGeodeticAnalyticalTransformDefParams.ctor", __LINE__, __WFILE__, \
NULL, L"", NULL);  
     ::memset(this->gridFileDesc, 0, sizeof(csGeodeticXfromParmsFile_));
     if (NULL != fileFormatParam)

Modified: trunk/MgDev/Common/CoordinateSystem/CoordSysGeodeticTransformation.cpp
===================================================================
--- trunk/MgDev/Common/CoordinateSystem/CoordSysGeodeticTransformation.cpp	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/CoordinateSystem/CoordSysGeodeticTransformation.cpp	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -93,7 +93,7 @@
     MgCoordinateSystemDatum *pSourceTmp=GetWGS84IfNull(pSource);
     if (!pSourceTmp)
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemGeodeticTransformation.SetSourceAndTarget", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemNotFoundException", NULL); +        \
throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystemGeodeticTransformation.SetSourceAndTarget", __LINE__, __WFILE__, \
NULL, L"MgCoordinateSystemNotFoundException", NULL);  }
     CCoordinateSystemDatum* \
pDtSourceImp=dynamic_cast<CCoordinateSystemDatum*>(pSourceTmp);  \
assert(pDtSourceImp); @@ -104,7 +104,7 @@
         {
             SAFE_RELEASE(pSourceTmp);
         }
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemGeodeticTransformation.SetSourceAndTarget", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemNotFoundException", NULL); +        \
throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystemGeodeticTransformation.SetSourceAndTarget", __LINE__, __WFILE__, \
NULL, L"MgCoordinateSystemNotFoundException", NULL);  }
 
     //Set up our target datum
@@ -116,7 +116,7 @@
         {
             SAFE_RELEASE(pSourceTmp);
         }
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemGeodeticTransformation.SetSourceAndTarget", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemNotFoundException", NULL); +        \
throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystemGeodeticTransformation.SetSourceAndTarget", __LINE__, __WFILE__, \
NULL, L"MgCoordinateSystemNotFoundException", NULL);  }
     CCoordinateSystemDatum* \
pDtTargetImp=dynamic_cast<CCoordinateSystemDatum*>(pTargetTmp);  \
assert(pDtTargetImp); @@ -132,7 +132,7 @@
         {
             SAFE_RELEASE(pTargetTmp);
         }
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemGeodeticTransformation.SetSourceAndTarget", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemNotFoundException", NULL); +        \
throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystemGeodeticTransformation.SetSourceAndTarget", __LINE__, __WFILE__, \
NULL, L"MgCoordinateSystemNotFoundException", NULL);  }
 
     //Set up our datum conversion struct
@@ -142,7 +142,7 @@
     assert(pDtcprm);
     if (!pDtcprm)
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemGeodeticTransformation.SetSourceAndTarget", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemGeodeticTransformationSetupException", \
NULL); +        throw new \
MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystemGeodeticTransformation.SetSourceAndTarget", __LINE__, __WFILE__, \
NULL, L"MgCoordinateSystemGeodeticTransformationSetupException", NULL);  }
 
     Uninitialize();
@@ -176,7 +176,7 @@
     //Make sure we're initialized
     if (!IsInitialized())
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemGeodeticTransformation.GetSource", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystemGeodeticTransformation.GetSource", __LINE__, __WFILE__, NULL, \
L"", NULL);  }
 
     return SAFE_ADDREF(m_pDtSource);
@@ -191,7 +191,7 @@
     //Make sure we're initialized
     if (!IsInitialized())
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemGeodeticTransformation.GetTarget", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystemGeodeticTransformation.GetTarget", __LINE__, __WFILE__, NULL, \
L"", NULL);  }
 
     return SAFE_ADDREF(m_pDtTarget);
@@ -227,12 +227,12 @@
     if (1==nResult)
     {
         // Partial failure - Outside the useful range.
-        throw new MgCoordinateSystemConversionFailedException(L"MgCoordinateSystemGeodeticTransformation.Shift", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemConversionWarningException", NULL); +  \
throw new MgException(MgExceptionCodes::MgCoordinateSystemConversionFailedException, \
L"MgCoordinateSystemGeodeticTransformation.Shift", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemConversionWarningException", NULL);  }
     else if (-1==nResult)
     {
         // Total failure - Outside the mathematical domain.
-        throw new MgCoordinateSystemConversionFailedException(L"MgCoordinateSystemGeodeticTransformation.Shift", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemConversionExtentException", NULL); +   \
throw new MgException(MgExceptionCodes::MgCoordinateSystemConversionFailedException, \
L"MgCoordinateSystemGeodeticTransformation.Shift", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemConversionExtentException", NULL);  }
     pLonLat->SetX(dLongitude);
     pLonLat->SetY(dLatitude);
@@ -270,18 +270,18 @@
     if (1==nResult)
     {
         // Partial failure - Outside the useful range.
-        throw new MgCoordinateSystemConversionFailedException(L"MgCoordinateSystemGeodeticTransformation.Shift", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemConversionWarningException", NULL); +  \
throw new MgException(MgExceptionCodes::MgCoordinateSystemConversionFailedException, \
L"MgCoordinateSystemGeodeticTransformation.Shift", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemConversionWarningException", NULL);  }
     else if (-1==nResult)
     {
         // Total failure - Outside the mathematical domain.
-        throw new MgCoordinateSystemConversionFailedException(L"MgCoordinateSystemGeodeticTransformation.Shift", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemConversionExtentException", NULL); +   \
throw new MgException(MgExceptionCodes::MgCoordinateSystemConversionFailedException, \
L"MgCoordinateSystemGeodeticTransformation.Shift", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemConversionExtentException", NULL);  }
 
     pCoord=new MgCoordinateXY(dLongitude, dLatitude);
     if (!pCoord)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemGeodeticTransformation.Shift", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemGeodeticTransformation.Shift", __LINE__, __WFILE__, NULL, L"", \
NULL);  }
     MG_CATCH_AND_THROW(L"MgCoordinateSystemGeodeticTransformation.Shift")
     return pCoord.Detach();
@@ -316,18 +316,18 @@
     if (1==nResult)
     {
         // Partial failure - Outside the useful range.
-        throw new MgCoordinateSystemConversionFailedException(L"MgCoordinateSystemGeodeticTransformation.Shift", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemConversionWarningException", NULL); +  \
throw new MgException(MgExceptionCodes::MgCoordinateSystemConversionFailedException, \
L"MgCoordinateSystemGeodeticTransformation.Shift", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemConversionWarningException", NULL);  }
     else if (-1==nResult)
     {
         // Total failure - Outside the mathematical domain.
-        throw new MgCoordinateSystemConversionFailedException(L"MgCoordinateSystemGeodeticTransformation.Shift", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemConversionExtentException", NULL); +   \
throw new MgException(MgExceptionCodes::MgCoordinateSystemConversionFailedException, \
L"MgCoordinateSystemGeodeticTransformation.Shift", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemConversionExtentException", NULL);  }
 
     pCoord=new MgCoordinateXYZ(dLongitude, dLatitude, dZ);
     if (!pCoord)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemGeodeticTransformation.Shift", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemGeodeticTransformation.Shift", __LINE__, __WFILE__, NULL, L"", \
NULL);  }
 
     MG_CATCH_AND_THROW(L"MgCoordinateSystemGeodeticTransformation.Shift")
@@ -374,7 +374,7 @@
 
     CCoordinateSystemGeodeticTransformDef* transformDefImpl = \
dynamic_cast<CCoordinateSystemGeodeticTransformDef*>(transformationDef);  if (NULL == \
                transformDefImpl)
-        throw new MgInvalidArgumentException(L"CCoordinateSystemGeodeticTransformation.SetupFromTransformationDef", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"CCoordinateSystemGeodeticTransformation.SetupFromTransformationDef", __LINE__, \
__WFILE__, NULL, L"", NULL);  
     cs_GeodeticTransform_ csMapTransformDef;
     transformDefImpl->CopyTo(csMapTransformDef);
@@ -383,7 +383,7 @@
     datumTransform = CSdtcsu2(&csMapTransformDef, createInversed ? cs_DTCDIR_INV : \
cs_DTCDIR_FWD, cs_DTCFLG_BLK_W);  
     if (NULL == datumTransform)
-        throw new MgInvalidArgumentException(L"CCoordinateSystemGeodeticTransformation.SetupFromTransformationDef", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"CCoordinateSystemGeodeticTransformation.SetupFromTransformationDef", __LINE__, \
__WFILE__, NULL, L"", NULL);  
     Ptr<MgCoordinateSystemDatumDictionary> datumDictionary = \
                this->m_pCatalog->GetDatumDictionary();
     Ptr<MgCoordinateSystemDatum> srcDatum = \
datumDictionary->GetDatum(transformationDef->GetSourceDatum()); @@ -491,7 +491,7 @@
     cs_Dtdef_ def;
     if (!GetDefinitionForGeodeticTransformationParameter(def))
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemGeodeticTransformation.GetOffsetX", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemMismatchException", NULL); +        \
throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystemGeodeticTransformation.GetOffsetX", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemMismatchException", NULL);  }
     dResult=def.delta_X;
 
@@ -508,7 +508,7 @@
     cs_Dtdef_ def;
     if (!GetDefinitionForGeodeticTransformationParameter(def))
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemGeodeticTransformation.GetOffsetY", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemMismatchException", NULL); +        \
throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystemGeodeticTransformation.GetOffsetY", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemMismatchException", NULL);  }
     dResult=def.delta_Y;
     MG_CATCH_AND_THROW(L"MgCoordinateSystemGeodeticTransformation.GetOffsetY")
@@ -524,7 +524,7 @@
     cs_Dtdef_ def;
     if (!GetDefinitionForGeodeticTransformationParameter(def))
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemGeodeticTransformation.GetOffsetZ", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemMismatchException", NULL); +        \
throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystemGeodeticTransformation.GetOffsetZ", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemMismatchException", NULL);  }
     dResult=def.delta_Z;
     MG_CATCH_AND_THROW(L"MgCoordinateSystemGeodeticTransformation.GetOffsetZ")
@@ -546,12 +546,12 @@
     MG_TRY()
     if (!m_pDtSource || !m_pDtTarget)
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemGeodeticTransformation.SetOffset", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystemGeodeticTransformation.SetOffset", __LINE__, __WFILE__, NULL, \
L"", NULL);  }
     //if not WGS84 for the target system, bye bye!
     if (m_pDtTarget->GetDtCode()!=kpWGS84Datum)
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemGeodeticTransformation.SetOffset", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemMismatchException", NULL); +        \
throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystemGeodeticTransformation.SetOffset", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemMismatchException", NULL);  }
 
     CCoordinateSystemDatum* \
pDatumImp=dynamic_cast<CCoordinateSystemDatum*>(m_pDtSource); @@ -558,7 +558,7 @@
     assert(pDatumImp);
     if (!pDatumImp)
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemGeodeticTransformation.SetOffset", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystemGeodeticTransformation.SetOffset", __LINE__, __WFILE__, NULL, \
L"", NULL);  }
 
     //Make sure this object isn't read-only
@@ -565,7 +565,7 @@
     if (m_pDtSource->IsProtected())
     {
         //can't change a read-only object
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemGeodeticTransformation.SetOffset", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemDatumProtectedException", NULL); +     \
throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystemGeodeticTransformation.SetOffset", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemDatumProtectedException", NULL);  }
 
     if (!IsLegalDatumOffset(x) ||
@@ -573,7 +573,7 @@
         !IsLegalDatumOffset(z))
     {
         //Caller gave us an illegal value.
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemGeodeticTransformation.SetOffset", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemGeodeticTransformation.SetOffset", __LINE__, __WFILE__, NULL, \
L"", NULL);  }
 
     pDatumImp->m_DtDef.delta_X = pDatumImp->m_datum.delta_X = x;
@@ -605,7 +605,7 @@
     cs_Dtdef_ def;
     if (!GetDefinitionForGeodeticTransformationParameter(def))
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemGeodeticTransformation.GetBursaWolfeTransformRotationX", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemMismatchException", NULL); +        \
throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystemGeodeticTransformation.GetBursaWolfeTransformRotationX", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemMismatchException", NULL);  }
 
     dResult = def.rot_X;
@@ -623,7 +623,7 @@
     cs_Dtdef_ def;
     if (!GetDefinitionForGeodeticTransformationParameter(def))
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemGeodeticTransformation.GetBursaWolfeTransformRotationY", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemMismatchException", NULL); +        \
throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystemGeodeticTransformation.GetBursaWolfeTransformRotationY", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemMismatchException", NULL);  }
 
     dResult = def.rot_Y;
@@ -641,7 +641,7 @@
     cs_Dtdef_ def;
     if (!GetDefinitionForGeodeticTransformationParameter(def))
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemGeodeticTransformation.GetBursaWolfeTransformRotationZ", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemMismatchException", NULL); +        \
throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystemGeodeticTransformation.GetBursaWolfeTransformRotationZ", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemMismatchException", NULL);  }
 
     dResult = def.rot_Z;
@@ -659,7 +659,7 @@
     cs_Dtdef_ def;
     if (!GetDefinitionForGeodeticTransformationParameter(def))
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemGeodeticTransformation.GetBursaWolfeTransformBwScale", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemMismatchException", NULL); +        \
throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystemGeodeticTransformation.GetBursaWolfeTransformBwScale", __LINE__, \
__WFILE__, NULL, L"MgCoordinateSystemMismatchException", NULL);  }
 
     dResult = def.bwscale;
@@ -685,12 +685,12 @@
 
     if (!m_pDtSource || !m_pDtTarget)
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemGeodeticTransformation.SetBursaWolfeTransform", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystemGeodeticTransformation.SetBursaWolfeTransform", __LINE__, \
__WFILE__, NULL, L"", NULL);  }
     //if not WGS84 for the target system, bye bye!
     if (m_pDtTarget->GetDtCode()!=kpWGS84Datum)
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemGeodeticTransformation.SetBursaWolfeTransform", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemMismatchException", NULL); +        \
throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystemGeodeticTransformation.SetBursaWolfeTransform", __LINE__, \
__WFILE__, NULL, L"MgCoordinateSystemMismatchException", NULL);  }
 
     CCoordinateSystemDatum* \
pDatumImp=dynamic_cast<CCoordinateSystemDatum*>(m_pDtSource); @@ -697,7 +697,7 @@
     assert(pDatumImp);
     if (!pDatumImp)
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemGeodeticTransformation.SetBursaWolfeTransform", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystemGeodeticTransformation.SetBursaWolfeTransform", __LINE__, \
__WFILE__, NULL, L"", NULL);  }
 
     //Make sure this object isn't read-only
@@ -704,7 +704,7 @@
     if (m_pDtSource->IsProtected())
     {
         //can't change a read-only object
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemGeodeticTransformation.SetBursaWolfeTransform", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemDatumProtectedException", NULL); +     \
throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystemGeodeticTransformation.SetBursaWolfeTransform", __LINE__, \
__WFILE__, NULL, L"MgCoordinateSystemDatumProtectedException", NULL);  }
 
     if (!IsLegalDatumRotation(dRotationX) ||
@@ -713,7 +713,7 @@
         !::IsLegalBwScale(dBwScale))
     {
         //Caller gave us an illegal value.
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemGeodeticTransformation.SetBursaWolfeTransform", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemGeodeticTransformation.SetBursaWolfeTransform", __LINE__, \
__WFILE__, NULL, L"", NULL);  }
 
     pDatumImp->m_DtDef.rot_X = pDatumImp->m_datum.rot_X = dRotationX;
@@ -767,12 +767,12 @@
 
     if (!m_pDtSource || !m_pDtTarget)
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemGeodeticTransformation.SetGeodeticTransformationMethod", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystemGeodeticTransformation.SetGeodeticTransformationMethod", \
__LINE__, __WFILE__, NULL, L"", NULL);  }
     //if not WGS84 for the target system, bye bye!
     if (m_pDtTarget->GetDtCode()!=kpWGS84Datum)
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemGeodeticTransformation.SetGeodeticTransformationMethod", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemMismatchException", NULL); +        \
throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystemGeodeticTransformation.SetGeodeticTransformationMethod", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemMismatchException", NULL);  }
 
     CCoordinateSystemDatum* \
pDatumImp=dynamic_cast<CCoordinateSystemDatum*>(m_pDtSource); @@ -779,7 +779,7 @@
     assert(pDatumImp);
     if (!pDatumImp)
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemGeodeticTransformation.SetGeodeticTransformationMethod", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystemGeodeticTransformation.SetGeodeticTransformationMethod", \
__LINE__, __WFILE__, NULL, L"", NULL);  }
 
     //Make sure this object isn't read-only
@@ -786,13 +786,13 @@
     if (m_pDtSource->IsProtected())
     {
         //can't change a read-only object
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemGeodeticTransformation.SetGeodeticTransformationMethod", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemDatumProtectedException", NULL); +     \
throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystemGeodeticTransformation.SetGeodeticTransformationMethod", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemDatumProtectedException", NULL);  }
 
     if (!IsLegalGeodeticTransformationMethod(nGeodeticTransformationMethod))
     {
         //Not one of the known datum conversion techniques.
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemGeodeticTransformation.SetGeodeticTransformationMethod", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemGeodeticTransformation.SetGeodeticTransformationMethod", \
__LINE__, __WFILE__, NULL, L"", NULL);  }
 
     pDatumImp->m_DtDef.to84_via = pDatumImp->m_datum.to84_via = \
nGeodeticTransformationMethod;

Modified: trunk/MgDev/Common/CoordinateSystem/CoordSysGrids.cpp
===================================================================
--- trunk/MgDev/Common/CoordinateSystem/CoordSysGrids.cpp	2022-09-15 10:14:11 UTC \
                (rev 9970)
+++ trunk/MgDev/Common/CoordinateSystem/CoordSysGrids.cpp	2022-10-10 09:40:18 UTC \
(rev 9971) @@ -183,7 +183,7 @@
     codeOk = GetUnitInfo(unitCode,&lclUnitType,NULL);
     if (!codeOk || unitType != lclUnitType)
     {
-        throw new MgInvalidCoordinateSystemUnitsException(L"MgCoordinateSystemGridSpecification.SetUnits",
 +        throw new MgException(MgExceptionCodes::MgInvalidCoordinateSystemUnitsException, \
                L"MgCoordinateSystemGridSpecification.SetUnits",
                                                           __LINE__, __WFILE__, NULL, \
L"", NULL);  }
 
@@ -353,7 +353,7 @@
     GetUnitInfo(trgUnitCode,&trgUnitType,NULL);
     if (trgUnitType != m_UnitType)
     {
-        throw new MgInvalidCoordinateSystemUnitsException(L"MgCoordinateSystemGridSpecification.ConvertUnitsOfValue", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidCoordinateSystemUnitsException, \
L"MgCoordinateSystemGridSpecification.ConvertUnitsOfValue", __LINE__, __WFILE__, \
NULL, L"", NULL);  }
 
     // Calculate the appropriate units conversion factor.  Since the unit types
@@ -428,7 +428,7 @@
 
         if (!swPnt|| !swPnt || !nePnt || !nwPnt ||!clPnt)
         {
-            throw new \
MgOutOfMemoryException(L"MgCoordinateSystemGridBoundary.SetBoundaryExtents", +        \
throw new MgException(MgExceptionCodes::MgOutOfMemoryException, \
                L"MgCoordinateSystemGridBoundary.SetBoundaryExtents",
                                              __LINE__, __WFILE__, NULL, L"", NULL);
         }
 
@@ -435,7 +435,7 @@
         collection = new MgCoordinateCollection();
         if (collection == NULL)
         {
-            throw new \
MgOutOfMemoryException(L"MgCoordinateSystemGridBoundary.SetBoundaryExtents", +        \
throw new MgException(MgExceptionCodes::MgOutOfMemoryException, \
                L"MgCoordinateSystemGridBoundary.SetBoundaryExtents",
                                              __LINE__, __WFILE__, NULL, L"", NULL);
         }
         collection->Add (swPnt);
@@ -447,7 +447,7 @@
         Ptr<MgLinearRing> ring = factory.CreateLinearRing (collection);
         if (ring == 0)
         {
-            throw new \
MgOutOfMemoryException(L"MgCoordinateSystemGridBoundary.SetBoundaryExtents", +        \
throw new MgException(MgExceptionCodes::MgOutOfMemoryException, \
                L"MgCoordinateSystemGridBoundary.SetBoundaryExtents",
                                              __LINE__, __WFILE__, NULL, L"", NULL);
         }
         m_GridBoundary = factory.CreatePolygon (ring,NULL);
@@ -983,7 +983,7 @@
 void CCoordinateSystemGridLineCollection::SetItem (INT32 \
index,MgCoordinateSystemGridLine* value)  {
     if (GetAvailableMemory() < m_MemoryThreshold)
-        throw new MgGridDensityException(L"CCoordinateSystemGridLineCollection.SetItem", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgGridDensityException, \
L"CCoordinateSystemGridLineCollection.SetItem", __LINE__, __WFILE__, NULL, L"", \
NULL);  
     m_GridLineCollection->SetItem (index,value);
 }
@@ -990,7 +990,7 @@
 void CCoordinateSystemGridLineCollection::Add (MgCoordinateSystemGridLine* value)
 {
     if (GetAvailableMemory() < m_MemoryThreshold)
-        throw new MgGridDensityException(L"CCoordinateSystemGridLineCollection.Add", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgGridDensityException, \
L"CCoordinateSystemGridLineCollection.Add", __LINE__, __WFILE__, NULL, L"", NULL);  
     // The MgDIsposableCollection object does the "SAFE_ADDREF" operation.
     m_GridLineCollection->Add (value);
@@ -1057,7 +1057,7 @@
 void CCoordinateSystemGridRegionCollection::SetItem (INT32 index, \
MgCoordinateSystemGridRegion* value)  {
     if (GetAvailableMemory() < m_MemoryThreshold)
-        throw new MgGridDensityException(L"CCoordinateSystemGridRegionCollection.SetItem", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgGridDensityException, \
L"CCoordinateSystemGridRegionCollection.SetItem", __LINE__, __WFILE__, NULL, L"", \
NULL);  
     m_GridRegionCollection->SetItem (index,value);
 }
@@ -1064,7 +1064,7 @@
 void CCoordinateSystemGridRegionCollection::Add (MgCoordinateSystemGridRegion* \
value)  {
     if (GetAvailableMemory() < m_MemoryThreshold)
-        throw new MgGridDensityException(L"CCoordinateSystemGridRegionCollection.Add", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgGridDensityException, \
L"CCoordinateSystemGridRegionCollection.Add", __LINE__, __WFILE__, NULL, L"", NULL);  \
  m_GridRegionCollection->Add (value);
 }
@@ -1133,7 +1133,7 @@
 void CCoordinateSystemGridTickCollection::SetItem (INT32 index, \
MgCoordinateSystemGridTick* value)  {
     if (GetAvailableMemory() < m_MemoryThreshold)
-        throw new MgGridDensityException(L"CCoordinateSystemGridTickCollection.SetItem", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgGridDensityException, \
L"CCoordinateSystemGridTickCollection.SetItem", __LINE__, __WFILE__, NULL, L"", \
NULL);  
     m_GridTickCollection->SetItem (index,value);
 }
@@ -1140,7 +1140,7 @@
 void CCoordinateSystemGridTickCollection::Add (MgCoordinateSystemGridTick* value)
 {
     if (GetAvailableMemory() < m_MemoryThreshold)
-        throw new MgGridDensityException(L"CCoordinateSystemGridTickCollection.Add", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgGridDensityException, \
L"CCoordinateSystemGridTickCollection.Add", __LINE__, __WFILE__, NULL, L"", NULL);  
     m_GridTickCollection->Add (value);
 }

Modified: trunk/MgDev/Common/CoordinateSystem/CoordSysMacro.h
===================================================================
--- trunk/MgDev/Common/CoordinateSystem/CoordSysMacro.h	2022-09-15 10:14:11 UTC (rev \
                9970)
+++ trunk/MgDev/Common/CoordinateSystem/CoordSysMacro.h	2022-10-10 09:40:18 UTC (rev \
9971) @@ -26,17 +26,17 @@
 
 #ifdef CS_MAP_DEF_VARIABLE
     #define VERIFY_INITIALIZED(x)   if (NULL == CS_MAP_DEF_VARIABLE) \
-        throw new MgInvalidOperationException(x, __LINE__, __WFILE__, NULL, L"", \
NULL) +        throw new MgException(MgExceptionCodes::MgInvalidOperationException, \
x, __LINE__, __WFILE__, NULL, L"", NULL)  #else
     #define VERIFY_INITIALIZED(x)
 #endif
 
 #define VERIFY_NOT_PROTECTED(x) if (this->IsProtected()) \
-    throw new MgCoordinateSystemInitializationFailedException(x, __LINE__, \
__WFILE__, NULL, L"MgCoordinateSystemProtectedException", NULL); +    throw new \
MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, x, \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemProtectedException", NULL);  
 #define ENSURE_NOT_NULL(param,method) \
     if (NULL == param) \
-        throw new MgNullArgumentException(method, __LINE__, __WFILE__, NULL, L"", \
NULL) +        throw new MgException(MgExceptionCodes::MgNullArgumentException, \
method, __LINE__, __WFILE__, NULL, L"", NULL)  
 #define DEFINE_GET_STRING(x,y) STRING x::Get##y()
 #define DEFINE_SET_STRING(x,y) void x::Set##y(CREFSTRING propertyValue)
@@ -51,7 +51,7 @@
     { \
         VERIFY_INITIALIZED(MAKE_QUALIFIED_MEMBER_STRING(className,Set##propertyName)); \
\  if (this->IsProtected()) \
-            throw new \
MgCoordinateSystemInitializationFailedException(MAKE_QUALIFIED_MEMBER_STRING(className,Set##propertyName), \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemProtectedException", NULL); \ +        \
throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
MAKE_QUALIFIED_MEMBER_STRING(className,Set##propertyName), __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemProtectedException", NULL); \  \
         MentorSetString(propertyValue, charBuffer /* target buffer */, \
sizeof(charBuffer)); \  }
@@ -72,7 +72,7 @@
     { \
         VERIFY_INITIALIZED(MAKE_QUALIFIED_MEMBER_STRING(className,Set##propertyName)); \
\  if (this->IsProtected()) \
-            throw new \
MgCoordinateSystemInitializationFailedException(MAKE_QUALIFIED_MEMBER_STRING(className,Set##propertyName), \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemProtectedException", NULL); \ +        \
throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
MAKE_QUALIFIED_MEMBER_STRING(className,Set##propertyName), __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemProtectedException", NULL); \  \
         target = propertyValue;\
     }
@@ -82,7 +82,7 @@
     { \
         VERIFY_INITIALIZED(MAKE_QUALIFIED_MEMBER_STRING(className,Get##propertyName)); \
\  if (index < 0 || index > maxIdx) \
-            throw new \
MgArgumentOutOfRangeException(MAKE_QUALIFIED_MEMBER_STRING(className,Get##propertyName), \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemProtectedException", NULL); \ +        \
throw new MgException(MgExceptionCodes::MgArgumentOutOfRangeException, \
MAKE_QUALIFIED_MEMBER_STRING(className,Get##propertyName), __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemProtectedException", NULL); \  \
         return target[index]; \
     } \
@@ -90,10 +90,10 @@
     { \
         VERIFY_INITIALIZED(MAKE_QUALIFIED_MEMBER_STRING(className,Set##propertyName)); \
\  if (this->IsProtected()) \
-            throw new \
MgCoordinateSystemInitializationFailedException(MAKE_QUALIFIED_MEMBER_STRING(className,Set##propertyName), \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemProtectedException", NULL); \ +        \
throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
MAKE_QUALIFIED_MEMBER_STRING(className,Set##propertyName), __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemProtectedException", NULL); \  \
         if (index < 0 || index > maxIdx) \
-            throw new \
MgArgumentOutOfRangeException(MAKE_QUALIFIED_MEMBER_STRING(className,Get##propertyName), \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemProtectedException", NULL); \ +        \
throw new MgException(MgExceptionCodes::MgArgumentOutOfRangeException, \
MAKE_QUALIFIED_MEMBER_STRING(className,Get##propertyName), __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemProtectedException", NULL); \  \
         target[index] = propertyValue;\
     }

Modified: trunk/MgDev/Common/CoordinateSystem/CoordSysMeasure.cpp
===================================================================
--- trunk/MgDev/Common/CoordinateSystem/CoordSysMeasure.cpp	2022-09-15 10:14:11 UTC \
                (rev 9970)
+++ trunk/MgDev/Common/CoordinateSystem/CoordSysMeasure.cpp	2022-10-10 09:40:18 UTC \
(rev 9971) @@ -200,7 +200,7 @@
     pNew=new MgEnvelope(m_pCoordSys->GetMinX(), m_pCoordSys->GetMinY(), \
m_pCoordSys->GetMaxX(), m_pCoordSys->GetMaxY());  if (NULL == pNew)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemMeasure.GetEnvelope", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemMeasure.GetEnvelope", __LINE__, __WFILE__, NULL, L"", NULL);  }
     return pNew;
 }

Modified: trunk/MgDev/Common/CoordinateSystem/CoordSysMgrs.cpp
===================================================================
--- trunk/MgDev/Common/CoordinateSystem/CoordSysMgrs.cpp	2022-09-15 10:14:11 UTC (rev \
                9970)
+++ trunk/MgDev/Common/CoordinateSystem/CoordSysMgrs.cpp	2022-10-10 09:40:18 UTC (rev \
9971) @@ -131,7 +131,7 @@
     {
         if (m_bExceptionsOn)
         {
-            throw new \
MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemMgrs.Init", \
__LINE__, __WFILE__, NULL, L"", NULL); +            throw new \
MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystemMgrs.Init", __LINE__, __WFILE__, NULL, L"", NULL);  }
         else
         {
@@ -151,7 +151,7 @@
     {
         if (m_bExceptionsOn)
         {
-            throw new \
MgOutOfMemoryException(L"MgCoordinateSystemMgrs.InitFromEllipsoid", __LINE__, \
__WFILE__, NULL, L"", NULL); +            throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemMgrs.InitFromEllipsoid", __LINE__, __WFILE__, NULL, L"", NULL);  \
}  else
         {
@@ -172,7 +172,7 @@
     {
         if (m_bExceptionsOn)
         {
-            throw new \
MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemMgrs.InitFromEllipsoid", \
__LINE__, __WFILE__, NULL, L"", NULL); +            throw new \
MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystemMgrs.InitFromEllipsoid", __LINE__, __WFILE__, NULL, L"", NULL);  \
}  else
         {
@@ -192,7 +192,7 @@
     {
         if (m_bExceptionsOn)
         {
-            throw new \
MgOutOfMemoryException(L"MgCoordinateSystemMgrs.InitFromDatum", __LINE__, __WFILE__, \
NULL, L"", NULL); +            throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemMgrs.InitFromDatum", __LINE__, __WFILE__, NULL, L"", NULL);  }
         else
         {
@@ -213,7 +213,7 @@
     {
         if (m_bExceptionsOn)
         {
-            throw new \
MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemMgrs.InitFromDatum", \
__LINE__, __WFILE__, NULL, L"", NULL); +            throw new \
MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystemMgrs.InitFromDatum", __LINE__, __WFILE__, NULL, L"", NULL);  }
         else
         {
@@ -279,7 +279,7 @@
         {
             if (m_bExceptionsOn)
             {
-                throw new \
MgOutOfMemoryException(L"MgCoordinateSystemMgrs.ConvertToLonLat", __LINE__, \
__WFILE__, NULL, L"", NULL); +                throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemMgrs.ConvertToLonLat", __LINE__, __WFILE__, NULL, L"", NULL);  }
             else
             {
@@ -405,7 +405,7 @@
     if (m_GridBoundary == 0)
     {
         // Proceeding without a grid boundary will cause a crash.
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemMgrs.GetGridLines",
 +        throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
                L"MgCoordinateSystemMgrs.GetGridLines",
                                                                    __LINE__, \
__WFILE__, NULL, L"", NULL);  }
 
@@ -463,7 +463,7 @@
     if (m_GridBoundary == 0)
     {
         // Proceeding without a grid boundary will cause a crash.
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemMgrs.GetGridRegions",
 +        throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
                L"MgCoordinateSystemMgrs.GetGridRegions",
                                                                    __LINE__, \
__WFILE__, NULL, L"", NULL);  }
 
@@ -495,7 +495,7 @@
     if (m_GridBoundary == 0)
     {
         // Proceeding without a grid boundary will cause a crash.
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemMgrs.GetGridRegions",
 +        throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
                L"MgCoordinateSystemMgrs.GetGridRegions",
                                                                    __LINE__, \
__WFILE__, NULL, L"", NULL);  }
 
@@ -717,7 +717,7 @@
     {
         if (m_bExceptionsOn)
         {
-            throw new \
MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemMgrs.ConvertFromLonLat", \
__LINE__, __WFILE__, NULL, L"", NULL); +            throw new \
MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystemMgrs.ConvertFromLonLat", __LINE__, __WFILE__, NULL, L"", NULL);  \
}  else
         {
@@ -743,7 +743,7 @@
         {
             if (m_bExceptionsOn)
             {
-                throw new \
MgOutOfMemoryException(L"MgCoordinateSystemMgrs.ConvertFromLonLat", __LINE__, \
__WFILE__, NULL, L"", NULL); +                throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemMgrs.ConvertFromLonLat", __LINE__, __WFILE__, NULL, L"", NULL);  \
}  else
             {
@@ -758,7 +758,7 @@
     {
         if (m_bExceptionsOn)
         {
-            throw new \
MgCoordinateSystemConversionFailedException(L"MgCoordinateSystemMgrs.ConvertFromLonLat", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemNoConversionDone", NULL); +            \
throw new MgException(MgExceptionCodes::MgCoordinateSystemConversionFailedException, \
L"MgCoordinateSystemMgrs.ConvertFromLonLat", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemNoConversionDone", NULL);  }
         else
         {
@@ -837,7 +837,7 @@
     {
         if (m_bExceptionsOn)
         {
-            throw new \
MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemMgrs.ConvertToLonLat", \
__LINE__, __WFILE__, NULL, L"", NULL); +            throw new \
MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystemMgrs.ConvertToLonLat", __LINE__, __WFILE__, NULL, L"", NULL);  }
         else
         {
@@ -851,7 +851,7 @@
     {
         if (m_bExceptionsOn)
         {
-            throw new \
MgInvalidArgumentException(L"MgCoordinateSystemMgrs.ConvertToLonLat", __LINE__, \
__WFILE__, NULL, L"", NULL); +            throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemMgrs.ConvertToLonLat", __LINE__, __WFILE__, NULL, L"", NULL);  }
         else
         {
@@ -866,7 +866,7 @@
     {
         if (m_bExceptionsOn)
         {
-            throw new \
MgOutOfMemoryException(L"MgCoordinateSystemMgrs.ConvertToLonLat", __LINE__, \
__WFILE__, NULL, L"", NULL); +            throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemMgrs.ConvertToLonLat", __LINE__, __WFILE__, NULL, L"", NULL);  }
         else
         {
@@ -890,7 +890,7 @@
     {
         if (m_bExceptionsOn)
         {
-            throw new \
MgCoordinateSystemConversionFailedException(L"MgCoordinateSystemMgrs.ConvertToLonLat", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemNoConversionDone", NULL); +            \
throw new MgException(MgExceptionCodes::MgCoordinateSystemConversionFailedException, \
L"MgCoordinateSystemMgrs.ConvertToLonLat", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemNoConversionDone", NULL);  }
         else
         {

Modified: trunk/MgDev/Common/CoordinateSystem/CoordSysProjectionInformation.cpp
===================================================================
--- trunk/MgDev/Common/CoordinateSystem/CoordSysProjectionInformation.cpp	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/CoordinateSystem/CoordSysProjectionInformation.cpp	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -141,7 +141,7 @@
 
     if (NULL == pNewEnum.p)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemProjectionInformation.GetEnumProjections", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemProjectionInformation.GetEnumProjections", __LINE__, __WFILE__, \
NULL, L"", NULL);  }
 
     pNewEnum->SetList(kProjections, klNumProjections);
@@ -162,7 +162,7 @@
     MG_TRY()
     if (MgCoordinateSystemProjectionCode::Unknown == nProjectionCode)
     {
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemProjectionInformation.GetParameterCount", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemProjectionInformation.GetParameterCount", __LINE__, __WFILE__, \
NULL, L"", NULL);  }
     // for each possible parameter.
     int parmIdx = 0;
@@ -188,13 +188,13 @@
     MG_TRY()
     if (MgCoordinateSystemProjectionCode::Unknown == nProjectionCode)
     {
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemProjectionInformation.IsUsingParameter", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemProjectionInformation.IsUsingParameter", __LINE__, __WFILE__, \
NULL, L"", NULL);  }
 
     assert((ulIndex>=1) && (ulIndex<=knCsNumParams));
     if ((ulIndex < 1) || (ulIndex > knCsNumParams))
     {
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemProjectionInformation.GetParameterCount", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemProjectionInformation.GetParameterCount", __LINE__, __WFILE__, \
NULL, L"", NULL);  }
 
     int nResult = CS_prjprm(NULL, nProjectionCode, ulIndex-1);
@@ -260,12 +260,12 @@
     MG_TRY()
     if (MgCoordinateSystemProjectionCode::Unknown == nProjectionCode)
     {
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemProjectionInformation.GetParameterMin", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemProjectionInformation.GetParameterMin", __LINE__, __WFILE__, \
NULL, L"", NULL);  }
     assert((ulIndex>=1) && (ulIndex<=knCsNumParams));
     if ((ulIndex < 1) || (ulIndex > knCsNumParams))
     {
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemProjectionInformation.GetParameterMin", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemProjectionInformation.GetParameterMin", __LINE__, __WFILE__, \
NULL, L"", NULL);  }
 
     //Get information about the parameter
@@ -278,12 +278,12 @@
         break;
     case 0:
         //The projection does not use this parameter.
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemProjectionInformation.GetParameterMin", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemMismatchException", NULL); +        \
throw new MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemProjectionInformation.GetParameterMin", __LINE__, __WFILE__, \
NULL, L"MgCoordinateSystemMismatchException", NULL);  break;
     case -1:
     default:
         //Not a valid projection.
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemProjectionInformation.GetParameterMin", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemProjectionInformation.GetParameterMin", __LINE__, __WFILE__, \
NULL, L"", NULL);  break;
     }
 
@@ -299,12 +299,12 @@
     MG_TRY()
     if (MgCoordinateSystemProjectionCode::Unknown == nProjectionCode)
     {
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemProjectionInformation.GetParameterMax", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemProjectionInformation.GetParameterMax", __LINE__, __WFILE__, \
NULL, L"", NULL);  }
     assert((ulIndex>=1) && (ulIndex<=knCsNumParams));
     if ((ulIndex < 1) || (ulIndex > knCsNumParams))
     {
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemProjectionInformation.GetParameterMax", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemProjectionInformation.GetParameterMax", __LINE__, __WFILE__, \
NULL, L"", NULL);  }
 
     //Get information about the parameter
@@ -317,12 +317,12 @@
         break;
     case 0:
         //The projection does not use this parameter.
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemProjectionInformation.GetParameterMax", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemMismatchException", NULL); +        \
throw new MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemProjectionInformation.GetParameterMax", __LINE__, __WFILE__, \
NULL, L"MgCoordinateSystemMismatchException", NULL);  break;
     case -1:
     default:
         //Not a valid projection.
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemProjectionInformation.GetParameterMax", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemProjectionInformation.GetParameterMax", __LINE__, __WFILE__, \
NULL, L"", NULL);  break;
     }
 
@@ -345,13 +345,13 @@
 
     if (MgCoordinateSystemProjectionCode::Unknown == nProjectionCode)
     {
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemProjectionInformation.GetParamDefault", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemProjectionInformation.GetParamDefault", __LINE__, __WFILE__, \
NULL, L"", NULL);  }
 
     assert((ulIndex>=1) && (ulIndex<=knCsNumParams));
     if ((ulIndex < 1) || (ulIndex > knCsNumParams))
     {
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemProjectionInformation.GetParamDefault", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemProjectionInformation.GetParamDefault", __LINE__, __WFILE__, \
NULL, L"", NULL);  }
 
     //Get information about the parameter
@@ -364,12 +364,12 @@
         break;
     case 0:
         //The projection does not use this parameter.
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemProjectionInformation.GetParamDefault", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemMismatchException", NULL); +        \
throw new MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemProjectionInformation.GetParamDefault", __LINE__, __WFILE__, \
NULL, L"MgCoordinateSystemMismatchException", NULL);  break;
     case -1:
     default:
         //Not a valid projection.
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemProjectionInformation.GetParamDefault", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemProjectionInformation.GetParamDefault", __LINE__, __WFILE__, \
NULL, L"", NULL);  break;
     }
 
@@ -397,13 +397,13 @@
 
     if (MgCoordinateSystemProjectionCode::Unknown == nProjectionCode)
     {
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemProjectionInformation.GetParamLogicalType", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemProjectionInformation.GetParamLogicalType", __LINE__, __WFILE__, \
NULL, L"", NULL);  }
 
     assert((ulIndex>=1) && (ulIndex<=knCsNumParams));
     if ((ulIndex < 1) || (ulIndex > knCsNumParams))
     {
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemProjectionInformation.GetParamLogicalType", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemProjectionInformation.GetParamLogicalType", __LINE__, __WFILE__, \
NULL, L"", NULL);  }
 
     //Get information about the parameter
@@ -416,12 +416,12 @@
         break;
     case 0:
         //The projection does not use this parameter.
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemProjectionInformation.GetParamLogicalType", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemMismatchException", NULL); +        \
throw new MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemProjectionInformation.GetParamLogicalType", __LINE__, __WFILE__, \
NULL, L"MgCoordinateSystemMismatchException", NULL);  break;
     case -1:
     default:
         //Not a valid projection.
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemProjectionInformation.GetParamLogicalType", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemProjectionInformation.GetParamLogicalType", __LINE__, __WFILE__, \
NULL, L"", NULL);  break;
     }
 
@@ -448,13 +448,13 @@
 
     if (MgCoordinateSystemProjectionCode::Unknown == nProjectionCode)
     {
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemProjectionInformation.GetParamFormatType", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemProjectionInformation.GetParamFormatType", __LINE__, __WFILE__, \
NULL, L"", NULL);  }
 
     assert((ulIndex>=1) && (ulIndex<=knCsNumParams));
     if ((ulIndex < 1) || (ulIndex > knCsNumParams))
     {
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemProjectionInformation.GetParamFormatType", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemProjectionInformation.GetParamFormatType", __LINE__, __WFILE__, \
NULL, L"", NULL);  }
 
     //Get information about the parameter
@@ -467,12 +467,12 @@
         break;
     case 0:
         //The projection does not use this parameter.
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemProjectionInformation.GetParamFormatType", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemMismatchException", NULL); +        \
throw new MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemProjectionInformation.GetParamFormatType", __LINE__, __WFILE__, \
NULL, L"MgCoordinateSystemMismatchException", NULL);  break;
     case -1:
     default:
         //Not a valid projection.
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemProjectionInformation.GetParamFormatType", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemProjectionInformation.GetParamFormatType", __LINE__, __WFILE__, \
NULL, L"", NULL);  break;
     }
 
@@ -500,13 +500,13 @@
 
     if (MgCoordinateSystemProjectionCode::Unknown == nProjectionCode)
     {
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemProjectionInformation.GetParamType", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemProjectionInformation.GetParamType", __LINE__, __WFILE__, NULL, \
L"", NULL);  }
 
     assert((ulIndex>=1) && (ulIndex<=knCsNumParams));
     if ((ulIndex < 1) || (ulIndex > knCsNumParams))
     {
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemProjectionInformation.GetParamType", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemProjectionInformation.GetParamType", __LINE__, __WFILE__, NULL, \
L"", NULL);  }
 
     //MENTOR_MAINTENANCE
@@ -522,12 +522,12 @@
     }
     if (mp->prj_code == cs_PRJCOD_END)
     {
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemProjectionInformation.GetParamType", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemProjectionInformation.GetParamType", __LINE__, __WFILE__, NULL, \
L"", NULL);  }
     nIndex = mp->prm_types[ulIndex-1];
     if (nIndex <= 0)
     {
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemProjectionInformation.GetParamType", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemMismatchException", NULL); +        \
throw new MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemProjectionInformation.GetParamType", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemMismatchException", NULL);  }
 
     paramType = static_cast<INT32>(nIndex);
@@ -561,13 +561,13 @@
 {
     if (MgCoordinateSystemProjectionCode::Unknown == nProjectionCode)
     {
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemProjectionInformation.GetTagString", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemProjectionInformation.GetTagString", __LINE__, __WFILE__, NULL, \
L"", NULL);  }
 
     wchar_t* pszTag=Convert_UTF8_To_Wide(StringFromProjection(nProjectionCode));
     if (NULL == pszTag)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemProjectionInformation.GetTagString", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemProjectionInformation.GetTagString", __LINE__, __WFILE__, NULL, \
L"", NULL);  }
     STRING str(pszTag);
     delete[] pszTag;

Modified: trunk/MgDev/Common/CoordinateSystem/CoordSysTransform.cpp
===================================================================
--- trunk/MgDev/Common/CoordinateSystem/CoordSysTransform.cpp	2022-09-15 10:14:11 UTC \
                (rev 9970)
+++ trunk/MgDev/Common/CoordinateSystem/CoordSysTransform.cpp	2022-10-10 09:40:18 UTC \
(rev 9971) @@ -109,7 +109,7 @@
     //Make sure we're initialized
     if (!IsInitialized())
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemTransform.IsValidPoint", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemNotReadyException", NULL); +        \
throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystemTransform.IsValidPoint", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemNotReadyException", NULL);  }
 
     //Test the point
@@ -194,7 +194,7 @@
     pCoordinate = new MgCoordinateXY(dCoords [0], dCoords [1]);
     if (!pCoordinate)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemTransform.Transform", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemTransform.Transform", __LINE__, __WFILE__, NULL, L"", NULL);  }
     MG_CATCH_AND_THROW(L"MgCoordinateSystemTransform.Transform")
     return pCoordinate;
@@ -257,7 +257,7 @@
     pCoordinate = new MgCoordinateXYM(dCoords [0], dCoords [1], lclM);
     if (!pCoordinate)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemTransform.TransformM", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemTransform.TransformM", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
     MG_CATCH_AND_THROW(L"MgCoordinateSystemTransform.TransformM")
@@ -319,7 +319,7 @@
     pCoordinate = new MgCoordinateXYZ(dCoords [0], dCoords [1], dCoords [2]);
     if (!pCoordinate)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemTransform.Transform", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemTransform.Transform", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
     MG_CATCH_AND_THROW(L"MgCoordinateSystemTransform.Transform")
@@ -384,7 +384,7 @@
     pCoordinate = new MgCoordinateXYZM(dCoords [0], dCoords [1], dCoords [2], lclM);
     if (!pCoordinate)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemTransform.TransformM", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemTransform.TransformM", __LINE__, __WFILE__, NULL, L"", NULL);  }
     MG_CATCH_AND_THROW(L"MgCoordinateSystemTransform.TransformM")
     return pCoordinate;
@@ -511,7 +511,7 @@
     else
     {
         // What dimension is this?
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemTransform.TransformCoordinate", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemTransform.TransformCoordinate", __LINE__, __WFILE__, NULL, L"", \
NULL);  }
     if (status != TransformOk)
     {
@@ -562,7 +562,7 @@
     else
     {
         // What dimension is this?
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemTransform.Transform", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemTransform.Transform", __LINE__, __WFILE__, NULL, L"", NULL);  }
     MG_CATCH_AND_THROW(L"MgCoordinateSystemTransform.Transform")
 
@@ -758,7 +758,7 @@
     //Make sure we're initialized
     if (!IsInitialized())
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemTransform.GetSource", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemNotReadyException", NULL); +        \
throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystemTransform.GetSource", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemNotReadyException", NULL);  }
 
     return SAFE_ADDREF(m_pCsSource.p);
@@ -773,7 +773,7 @@
     //Make sure we're initialized
     if (!IsInitialized())
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemTransform.GetTarget", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemNotReadyException", NULL); +        \
throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystemTransform.GetTarget", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemNotReadyException", NULL);  }
 
     return SAFE_ADDREF(m_pCsTarget.p);
@@ -803,7 +803,7 @@
     bValid = pSource->IsValid();
     if (!bValid)
     {
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemTransform.SetSourceAndTarget", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemTransform.SetSourceAndTarget", __LINE__, __WFILE__, NULL, L"", \
NULL);  }
 
     //Make sure the destination coordinate system is valid
@@ -810,7 +810,7 @@
     bValid = pTarget->IsValid();
     if (!bValid)
     {
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemTransform.SetSourceAndTarget", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemTransform.SetSourceAndTarget", __LINE__, __WFILE__, NULL, L"", \
NULL);  }
 
     //Build Mentor structs out of the source and destination
@@ -818,12 +818,12 @@
     bool bResult = BuildCsprmFromInterface(pSource, srcCsprm);
     if (!bResult)
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemTransform.SetSourceAndTarget", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystemTransform.SetSourceAndTarget", __LINE__, __WFILE__, NULL, L"", \
NULL);  }
     bResult = BuildCsprmFromInterface(pTarget, dstCsprm);
     if (!bResult)
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemTransform.SetSourceAndTarget", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystemTransform.SetSourceAndTarget", __LINE__, __WFILE__, NULL, L"", \
NULL);  }
 
     //Attempt to set up a datum conversion.
@@ -837,7 +837,7 @@
         //This can easily happen if, for example, it's a NADCON
         //datum shift and Mentor couldn't find the NADCON
         //data files at run time.
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemTransform.SetSourceAndTarget", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemGeodeticTransformationSetupException", \
NULL); +        throw new \
MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystemTransform.SetSourceAndTarget", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemGeodeticTransformationSetupException", NULL);  }
 
     //Okay, we're all set!  Uninitialize ourselves, and
@@ -881,17 +881,17 @@
 MgCoordinateSystemGeodeticTransformDef* \
CCoordinateSystemTransform::GetGeodeticTransformation (INT32 index)  {
     if (index < 0 || index >= this->GetGeodeticTransformationCount())
-        throw new MgArgumentOutOfRangeException(L"GetGeodeticTransformation.GetGeodeticTransformation",__LINE__,__WFILE__, \
NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgArgumentOutOfRangeException, \
L"GetGeodeticTransformation.GetGeodeticTransformation",__LINE__,__WFILE__, NULL, L"", \
NULL);  
     // indexparameter is valid, get a pointer to the appropriate
     // CS-MAP transformation object.
     cs_GxXform_ *xfrmPtr = m_pDtcprm->xforms [index];
     if (NULL == xfrmPtr)
-        throw new MgCoordinateSystemInitializationFailedException(L"GetGeodeticTransformation.GetGeodeticTransformation",__LINE__,__WFILE__, \
NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"GetGeodeticTransformation.GetGeodeticTransformation",__LINE__,__WFILE__, NULL, L"", \
NULL);  
     cs_GeodeticTransform_* xfrmDefPtr = &xfrmPtr->gxDef;
     if (NULL == xfrmDefPtr)
-        throw new MgCoordinateSystemInitializationFailedException(L"GetGeodeticTransformation.GetGeodeticTransformation",__LINE__,__WFILE__, \
NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"GetGeodeticTransformation.GetGeodeticTransformation",__LINE__,__WFILE__, NULL, L"", \
NULL);  
     // Extract the name of the transformation.
     Ptr<MgCoordinateSystemGeodeticTransformDef> catalogTransformationDef;
@@ -919,7 +919,7 @@
         //in this case, CSMAP returns a [xfrmDefPtr] but the actual (explicit) \
transformation definition  //doesn't exist in the dictionaries
         if (NULL == catalogTransformationDef)
-            throw new \
MgCoordinateSystemLoadFailedException(L"GetGeodeticTransformation.GetGeodeticTransformation",__LINE__,__WFILE__, \
NULL, L"", NULL); +            throw new \
MgException(MgExceptionCodes::MgCoordinateSystemLoadFailedException, \
L"GetGeodeticTransformation.GetGeodeticTransformation",__LINE__,__WFILE__, NULL, L"", \
NULL);  
     MG_CATCH(L"GetGeodeticTransformation.GetGeodeticTransformation")
 
@@ -1151,7 +1151,7 @@
     assert(IsInitialized());
     if (!IsInitialized())
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemTransform.Transform", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemNotReadyException", NULL); +        \
throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystemTransform.Transform", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemNotReadyException", NULL);  }
 
     dCoords [2] = 0.0;
@@ -1271,7 +1271,7 @@
     assert(IsInitialized());
     if (!IsInitialized())
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemTransform.Transform", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemNotReadyException", NULL); +        \
throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystemTransform.Transform", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemNotReadyException", NULL);  }
 
     dCoords [2] = 0.0;
@@ -1396,7 +1396,7 @@
     assert(IsInitialized());
     if (!IsInitialized())
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemTransform.Transform", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemNotReadyException", NULL); +        \
throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystemTransform.Transform", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemNotReadyException", NULL);  }
 
     m_nTransformStatus = TransformOk;
@@ -1523,7 +1523,7 @@
     assert(IsInitialized());
     if (!IsInitialized())
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemTransform.Transform", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemNotReadyException", NULL); +        \
throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystemTransform.Transform", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemNotReadyException", NULL);  }
 
     m_nTransformStatus = TransformOk;
@@ -1588,12 +1588,12 @@
     assert(pointCount > 0);
     if (0 >= pointCount)
     {
-        throw new MgNullArgumentException(L"MgCoordinateSystemTransform.Transform", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgNullArgumentException, \
L"MgCoordinateSystemTransform.Transform", __LINE__, __WFILE__, NULL, L"", NULL);  }
     assert(IsInitialized());
     if (!IsInitialized())
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemTransform.Transform", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemNotReadyException", NULL); +        \
throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystemTransform.Transform", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemNotReadyException", NULL);  }
 
     // Optimization
@@ -1632,7 +1632,7 @@
     }
     if (TransformTotalFailure <= status)
     {
-        throw new MgCoordinateSystemConversionFailedException(L"MgCoordinateSystemTransform.InterpretStatus", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemNoConversionDone", NULL); +        \
throw new MgException(MgExceptionCodes::MgCoordinateSystemConversionFailedException, \
L"MgCoordinateSystemTransform.InterpretStatus", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemNoConversionDone", NULL);  }
     return;
 }
@@ -1649,12 +1649,12 @@
     assert(pointCount > 0);
     if (0 >= pointCount)
     {
-        throw new MgNullArgumentException(L"MgCoordinateSystemTransform.Transform", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgNullArgumentException, \
L"MgCoordinateSystemTransform.Transform", __LINE__, __WFILE__, NULL, L"", NULL);  }
     assert(IsInitialized());
     if (!IsInitialized())
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemTransform.Transform", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemNotReadyException", NULL); +        \
throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystemTransform.Transform", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemNotReadyException", NULL);  }
 
     // Optimization
@@ -1693,7 +1693,7 @@
     }
     if (TransformTotalFailure <= status)
     {
-        throw new MgCoordinateSystemConversionFailedException(L"MgCoordinateSystemTransform.InterpretStatus", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemNoConversionDone", NULL); +        \
throw new MgException(MgExceptionCodes::MgCoordinateSystemConversionFailedException, \
L"MgCoordinateSystemTransform.InterpretStatus", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemNoConversionDone", NULL);  }
     return;
 }
@@ -1938,7 +1938,7 @@
         else
         {
             // Invalid argument value.
-            throw new \
MgInvalidArgumentException(L"MgCoordinateSystemTransform.PositionOfValue", +          \
throw new MgException(MgExceptionCodes::MgInvalidArgumentException, \
                L"MgCoordinateSystemTransform.PositionOfValue",
                                                  __LINE__, __WFILE__, NULL, L"", \
NULL);  }
 
@@ -2265,7 +2265,7 @@
     if (status == TransformTotalFailure)
     {
         m_nTransformStatus = TransformTotalFailure;
-        throw new MgCoordinateSystemConversionFailedException(L"MgCoordinateSystemTransform.InterpretStatus", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemNoConversionDone", NULL); +        \
throw new MgException(MgExceptionCodes::MgCoordinateSystemConversionFailedException, \
L"MgCoordinateSystemTransform.InterpretStatus", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemNoConversionDone", NULL);  }
     else if (status == TransformDatumShiftWarning)
     {
@@ -2275,7 +2275,7 @@
         }
         if (!m_bIgnoreDatumShiftWarning)
         {
-            throw new \
MgCoordinateSystemConversionFailedException(L"MgCoordinateSystemTransform.InterpretStatus", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemConversionWarningException", NULL); +  \
throw new MgException(MgExceptionCodes::MgCoordinateSystemConversionFailedException, \
L"MgCoordinateSystemTransform.InterpretStatus", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemConversionWarningException", NULL);  }
     }
     else if (status != TransformOk)
@@ -2286,7 +2286,7 @@
         }
         if(!m_bIgnoreOutsideDomainWarning)
         {
-            throw new \
MgCoordinateSystemConversionFailedException(L"MgCoordinateSystemTransform.InterpretStatus", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemConversionExtentException", NULL); +   \
throw new MgException(MgExceptionCodes::MgCoordinateSystemConversionFailedException, \
L"MgCoordinateSystemTransform.InterpretStatus", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemConversionExtentException", NULL);  }
     }
 }

Modified: trunk/MgDev/Common/CoordinateSystem/CoordSysUnitInformation.cpp
===================================================================
--- trunk/MgDev/Common/CoordinateSystem/CoordSysUnitInformation.cpp	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/CoordinateSystem/CoordSysUnitInformation.cpp	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -149,7 +149,7 @@
     {
         MgStringCollection arguments;
         arguments.Add(L""); // dummy argument
-        throw new MgCoordinateSystemLoadFailedException(L"MgCoordinateSystemUnitInformation.GetScale", \
__LINE__, __WFILE__, &arguments, L"MgCoordinateSystemUnknownUnit", NULL); +        \
throw new MgException(MgExceptionCodes::MgCoordinateSystemLoadFailedException, \
L"MgCoordinateSystemUnitInformation.GetScale", __LINE__, __WFILE__, &arguments, \
L"MgCoordinateSystemUnknownUnit", NULL);  }
 
     if (desiredUnitType != unitType)
@@ -156,7 +156,7 @@
     {
         MgStringCollection arguments;
         arguments.Add(L""); // dummy argument
-        throw new MgCoordinateSystemLoadFailedException(L"MgCoordinateSystemUnitInformation.GetScale", \
__LINE__, __WFILE__, &arguments, L"MgCoordinateSystemNotLinearUnit", NULL); +        \
throw new MgException(MgExceptionCodes::MgCoordinateSystemLoadFailedException, \
L"MgCoordinateSystemUnitInformation.GetScale", __LINE__, __WFILE__, &arguments, \
L"MgCoordinateSystemNotLinearUnit", NULL);  }
     MG_CATCH_AND_THROW(L"MgCoordinateSystemUnitInformation.GetScale")
 
@@ -177,7 +177,7 @@
 
     if (NULL == pNewEnum.p)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemUnitInformation.GetEnumLinearUnits", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemUnitInformation.GetEnumLinearUnits", __LINE__, __WFILE__, NULL, \
L"", NULL);  }
 
     pNewEnum->SetList(kLinearUnits, klNumLinearUnits);
@@ -201,7 +201,7 @@
 
     if (NULL == pNewEnum.p)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemUnitInformation.GetEnumAngularUnits", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemUnitInformation.GetEnumAngularUnits", __LINE__, __WFILE__, NULL, \
L"", NULL);  }
 
     pNewEnum->SetList(kAngularUnits, klNumAngularUnits);
@@ -258,7 +258,7 @@
     wchar_t* pszTag = Convert_UTF8_To_Wide(StringFromUnit(unit));
     if (NULL == pszTag)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemUnitInformation.GetTagString", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemUnitInformation.GetTagString", __LINE__, __WFILE__, NULL, L"", \
NULL);  }
     STRING str(pszTag);
     delete[] pszTag;
@@ -282,7 +282,7 @@
     if (NULL == kpTag)
     {
         //Unknown unit type.
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemUnitInformation.GetAbbreviation", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemUnitInformation.GetAbbreviation", __LINE__, __WFILE__, NULL, L"", \
NULL);  }
 
     //Look it up in Mentor's table

Modified: trunk/MgDev/Common/CoordinateSystem/CoordSysUtil.cpp
===================================================================
--- trunk/MgDev/Common/CoordinateSystem/CoordSysUtil.cpp	2022-09-15 10:14:11 UTC (rev \
                9970)
+++ trunk/MgDev/Common/CoordinateSystem/CoordSysUtil.cpp	2022-10-10 09:40:18 UTC (rev \
9971) @@ -75,7 +75,7 @@
     case kFileIsValid:
         break;
     case kFileInvalidEmptyString:
-        throw new MgInvalidArgumentException(wszMethodName, __LINE__, __WFILE__, \
NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, wszMethodName, __LINE__, \
__WFILE__, NULL, L"", NULL);  break;
     case kFileInvalidNotADir:
     case kFileInvalidIsADir:
@@ -82,7 +82,7 @@
         {
         MgStringCollection arguments;
         arguments.Add(sPathName);
-        throw new MgFileIoException(wszMethodName, __LINE__, __WFILE__, &arguments, \
L"MgInvalidArgumentException", NULL); +        throw new \
MgException(MgExceptionCodes::MgFileIoException, wszMethodName, __LINE__, __WFILE__, \
&arguments, L"MgInvalidArgumentException", NULL);  }
         break;
     case kFileInvalidPath:
@@ -90,16 +90,16 @@
         {
         MgStringCollection arguments;
         arguments.Add(sPathName);
-        throw new MgFileIoException(wszMethodName, __LINE__, __WFILE__, &arguments, \
L"MgFileNotFoundException", NULL); +        throw new \
MgException(MgExceptionCodes::MgFileIoException, wszMethodName, __LINE__, __WFILE__, \
&arguments, L"MgFileNotFoundException", NULL);  }
         break;
     case kFileInvalidCantRead:
     case kFileInvalidCantWrite:
-        throw new MgFileIoException(wszMethodName, __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemCatalogFileLockedException", NULL); +        throw new \
MgException(MgExceptionCodes::MgFileIoException, wszMethodName, __LINE__, __WFILE__, \
NULL, L"MgCoordinateSystemCatalogFileLockedException", NULL);  break;
     default:
         assert(0);
-        throw new MgUnclassifiedException(wszMethodName, __LINE__, __WFILE__, NULL, \
L"", NULL); +        throw new MgException(MgExceptionCodes::MgUnclassifiedException, \
wszMethodName, __LINE__, __WFILE__, NULL, L"", NULL);  break;
     }
 }
@@ -697,6 +697,6 @@
     }
     return maxAvailable;
 #else // LINUX
-    throw new MgNotImplementedException(L"GetAvailableMemory", __LINE__, __WFILE__, \
NULL, L"", NULL); +    throw new \
MgException(MgExceptionCodes::MgNotImplementedException, L"GetAvailableMemory", \
__LINE__, __WFILE__, NULL, L"", NULL);  #endif
 }

Modified: trunk/MgDev/Common/CoordinateSystem/MentorDictionary.cpp
===================================================================
--- trunk/MgDev/Common/CoordinateSystem/MentorDictionary.cpp	2022-09-15 10:14:11 UTC \
                (rev 9970)
+++ trunk/MgDev/Common/CoordinateSystem/MentorDictionary.cpp	2022-10-10 09:40:18 UTC \
(rev 9971) @@ -62,7 +62,7 @@
         bWriting = true;
         break;
     default:
-        throw new MgInvalidArgumentException(L"MentorDictionary.Open", __LINE__, \
__WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, L"MentorDictionary.Open", \
__LINE__, __WFILE__, NULL, L"", NULL);  break;
     }
 
@@ -78,7 +78,7 @@
         switch (reason)
         {
         case kFileInvalidEmptyString:
-            throw new MgInvalidArgumentException(L"MentorDictionary.Open", __LINE__, \
__WFILE__, NULL, L"", NULL); +            throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, L"MentorDictionary.Open", \
__LINE__, __WFILE__, NULL, L"", NULL);  break;
         case kFileInvalidPath:
         case kFileInvalidDoesNotExist:
@@ -86,7 +86,7 @@
             {
             MgStringCollection arguments;
             arguments.Add(kpPath);
-            throw new MgFileNotFoundException(L"MentorDictionary.Open", __LINE__, \
__WFILE__, &arguments, L"", NULL); +            throw new \
MgException(MgExceptionCodes::MgFileNotFoundException, L"MentorDictionary.Open", \
__LINE__, __WFILE__, &arguments, L"", NULL);  }
             break;
         case kFileInvalidCantWrite:
@@ -93,11 +93,11 @@
             {
             MgStringCollection arguments;
             arguments.Add(kpPath);
-            throw new \
MgCoordinateSystemLoadFailedException(L"MentorDictionary.Open", __LINE__, __WFILE__, \
&arguments, L"MgCoordinateSystemDictionaryReadOnlyException", NULL); +            \
throw new MgException(MgExceptionCodes::MgCoordinateSystemLoadFailedException, \
L"MentorDictionary.Open", __LINE__, __WFILE__, &arguments, \
L"MgCoordinateSystemDictionaryReadOnlyException", NULL);  }
             break;
         default:
-            throw new MgUnclassifiedException(L"MentorDictionary.Open", __LINE__, \
__WFILE__, NULL, L"", NULL); +            throw new \
MgException(MgExceptionCodes::MgUnclassifiedException, L"MentorDictionary.Open", \
__LINE__, __WFILE__, NULL, L"", NULL);  break;
         }
         //return;
@@ -108,7 +108,7 @@
     GetFileModes(nOpenMode, szMode);
     if (NULL==(pFile=OpenDictionaryFile(kpPath, szMode, lMagic, ValidMagic)))
     {
-        throw new MgFileIoException(L"MentorDictionary.Open", __LINE__, __WFILE__, \
NULL, L"MgCoordinateSystemDictionaryOpenFailedException", NULL); +        throw new \
MgException(MgExceptionCodes::MgFileIoException, L"MentorDictionary.Open", __LINE__, \
__WFILE__, NULL, L"MgCoordinateSystemDictionaryOpenFailedException", NULL);  }
 
     //If the Mentor version is anything other than current, we're not allowed
@@ -118,7 +118,7 @@
         //Sorry, old version.  Write access not allowed.
         CS_fclose(pFile);
         pFile=NULL;
-        throw new MgInvalidArgumentException(L"MentorDictionary.Open", __LINE__, \
__WFILE__, NULL, L"MgCoordinateSystemDictionaryNoWriteToOldException", NULL); +       \
throw new MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MentorDictionary.Open", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemDictionaryNoWriteToOldException", NULL);  }
 
     MG_CATCH_AND_THROW(L"MentorDictionary.Open")
@@ -159,7 +159,7 @@
         if (sDirectory.empty())
         {
             //Directory hasn't been specified yet.
-            throw new MgCoordinateSystemInitializationFailedException(kpMethodName, \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemNotReadyException", NULL); +           \
throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
kpMethodName, __LINE__, __WFILE__, NULL, L"MgCoordinateSystemNotReadyException", \
NULL);  }
 
         STRING sPath = sDirectory + sFileName;
@@ -179,7 +179,7 @@
         //Try to open the dictionary file
         if (!GetMagicFromDictionaryFile(sPath.c_str(), lMagic, ValidMagic))
         {
-            throw new MgFileIoException(kpMethodName, __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemDictionaryOpenFailedException", NULL); +            throw new \
MgException(MgExceptionCodes::MgFileIoException, kpMethodName, __LINE__, __WFILE__, \
NULL, L"MgCoordinateSystemDictionaryOpenFailedException", NULL);  }
     }//if dictionary is specified
 

Modified: trunk/MgDev/Common/CoordinateSystem/MentorDictionary.h
===================================================================
--- trunk/MgDev/Common/CoordinateSystem/MentorDictionary.h	2022-09-15 10:14:11 UTC \
                (rev 9970)
+++ trunk/MgDev/Common/CoordinateSystem/MentorDictionary.h	2022-10-10 09:40:18 UTC \
(rev 9971) @@ -94,7 +94,7 @@
             return false;
 
         //i.e. nResult < 0
-        throw new MgFileIoException(L"MentorDictionary.GetNextEntry", __LINE__, \
__WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgFileIoException, L"MentorDictionary.GetNextEntry", \
__LINE__, __WFILE__, NULL, L"", NULL);  }
 
     //iterates through all entries return a vector of definitions in the same order \
as they've been returned by CsMap @@ -116,7 +116,7 @@
 
             def = (T*) CS_malc(sizeof(T));
             if (NULL == def)
-                throw new \
MgOutOfMemoryException(L"MentorDictionary.ReadDictionaryEntries", __LINE__, \
__WFILE__, NULL, L"", NULL); +                throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MentorDictionary.ReadDictionaryEntries", __LINE__, __WFILE__, NULL, L"", NULL);  
             while (MentorDictionary::GetNextEntry(pFile, *def, nCrypt, CS_Trd))
             {
@@ -126,10 +126,7 @@
 
             return allDictEntries.release();
         }
-        catch(MgFileIoException* ioException)
-        {
-            ioException->Release();
-        }
+        MG_CATCH_AND_RELEASE_IF_TYPE(MgFileIoException)
         catch (std::bad_alloc&)
         {
         }
@@ -160,7 +157,7 @@
 
         allDefs.reset(MentorDictionary::ReadDictionaryEntries<T>(pFile, CS_Trd));
         if (NULL == allDefs.get())
-            throw new \
MgInvalidArgumentException(L"MentorDictionary.ReadDictionaryEntries", __LINE__, \
__WFILE__, NULL, L"", NULL); +            throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MentorDictionary.ReadDictionaryEntries", __LINE__, __WFILE__, NULL, L"", NULL);  
         MG_CATCH(L"MentorDictionary.ReadDictionaryEntries")
 
@@ -168,7 +165,7 @@
         pFile = NULL;
 
         if (!fileClosed && NULL == mgException)
-            throw new MgFileIoException(L"MentorDictionary.ReadDictionaryEntries", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemDictionaryCloseFailedException", \
NULL); +            throw new MgException(MgExceptionCodes::MgFileIoException, \
L"MentorDictionary.ReadDictionaryEntries", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemDictionaryCloseFailedException", NULL);  
         MG_THROW()
 
@@ -290,7 +287,7 @@
         CHECKARGUMENTNULL(targetDictionary, L"MentorDictionary.ReadAllDefinitions");
         CHECKARGUMENTNULL(GetCode, L"MentorDictionary.ReadAllDefinitions");
         if (0 != definitions.size())
-            throw new \
MgInvalidArgumentException(L"MentorDictionary.ReadAllDefinitions", __LINE__, \
__WFILE__, NULL, L"", NULL); +            throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MentorDictionary.ReadAllDefinitions", __LINE__, __WFILE__, NULL, L"", NULL);  
         const UINT32 entryCount = targetDictionary->GetSize();;
         
@@ -331,7 +328,7 @@
             Ptr<MgDisposable> disposableItem = toBeFiltered->GetItem(j);
             T* mgCsItem = dynamic_cast<T*>(disposableItem.p);
             if (NULL == mgCsItem)
-                throw new \
MgInvalidArgumentException(L"MentorDictionary.FilterDefinitions", __LINE__, \
__WFILE__, NULL, L"", NULL); +                throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MentorDictionary.FilterDefinitions", __LINE__, __WFILE__, NULL, L"", NULL);  
             //exclude the [mgCsItem], if it's not accepted by the filter we got
             if (filters->at(j)->IsFilteredOut(mgCsItem))
@@ -366,7 +363,7 @@
         if (readStatus < 0)
         {
             _ASSERT(NULL == pDefArray);
-            throw new \
MgCoordinateSystemLoadFailedException(L"MgCoordinateSystemDictionary.ReadAllCoordinateSystems", \
__LINE__, __WFILE__, NULL, L"", NULL); +            throw new \
MgException(MgExceptionCodes::MgCoordinateSystemLoadFailedException, \
L"MgCoordinateSystemDictionary.ReadAllCoordinateSystems", __LINE__, __WFILE__, NULL, \
L"", NULL);  }
 
         const bool doPostProcess = (NULL != PostProcess);
@@ -433,7 +430,7 @@
         //Make sure the def they've given us is valid
         if (NULL != isValid && !CALL_MEMBER_FN(kpDef, isValid)())
         {
-            throw new MgInvalidArgumentException(L"MentorDictionary.UpdateDef", \
__LINE__, __WFILE__, NULL, L"", NULL); +            throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MentorDictionary.UpdateDef", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
         //Build a definition from the interface
@@ -441,7 +438,7 @@
         bool bResult = BuildDefFromInterface(kpDef, def);
         if (!bResult)
         {
-            throw new \
MgCoordinateSystemInitializationFailedException(L"MentorDictionary.UpdateDef", \
__LINE__, __WFILE__, NULL, L"", NULL); +            throw new \
MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MentorDictionary.UpdateDef", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
         const char* keyName = key(def);
@@ -475,7 +472,7 @@
         if (bActuallyExists && !bAlreadyExists)
         {
             //It already exists, but it's not supposed to.
-            throw new MgInvalidArgumentException(L"MentorDictionary.UpdateDef", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemDuplicateException", NULL); +          \
throw new MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MentorDictionary.UpdateDef", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemDuplicateException", NULL);  }
         else if (!bActuallyExists && bAlreadyExists)
         {
@@ -483,7 +480,7 @@
             STRING message = MgUtil::MultiByteToWideChar(string(keyName));
             MgStringCollection arguments;
             arguments.Add(message);
-            throw new \
MgCoordinateSystemLoadFailedException(L"MentorDictionary.UpdateDef", __LINE__, \
__WFILE__, &arguments, L"", NULL); +            throw new \
MgException(MgExceptionCodes::MgCoordinateSystemLoadFailedException, \
L"MentorDictionary.UpdateDef", __LINE__, __WFILE__, &arguments, L"", NULL);  }
 
         if (verifyNotProtected)
@@ -491,7 +488,7 @@
             //If it already exists, make sure it's not protected.
             if ((bAlreadyExists) && (IsReallyProtected(sProtect)))
             {
-                throw new \
MgCoordinateSystemInitializationFailedException(L"MentorDictionary.UpdateDef", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemProtectedException", NULL); +          \
throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MentorDictionary.UpdateDef", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemProtectedException", NULL);  }
         }
 
@@ -507,7 +504,7 @@
         {
         case -1:
             //Some sort of Mentor error occurred.
-            throw new \
MgCoordinateSystemInitializationFailedException(L"MentorDictionary.UpdateDef", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemInternalException", NULL); +           \
throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MentorDictionary.UpdateDef", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemInternalException", NULL);  return;
         case 0:
             //The new object was added to the dictionary.
@@ -526,7 +523,7 @@
                 }
                 catch (std::bad_alloc)
                 {
-                    throw new MgOutOfMemoryException(L"MentorDictionary.UpdateDef", \
__LINE__, __WFILE__, NULL, L"", NULL); +                    throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, L"MentorDictionary.UpdateDef", \
__LINE__, __WFILE__, NULL, L"", NULL);  }
             }    //if summary is present
             break;
@@ -571,7 +568,7 @@
                     }
                     catch (std::bad_alloc)
                     {
-                        throw new \
MgOutOfMemoryException(L"MentorDictionary.UpdateDef", __LINE__, __WFILE__, NULL, L"", \
NULL); +                        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, L"MentorDictionary.UpdateDef", \
__LINE__, __WFILE__, NULL, L"", NULL);  }
                 }    //if the key name changed case
             }    //if a summary exists
@@ -579,7 +576,7 @@
         default:
             //This should never happen.
             assert(0);
-            throw new MgUnclassifiedException(L"MentorDictionary.UpdateDef", \
__LINE__, __WFILE__, NULL, L"", NULL); +            throw new \
MgException(MgExceptionCodes::MgUnclassifiedException, L"MentorDictionary.UpdateDef", \
__LINE__, __WFILE__, NULL, L"", NULL);  }    //for each possible result of the update
     }
 
@@ -612,7 +609,7 @@
         char *pName = Convert_Wide_To_UTF8(kpName);    //need to delete [] pName;
         if (NULL == pName)
         {
-            throw new MgOutOfMemoryException(L"MentorDictionary.RemoveDef", \
__LINE__, __WFILE__, NULL, L"", NULL); +            throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, L"MentorDictionary.RemoveDef", \
__LINE__, __WFILE__, NULL, L"", NULL);  }
         //Check our summary first, if present
         CSystemNameDescriptionMap::iterator iter;
@@ -628,7 +625,7 @@
                 //there.  We can return failure without the
                 //overhead of searching the disk file.
                 delete [] pName;
-                throw new \
MgCoordinateSystemLoadFailedException(L"MentorDictionary.RemoveDef", __LINE__, \
__WFILE__, &arguments, L"MgCoordinateSystemNotFoundException", NULL); +               \
throw new MgException(MgExceptionCodes::MgCoordinateSystemLoadFailedException, \
L"MentorDictionary.RemoveDef", __LINE__, __WFILE__, &arguments, \
L"MgCoordinateSystemNotFoundException", NULL);  }
         }
         //Get def from disk file.  We need to do this even if
@@ -642,7 +639,7 @@
             STRING message = MgUtil::MultiByteToWideChar(string(pName));
             MgStringCollection arguments;
             arguments.Add(message);
-            throw new \
MgCoordinateSystemLoadFailedException(L"MentorDictionary.RemoveDef", __LINE__, \
__WFILE__, &arguments, L"MgCoordinateSystemNotFoundException", NULL); +            \
throw new MgException(MgExceptionCodes::MgCoordinateSystemLoadFailedException, \
L"MentorDictionary.RemoveDef", __LINE__, __WFILE__, &arguments, \
L"MgCoordinateSystemNotFoundException", NULL);  }
 
         //Make sure it's not protected
@@ -649,7 +646,7 @@
         if (IsReallyProtected(pDef->protect))
         {
             CS_free(pDef);
-            throw new \
MgCoordinateSystemInitializationFailedException(L"MentorDictionary.RemoveDef", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemProtectedException", NULL); +          \
throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MentorDictionary.RemoveDef", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemProtectedException", NULL);  }
 
         //Go ahead and attempt to delete it
@@ -667,7 +664,7 @@
         else
         {
             //Failed.
-            throw new \
MgCoordinateSystemInitializationFailedException(L"MentorDictionary.RemoveDef", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemInternalException", NULL); +           \
throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MentorDictionary.RemoveDef", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemInternalException", NULL);  }
     }
 

Modified: trunk/MgDev/Common/CoordinateSystem/MentorUtil.cpp
===================================================================
--- trunk/MgDev/Common/CoordinateSystem/MentorUtil.cpp	2022-09-15 10:14:11 UTC (rev \
                9970)
+++ trunk/MgDev/Common/CoordinateSystem/MentorUtil.cpp	2022-10-10 09:40:18 UTC (rev \
9971) @@ -1439,7 +1439,7 @@
     {
         MgStringCollection arguments;
         arguments.Add(sFileName);
-        throw new MgFileIoException(/*context */ \
L"MentorUtil.SetDictionaryFileName", __LINE__, __WFILE__, &arguments, \
L"MgInvalidArgumentException", NULL); +        throw new \
MgException(MgExceptionCodes::MgFileIoException, /*context */ \
L"MentorUtil.SetDictionaryFileName", __LINE__, __WFILE__, &arguments, \
L"MgInvalidArgumentException", NULL);  }
 
     STRING fileNameSet;
@@ -1643,7 +1643,7 @@
 
     pString = Convert_UTF8_To_Wide(mentorString);
     if (NULL == pString) //ABA: this cannot be null, can it?
-        throw new MgOutOfMemoryException(L"MentorUtil.ReadString", __LINE__, \
__WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, L"MentorUtil.ReadString", \
__LINE__, __WFILE__, NULL, L"", NULL);  
     MG_CATCH(L"MentorUtil.ReadString")
 
@@ -1669,7 +1669,7 @@
     if (!IsLegalString(sSrc.c_str(), nMaxSize))
     {
         //Can't set string, caller gave us an illegal value
-        throw new MgInvalidArgumentException(L"MentorSetString", __LINE__, \
__WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, L"MentorSetString", \
__LINE__, __WFILE__, NULL, L"", NULL);  }
 
     //Convert to a C++ string, for Mentor's sake
@@ -1676,7 +1676,7 @@
     pStr = Convert_Wide_To_UTF8(sSrc.c_str()); //need to delete[] pStr
     if (NULL == pStr)
     {
-        throw new MgOutOfMemoryException(L"MentorSetString", __LINE__, __WFILE__, \
NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, L"MentorSetString", __LINE__, \
__WFILE__, NULL, L"", NULL);  }
 
     //Copy it in

Modified: trunk/MgDev/Common/Foundation/Data/Byte.cpp
===================================================================
--- trunk/MgDev/Common/Foundation/Data/Byte.cpp	2022-09-15 10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Data/Byte.cpp	2022-10-10 09:40:18 UTC (rev 9971)
@@ -91,7 +91,7 @@
     CheckEnd();
     if (MgByte::Internal != m_allocType)
     {
-        throw new MgInvalidOperationException(L"MgByte.Append", __LINE__, __WFILE__, \
NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidOperationException, L"MgByte.Append", \
__LINE__, __WFILE__, NULL, L"", NULL);  }
 
     if (len+m_len > m_allocLen)
@@ -159,7 +159,7 @@
     CheckEnd();
     if (len > m_allocLen)
     {
-        throw new MgArgumentOutOfRangeException(L"MgByte.SetLength",__LINE__,__WFILE__, \
NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgArgumentOutOfRangeException, \
L"MgByte.SetLength",__LINE__,__WFILE__, NULL, L"", NULL);  }
     m_len = len;
 }
@@ -176,7 +176,7 @@
     {
         if ( *((UINT64*)&m_bytes[m_allocLen]) != EndBytesMarker)
         {
-            throw new MgOverflowException(L"MgByte.CheckEnd",__LINE__,__WFILE__, \
NULL, L"", NULL); +            throw new \
MgException(MgExceptionCodes::MgOverflowException, \
L"MgByte.CheckEnd",__LINE__,__WFILE__, NULL, L"", NULL);  }
     }
 }

Modified: trunk/MgDev/Common/Foundation/Data/ByteSink.cpp
===================================================================
--- trunk/MgDev/Common/Foundation/Data/ByteSink.cpp	2022-09-15 10:14:11 UTC (rev \
                9970)
+++ trunk/MgDev/Common/Foundation/Data/ByteSink.cpp	2022-10-10 09:40:18 UTC (rev \
9971) @@ -93,7 +93,7 @@
         MgStringCollection arguments;
         arguments.Add(mimeType);
 
-        throw new MgInvalidMimeTypeException(L"MgByteSink.ToStringUtf8",
+        throw new MgException(MgExceptionCodes::MgInvalidMimeTypeException, \
L"MgByteSink.ToStringUtf8",  __LINE__,__WFILE__, &arguments, L"", NULL);
     }
 
@@ -127,7 +127,7 @@
         if ((bytesSent = stream->send_n(bytes, bytesReceived, MG_MSG_NOSIGNAL)) != \
bytesReceived)  {
             //should get the error from ACE and put it in the exception
-            throw new MgStreamIoException(L"MgByteSink.ToStream",
+            throw new MgException(MgExceptionCodes::MgStreamIoException, \
L"MgByteSink.ToStream",  __LINE__, __WFILE__, NULL, L"", NULL);
         }
     }
@@ -206,13 +206,13 @@
             if (errno == EEXIST)
             {
                 MG_FILE_IO_EXCEPTION_ADD_ERRNO();
-                throw new MgFileNotFoundException(L"MgByteSink.ToFile",
+                throw new MgException(MgExceptionCodes::MgFileNotFoundException, \
                L"MgByteSink.ToFile",
                     __LINE__, __WFILE__, &arguments, L"MgFileIoErrNo", &errNoArgs);
             }
             else
             {
                 MG_FILE_IO_EXCEPTION_ADD_ERRNO();
-                throw new MgFileIoException(L"MgByteSink.ToFile",
+                throw new MgException(MgExceptionCodes::MgFileIoException, \
                L"MgByteSink.ToFile",
                     __LINE__, __WFILE__, &arguments, L"MgFileIoErrNo", &errNoArgs);
             }
         }
@@ -247,7 +247,7 @@
                 MgStringCollection arguments;
                 arguments.Add(filename);
 
-                throw new MgFileIoException(L"MgByteSink.ToFile",
+                throw new MgException(MgExceptionCodes::MgFileIoException, \
L"MgByteSink.ToFile",  __LINE__, __WFILE__, &arguments, L"", NULL);
             }
         }

Modified: trunk/MgDev/Common/Foundation/Data/ByteSource.cpp
===================================================================
--- trunk/MgDev/Common/Foundation/Data/ByteSource.cpp	2022-09-15 10:14:11 UTC (rev \
                9970)
+++ trunk/MgDev/Common/Foundation/Data/ByteSource.cpp	2022-10-10 09:40:18 UTC (rev \
9971) @@ -40,7 +40,7 @@
 {
     if ((m_sourceImpl = new ByteSourceFileImpl(file)) == NULL)
     {
-        throw new MgOutOfMemoryException(L"MgByteSource.MgByteSource",
+        throw new MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgByteSource.MgByteSource",  __LINE__, __WFILE__, NULL, L"", NULL);
     }
 }
@@ -49,7 +49,7 @@
 {
     if ((m_sourceImpl = new ByteSourceFileImpl(file, temporary)) == NULL)
     {
-        throw new MgOutOfMemoryException(L"MgByteSource.MgByteSource",
+        throw new MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgByteSource.MgByteSource",  __LINE__, __WFILE__, NULL, L"", NULL);
     }
 }
@@ -69,7 +69,7 @@
 {
     if ((m_sourceImpl = new ByteSourceMemoryImpl(stream, length)) == NULL)
     {
-        throw new MgOutOfMemoryException(L"MgByteSource.MgByteSource",
+        throw new MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgByteSource.MgByteSource",  __LINE__, __WFILE__, NULL, L"", NULL);
     }
 }
@@ -141,7 +141,7 @@
 {
     if ((m_sourceImpl = new ByteSourceMemoryImpl(bytes)) == NULL)
     {
-        throw new MgOutOfMemoryException(L"MgByteSource.MgByteSource",
+        throw new MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgByteSource.MgByteSource",  __LINE__, __WFILE__, NULL, L"", NULL);
     }
 }

Modified: trunk/MgDev/Common/Foundation/Data/DateTime.cpp
===================================================================
--- trunk/MgDev/Common/Foundation/Data/DateTime.cpp	2022-09-15 10:14:11 UTC (rev \
                9970)
+++ trunk/MgDev/Common/Foundation/Data/DateTime.cpp	2022-10-10 09:40:18 UTC (rev \
9971) @@ -170,7 +170,7 @@
         arguments.Add(L"1");
         arguments.Add(fdoDateTime);
 
-        throw new MgInvalidArgumentException(L"MgDateTime.MgDateTime",
+        throw new MgException(MgExceptionCodes::MgInvalidArgumentException, \
                L"MgDateTime.MgDateTime",
             __LINE__, __WFILE__, &arguments, L"MgInvalidFdoDateTime", NULL);
     }
 
@@ -223,7 +223,7 @@
         arguments.Add(L"1");
         arguments.Add(buffer);
 
-        throw new MgInvalidArgumentException(L"MgDateTime.MgDateTime",
+        throw new MgException(MgExceptionCodes::MgInvalidArgumentException, \
                L"MgDateTime.MgDateTime",
             __LINE__, __WFILE__, &arguments, L"MgInvalidXmlDateTime", NULL);
     }
 
@@ -419,7 +419,7 @@
         arguments.Add(L"1");
         arguments.Add(buffer);
 
-        throw new MgInvalidArgumentException(L"MgDateTime.SetDay",
+        throw new MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgDateTime.SetDay",  __LINE__, __WFILE__, &arguments, L"MgInvalidDay", NULL);
     }
 
@@ -439,7 +439,7 @@
         arguments.Add(L"1");
         arguments.Add(buffer);
 
-        throw new MgInvalidArgumentException(L"MgDateTime.SetMonth",
+        throw new MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgDateTime.SetMonth",  __LINE__, __WFILE__, &arguments, L"MgInvalidMonth", NULL);
     }
 
@@ -459,7 +459,7 @@
         arguments.Add(L"1");
         arguments.Add(buffer);
 
-        throw new MgInvalidArgumentException(L"MgDateTime.SetYear",
+        throw new MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgDateTime.SetYear",  __LINE__, __WFILE__, &arguments, L"MgInvalidYear", NULL);
     }
 
@@ -479,7 +479,7 @@
         arguments.Add(L"1");
         arguments.Add(buffer);
 
-        throw new MgInvalidArgumentException(L"MgDateTime.SetHour",
+        throw new MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgDateTime.SetHour",  __LINE__, __WFILE__, &arguments, L"MgInvalidHour", NULL);
     }
 
@@ -499,7 +499,7 @@
         arguments.Add(L"1");
         arguments.Add(buffer);
 
-        throw new MgInvalidArgumentException(L"MgDateTime.SetMinute",
+        throw new MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgDateTime.SetMinute",  __LINE__, __WFILE__, &arguments, L"MgInvalidMinute", NULL);
     }
 
@@ -519,7 +519,7 @@
         arguments.Add(L"1");
         arguments.Add(buffer);
 
-        throw new MgInvalidArgumentException(L"MgDateTime.SetSecond",
+        throw new MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgDateTime.SetSecond",  __LINE__, __WFILE__, &arguments, L"MgInvalidSecond", NULL);
     }
 
@@ -539,7 +539,7 @@
         arguments.Add(L"1");
         arguments.Add(buffer);
 
-        throw new MgInvalidArgumentException(L"MgDateTime.SetMicrosecond",
+        throw new MgException(MgExceptionCodes::MgInvalidArgumentException, \
                L"MgDateTime.SetMicrosecond",
             __LINE__, __WFILE__, &arguments, L"MgInvalidMicroSecond", NULL);
     }
 
@@ -759,7 +759,7 @@
     }
     else
     {
-        throw new MgDateTimeException(L"MgDateTime.ToString",
+        throw new MgException(MgExceptionCodes::MgDateTimeException, \
L"MgDateTime.ToString",  __LINE__, __WFILE__, NULL, L"", NULL);
     }
 
@@ -855,7 +855,7 @@
 
     if (timeValue < 0)
     {
-        throw new MgOutOfRangeException(L"MgDateTime.ToTimeValue",
+        throw new MgException(MgExceptionCodes::MgOutOfRangeException, \
L"MgDateTime.ToTimeValue",  __LINE__, __WFILE__, NULL, L"", NULL);
     }
 
@@ -1127,7 +1127,7 @@
         arguments.Add(L"1");
         arguments.Add(buffer);
 
-        throw new MgInvalidArgumentException(L"MgDateTime.ValidateDate",
+        throw new MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgDateTime.ValidateDate",  __LINE__, __WFILE__, &arguments, L"MgInvalidYear", \
NULL);  }
 
@@ -1140,7 +1140,7 @@
         arguments.Add(L"2");
         arguments.Add(buffer);
 
-        throw new MgInvalidArgumentException(L"MgDateTime.ValidateDate",
+        throw new MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgDateTime.ValidateDate",  __LINE__, __WFILE__, &arguments, L"MgInvalidMonth", \
NULL);  }
 
@@ -1157,7 +1157,7 @@
         arguments.Add(L"3");
         arguments.Add(buffer);
 
-        throw new MgInvalidArgumentException(L"MgDateTime.ValidateDate",
+        throw new MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgDateTime.ValidateDate",  __LINE__, __WFILE__, &arguments, L"MgInvalidDay", NULL);
     }
 }
@@ -1173,7 +1173,7 @@
         arguments.Add(L"1");
         arguments.Add(buffer);
 
-        throw new MgInvalidArgumentException(L"MgDateTime.ValidateTime",
+        throw new MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgDateTime.ValidateTime",  __LINE__, __WFILE__, &arguments, L"MgInvalidHour", \
NULL);  }
 
@@ -1186,7 +1186,7 @@
         arguments.Add(L"2");
         arguments.Add(buffer);
 
-        throw new MgInvalidArgumentException(L"MgDateTime.ValidateTime",
+        throw new MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgDateTime.ValidateTime",  __LINE__, __WFILE__, &arguments, L"MgInvalidMinute", \
NULL);  }
 
@@ -1199,7 +1199,7 @@
         arguments.Add(L"3");
         arguments.Add(buffer);
 
-        throw new MgInvalidArgumentException(L"MgDateTime.ValidateTime",
+        throw new MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgDateTime.ValidateTime",  __LINE__, __WFILE__, &arguments, L"MgInvalidSecond", \
NULL);  }
 
@@ -1212,7 +1212,7 @@
         arguments.Add(L"4");
         arguments.Add(buffer);
 
-        throw new MgInvalidArgumentException(L"MgDateTime.ValidateTime",
+        throw new MgException(MgExceptionCodes::MgInvalidArgumentException, \
                L"MgDateTime.ValidateTime",
             __LINE__, __WFILE__, &arguments, L"MgInvalidMicroSecond", NULL);
     }
 }
@@ -1238,7 +1238,7 @@
     }
     else
     {
-        throw new MgDateTimeException(L"MgDateTime.Validate",
+        throw new MgException(MgExceptionCodes::MgDateTimeException, \
L"MgDateTime.Validate",  __LINE__, __WFILE__, NULL, L"", NULL);
     }
 }

Modified: trunk/MgDev/Common/Foundation/Data/NamedCollection.cpp
===================================================================
--- trunk/MgDev/Common/Foundation/Data/NamedCollection.cpp	2022-09-15 10:14:11 UTC \
                (rev 9970)
+++ trunk/MgDev/Common/Foundation/Data/NamedCollection.cpp	2022-10-10 09:40:18 UTC \
(rev 9971) @@ -115,7 +115,7 @@
     {
         MgStringCollection args;
         args.Add(name);
-        throw new MgObjectNotFoundException(L"GetItem", __LINE__, __WFILE__, NULL, \
L"MgNoNameForObject", &args); // \
EXC::Create(Exception::NLSGetMessage(NLSID(38_ITEMNOTFOUND),name)); +        throw \
new MgException(MgExceptionCodes::MgObjectNotFoundException, L"GetItem", __LINE__, \
__WFILE__, NULL, L"MgNoNameForObject", &args); // \
EXC::Create(Exception::NLSGetMessage(NLSID(38_ITEMNOTFOUND),name));  }
 
     return item;
@@ -387,7 +387,7 @@
         arguments.Add(L"1");
         arguments.Add(MgResources::BlankArgument);
 
-        throw new MgInvalidArgumentException(L"MgNamedCollection.IndexOf",
+        throw new MgException(MgExceptionCodes::MgInvalidArgumentException, \
                L"MgNamedCollection.IndexOf",
             __LINE__, __WFILE__, &arguments, L"MgStringEmpty", NULL); // \
EXC::Create(Exception::NLSGetMessage(NLSID(2_BADPARAMETER)));  }
 
@@ -418,7 +418,7 @@
 /// </returns>
 MgByteReader* MgNamedCollection::ToXml()
 {
-    throw new MgNotImplementedException(L"MgNamedCollection.ToXml", __LINE__, \
__WFILE__, NULL, L"", NULL); +    throw new \
MgException(MgExceptionCodes::MgNotImplementedException, L"MgNamedCollection.ToXml", \
__LINE__, __WFILE__, NULL, L"", NULL);  
     return NULL;
 }
@@ -498,7 +498,7 @@
         {
             MgStringCollection args;
             args.Add(item->GetName());
-            throw new MgDuplicateObjectException(L"CheckDuplicate", __LINE__, \
__WFILE__, NULL, L"MgDuplicateObject", &args); // \
EXC::Create(Exception::NLSGetMessage(NLSID(45_ITEMINCOLLECTION),(String*) \
item->GetName())); +            throw new \
MgException(MgExceptionCodes::MgDuplicateObjectException, L"CheckDuplicate", \
__LINE__, __WFILE__, NULL, L"MgDuplicateObject", &args); // \
EXC::Create(Exception::NLSGetMessage(NLSID(45_ITEMINCOLLECTION),(String*) \
item->GetName()));  }
     }
 }

Modified: trunk/MgDev/Common/Foundation/Data/NullableProperty.cpp
===================================================================
--- trunk/MgDev/Common/Foundation/Data/NullableProperty.cpp	2022-09-15 10:14:11 UTC \
                (rev 9970)
+++ trunk/MgDev/Common/Foundation/Data/NullableProperty.cpp	2022-10-10 09:40:18 UTC \
(rev 9971) @@ -69,7 +69,7 @@
         MgStringCollection arguments;
         arguments.Add(this->GetName());
 
-        throw new MgNullPropertyValueException(L"MgNullableProperty.CheckNull",
+        throw new MgException(MgExceptionCodes::MgNullPropertyValueException, \
L"MgNullableProperty.CheckNull",  __LINE__, __WFILE__, &arguments, L"", NULL);
     }
 }

Modified: trunk/MgDev/Common/Foundation/Data/Property.cpp
===================================================================
--- trunk/MgDev/Common/Foundation/Data/Property.cpp	2022-09-15 10:14:11 UTC (rev \
                9970)
+++ trunk/MgDev/Common/Foundation/Data/Property.cpp	2022-10-10 09:40:18 UTC (rev \
9971) @@ -69,7 +69,7 @@
         arguments.Add(L"1");
         arguments.Add(MgResources::BlankArgument);
 
-        throw new MgInvalidArgumentException(L"MgProperty.SetName",
+        throw new MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgProperty.SetName",  __LINE__, __WFILE__, &arguments, L"MgStringEmpty", NULL);
     }
 

Modified: trunk/MgDev/Common/Foundation/Data/PropertyDefinition.cpp
===================================================================
--- trunk/MgDev/Common/Foundation/Data/PropertyDefinition.cpp	2022-09-15 10:14:11 UTC \
                (rev 9970)
+++ trunk/MgDev/Common/Foundation/Data/PropertyDefinition.cpp	2022-10-10 09:40:18 UTC \
(rev 9971) @@ -51,7 +51,7 @@
 
     if (propType.empty())
     {
-        throw new MgInvalidPropertyTypeException(L"MgPropertyDefinition.MgPropertyDefinition", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidPropertyTypeException, \
L"MgPropertyDefinition.MgPropertyDefinition", __LINE__, __WFILE__, NULL, L"", NULL);  \
}  
     m_propertyType = type;

Modified: trunk/MgDev/Common/Foundation/Data/StringCollection.cpp
===================================================================
--- trunk/MgDev/Common/Foundation/Data/StringCollection.cpp	2022-09-15 10:14:11 UTC \
                (rev 9970)
+++ trunk/MgDev/Common/Foundation/Data/StringCollection.cpp	2022-10-10 09:40:18 UTC \
(rev 9971) @@ -351,7 +351,7 @@
         arguments.Add(L"1");
         arguments.Add(buffer);
 
-        throw new MgIndexOutOfRangeException(L"MgStringCollection.ValidateIndex",
+        throw new MgException(MgExceptionCodes::MgIndexOutOfRangeException, \
                L"MgStringCollection.ValidateIndex",
             __LINE__, __WFILE__, &arguments, L"MgInvalidValueTooBig", NULL);
     }
     else if (index < 0)
@@ -363,7 +363,7 @@
         arguments.Add(L"1");
         arguments.Add(buffer);
 
-        throw new MgIndexOutOfRangeException(L"MgStringCollection.ValidateIndex",
+        throw new MgException(MgExceptionCodes::MgIndexOutOfRangeException, \
                L"MgStringCollection.ValidateIndex",
             __LINE__, __WFILE__, &arguments, L"MgInvalidValueTooSmall", NULL);
     }
 }

Deleted: trunk/MgDev/Common/Foundation/Exception/ApplicationException.cpp
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/ApplicationException.cpp	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/ApplicationException.cpp	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -1,40 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_ABSTRACT(MgApplicationException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgApplicationException object.
-///
-MgApplicationException::MgApplicationException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgApplicationException::~MgApplicationException() throw()
-{
-}

Deleted: trunk/MgDev/Common/Foundation/Exception/ApplicationException.h
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/ApplicationException.h	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/ApplicationException.h	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -1,74 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#ifndef MG_APPLICATION_EXCEPTION_H_
-#define MG_APPLICATION_EXCEPTION_H_
-
-/// \ingroup Exceptions_Module
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Base class for all exceptions representing an application error.
-///
-/// \remarks
-/// This exception is not thrown directly.
-/// Instead an exception derived from it is used, such as
-/// MgConnectionFailedException.
-///
-class MG_FOUNDATION_API MgApplicationException : public MgException
-{
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgApplicationException object.
-    ///
-    virtual ~MgApplicationException() throw();
-
-protected:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgApplicationException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the \
                exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the \
                exception occurs.
-    ///
-    MgApplicationException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_ABSTRACT(MgApplicationException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Foundation_Exception_MgApplicationException;
-};
-
-#endif

Deleted: trunk/MgDev/Common/Foundation/Exception/ArgumentOutOfRangeException.cpp
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/ArgumentOutOfRangeException.cpp	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/ArgumentOutOfRangeException.cpp	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -1,40 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgArgumentOutOfRangeException, MgOutOfRangeException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgArgumentOutOfRangeException object.
-///
-MgArgumentOutOfRangeException::MgArgumentOutOfRangeException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgOutOfRangeException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgArgumentOutOfRangeException::~MgArgumentOutOfRangeException() throw()
-{
-}

Deleted: trunk/MgDev/Common/Foundation/Exception/ArgumentOutOfRangeException.h
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/ArgumentOutOfRangeException.h	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/ArgumentOutOfRangeException.h	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -1,70 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#ifndef MG_ARGUMENT_OUT_OF_RANGE_EXCEPTION_H_
-#define MG_ARGUMENT_OUT_OF_RANGE_EXCEPTION_H_
-
-/// \ingroup Exceptions_Module
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when the value of an argument is
-/// outside the allowable range of values as defined by the invoked method.
-///
-class MG_FOUNDATION_API MgArgumentOutOfRangeException : public MgOutOfRangeException
-{
-    DECLARE_CLASSNAME(MgArgumentOutOfRangeException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgArgumentOutOfRangeException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the \
                exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the \
                exception occurs.
-    ///
-    MgArgumentOutOfRangeException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgArgumentOutOfRangeException object.
-    ///
-    virtual ~MgArgumentOutOfRangeException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgArgumentOutOfRangeException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = \
                Foundation_Exception_MgArgumentOutOfRangeException;
-};
-
-#endif

Deleted: trunk/MgDev/Common/Foundation/Exception/ClassNotFoundException.cpp
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/ClassNotFoundException.cpp	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/ClassNotFoundException.cpp	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -1,40 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgClassNotFoundException, MgSystemException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgClassNotFoundException object.
-///
-MgClassNotFoundException::MgClassNotFoundException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgSystemException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgClassNotFoundException::~MgClassNotFoundException() throw()
-{
-}

Deleted: trunk/MgDev/Common/Foundation/Exception/ClassNotFoundException.h
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/ClassNotFoundException.h	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/ClassNotFoundException.h	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -1,69 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#ifndef MG_CLASS_NOT_FOUND_EXCEPTION_H_
-#define MG_CLASS_NOT_FOUND_EXCEPTION_H_
-
-/// \ingroup Exceptions_Module
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when attempting to create an invalid class.
-///
-class MG_FOUNDATION_API MgClassNotFoundException : public MgSystemException
-{
-    DECLARE_CLASSNAME(MgClassNotFoundException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgClassNotFoundException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the \
                exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the \
                exception occurs.
-    ///
-    MgClassNotFoundException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgClassNotFoundException object.
-    ///
-    virtual ~MgClassNotFoundException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgClassNotFoundException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Foundation_Exception_MgClassNotFoundException;
-};
-
-#endif

Deleted: trunk/MgDev/Common/Foundation/Exception/ConfigurationException.cpp
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/ConfigurationException.cpp	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/ConfigurationException.cpp	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -1,40 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgConfigurationException, MgApplicationException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgConfigurationException object.
-///
-MgConfigurationException::MgConfigurationException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgApplicationException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgConfigurationException::~MgConfigurationException() throw()
-{
-}

Deleted: trunk/MgDev/Common/Foundation/Exception/ConfigurationException.h
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/ConfigurationException.h	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/ConfigurationException.h	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -1,72 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#ifndef MG_CONFIGURATION_EXCEPTION_H_
-#define MG_CONFIGURATION_EXCEPTION_H_
-
-/// \ingroup Exceptions_Module
-
-#include "Foundation.h"
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when an error occurs in a configuration file, possibly due to invalid \
                parameters
-/// or a missing file.
-///
-class MG_FOUNDATION_API MgConfigurationException : public MgApplicationException
-{
-    DECLARE_CLASSNAME(MgConfigurationException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgConfigurationException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the \
                exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the \
                exception occurs.
-    ///
-    MgConfigurationException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgConfigurationException object.
-    ///
-    virtual ~MgConfigurationException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgConfigurationException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Foundation_Exception_MgConfigurationException;
-};
-
-#endif

Deleted: trunk/MgDev/Common/Foundation/Exception/ConfigurationLoadFailedException.cpp
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/ConfigurationLoadFailedException.cpp	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/ConfigurationLoadFailedException.cpp	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -1,49 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgConfigurationLoadFailedException, \
                MgApplicationException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgConfigurationLoadFailedException object.
-///
-MgConfigurationLoadFailedException::MgConfigurationLoadFailedException(CREFSTRING \
                methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgApplicationException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgConfigurationLoadFailedException::~MgConfigurationLoadFailedException() throw()
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Retrieve the formatted exception message for the specified locale.
-///
-STRING MgConfigurationLoadFailedException::GetExceptionMessage(CREFSTRING locale) \
                throw()
-{
-    return MgException::GetExceptionMessage(locale, \
                MgResources::FailedToLoadConfigurationFile);
-}

Deleted: trunk/MgDev/Common/Foundation/Exception/ConfigurationLoadFailedException.h
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/ConfigurationLoadFailedException.h	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/ConfigurationLoadFailedException.h	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -1,83 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#ifndef MG_CONFIGURATION_LOAD_FAILED_EXCEPTION_H_
-#define MG_CONFIGURATION_LOAD_FAILED_EXCEPTION_H_
-
-/// \cond INTERNAL
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when a configuration file cannot be loaded.
-///
-class MG_FOUNDATION_API MgConfigurationLoadFailedException : public \
                MgApplicationException
-{
-    DECLARE_CLASSNAME(MgConfigurationLoadFailedException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgConfigurationLoadFailedException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the \
                exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the \
                exception occurs.
-    ///
-    MgConfigurationLoadFailedException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgConfigurationLoadFailedException object.
-    ///
-    virtual ~MgConfigurationLoadFailedException() throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Retrieve the formatted exception message for the specified locale.
-    ///
-    /// \param locale
-    /// The locale identifier to format the details text.
-    /// Locale codes are 2 letters language codes defined by ISO 639-1.
-    /// Please refer to  http://www.loc.gov/standards/iso639-2/englangn.html
-    ///
-    /// \return
-    /// Formatted exception message
-    ///
-    virtual STRING GetExceptionMessage(CREFSTRING locale) throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgConfigurationLoadFailedException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = \
                Foundation_Exception_MgConfigurationLoadFailedException;
-};
-/// \endcond
-
-#endif

Deleted: trunk/MgDev/Common/Foundation/Exception/ConfigurationSaveFailedException.cpp
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/ConfigurationSaveFailedException.cpp	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/ConfigurationSaveFailedException.cpp	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -1,40 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgConfigurationSaveFailedException, \
                MgApplicationException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgConfigurationSaveFailedException object.
-///
-MgConfigurationSaveFailedException::MgConfigurationSaveFailedException(CREFSTRING \
                methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgApplicationException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgConfigurationSaveFailedException::~MgConfigurationSaveFailedException() throw()
-{
-}

Deleted: trunk/MgDev/Common/Foundation/Exception/ConfigurationSaveFailedException.h
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/ConfigurationSaveFailedException.h	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/ConfigurationSaveFailedException.h	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -1,69 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#ifndef MG_CONFIGURATION_SAVE_FAILED_EXCEPTION_H_
-#define MG_CONFIGURATION_SAVE_FAILED_EXCEPTION_H_
-
-/// \cond INTERNAL
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when a configuration file cannot be saved.
-///
-class MG_FOUNDATION_API MgConfigurationSaveFailedException : public \
                MgApplicationException
-{
-    DECLARE_CLASSNAME(MgConfigurationSaveFailedException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgConfigurationLoadFailedException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the \
                exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the \
                exception occurs.
-    ///
-    MgConfigurationSaveFailedException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgConfigurationSaveFailedException object.
-    ///
-    virtual ~MgConfigurationSaveFailedException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgConfigurationSaveFailedException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = \
                Foundation_Exception_MgConfigurationSaveFailedException;
-};
-/// \endcond
-
-#endif

Deleted: trunk/MgDev/Common/Foundation/Exception/DateTimeException.cpp
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/DateTimeException.cpp	2022-09-15 10:14:11 \
                UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/DateTimeException.cpp	2022-10-10 09:40:18 \
UTC (rev 9971) @@ -1,40 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgDateTimeException, MgApplicationException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgDateTimeException object.
-///
-MgDateTimeException::MgDateTimeException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgApplicationException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the MgDateTimeException object.
-///
-MgDateTimeException::~MgDateTimeException() throw()
-{
-}

Deleted: trunk/MgDev/Common/Foundation/Exception/DateTimeException.h
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/DateTimeException.h	2022-09-15 10:14:11 \
                UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/DateTimeException.h	2022-10-10 09:40:18 \
UTC (rev 9971) @@ -1,69 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-/// \ingroup Exceptions_Module
-
-#ifndef MG_DATE_TIME_EXCEPTION_H_
-#define MG_DATE_TIME_EXCEPTION_H_
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when an error occurs in a date/time routine.
-///
-class MG_FOUNDATION_API MgDateTimeException : public MgApplicationException
-{
-    DECLARE_CLASSNAME(MgDateTimeException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgDateTimeException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the \
                exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the \
                exception occurs.
-    ///
-    MgDateTimeException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destruct the MgDateTimeException object.
-    ///
-    virtual ~MgDateTimeException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgDateTimeException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Foundation_Exception_MgDateTimeException;
-};
-
-#endif

Deleted: trunk/MgDev/Common/Foundation/Exception/DecryptionException.cpp
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/DecryptionException.cpp	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/DecryptionException.cpp	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -1,40 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgDecryptionException, MgApplicationException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgDecryptionException object.
-///
-MgDecryptionException::MgDecryptionException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgApplicationException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the MgDecryptionException object.
-///
-MgDecryptionException::~MgDecryptionException() throw()
-{
-}

Deleted: trunk/MgDev/Common/Foundation/Exception/DecryptionException.h
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/DecryptionException.h	2022-09-15 10:14:11 \
                UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/DecryptionException.h	2022-10-10 09:40:18 \
UTC (rev 9971) @@ -1,69 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-/// \ingroup Exceptions_Module
-
-#ifndef MG_DECRYPTION_EXCEPTION_H_
-#define MG_DECRYPTION_EXCEPTION_H_
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when a decryption error occurs.
-///
-class MG_FOUNDATION_API MgDecryptionException : public MgApplicationException
-{
-    DECLARE_CLASSNAME(MgDecryptionException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgDecryptionException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the \
                exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the \
                exception occurs.
-    ///
-    MgDecryptionException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destruct the MgDecryptionException object.
-    ///
-    virtual ~MgDecryptionException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgDecryptionException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Foundation_Exception_MgDecryptionException;
-};
-
-#endif

Deleted: trunk/MgDev/Common/Foundation/Exception/DirectoryNotFoundException.cpp
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/DirectoryNotFoundException.cpp	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/DirectoryNotFoundException.cpp	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -1,40 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgDirectoryNotFoundException, MgFileIoException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgDirectoryNotFoundException object.
-///
-MgDirectoryNotFoundException::MgDirectoryNotFoundException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgFileIoException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgDirectoryNotFoundException::~MgDirectoryNotFoundException() throw()
-{
-}

Deleted: trunk/MgDev/Common/Foundation/Exception/DirectoryNotFoundException.h
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/DirectoryNotFoundException.h	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/DirectoryNotFoundException.h	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -1,69 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#ifndef MG_DIRECTORY_NOT_FOUND_EXCEPTION_H_
-#define MG_DIRECTORY_NOT_FOUND_EXCEPTION_H_
-
-/// \ingroup Exceptions_Module
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when a directory cannot be found.
-///
-class MG_FOUNDATION_API MgDirectoryNotFoundException : public MgFileIoException
-{
-    DECLARE_CLASSNAME(MgDirectoryNotFoundException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgDirectoryNotFoundException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the \
                exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the \
                exception occurs.
-    ///
-    MgDirectoryNotFoundException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgDirectoryNotFoundException object.
-    ///
-    virtual ~MgDirectoryNotFoundException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgDirectoryNotFoundException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Foundation_Exception_MgDirectoryNotFoundException;
-};
-
-#endif

Deleted: trunk/MgDev/Common/Foundation/Exception/DivideByZeroException.cpp
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/DivideByZeroException.cpp	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/DivideByZeroException.cpp	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -1,40 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgDivideByZeroException, MgSystemException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgDivideByZeroException object.
-///
-MgDivideByZeroException::MgDivideByZeroException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgSystemException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgDivideByZeroException::~MgDivideByZeroException() throw()
-{
-}

Deleted: trunk/MgDev/Common/Foundation/Exception/DivideByZeroException.h
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/DivideByZeroException.h	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/DivideByZeroException.h	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -1,69 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#ifndef MG_DIVIDE_BY_ZERO_EXCEPTION_H_
-#define MG_DIVIDE_BY_ZERO_EXCEPTION_H_
-
-/// \ingroup Exceptions_Module
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when there is an attempt to divide an integral or decimal value by zero.
-///
-class MG_FOUNDATION_API MgDivideByZeroException : public MgSystemException
-{
-    DECLARE_CLASSNAME(MgDivideByZeroException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgDivideByZeroException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the \
                exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the \
                exception occurs.
-    ///
-    MgDivideByZeroException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgDivideByZeroException object.
-    ///
-    virtual ~MgDivideByZeroException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgDivideByZeroException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Foundation_Exception_MgDivideByZeroException;
-};
-
-#endif

Deleted: trunk/MgDev/Common/Foundation/Exception/DomainException.cpp
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/DomainException.cpp	2022-09-15 10:14:11 \
                UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/DomainException.cpp	2022-10-10 09:40:18 \
UTC (rev 9971) @@ -1,40 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgDomainException, MgSystemException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgDomainException object.
-///
-MgDomainException::MgDomainException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgSystemException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgDomainException::~MgDomainException() throw()
-{
-}

Deleted: trunk/MgDev/Common/Foundation/Exception/DomainException.h
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/DomainException.h	2022-09-15 10:14:11 UTC \
                (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/DomainException.h	2022-10-10 09:40:18 UTC \
(rev 9971) @@ -1,73 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#ifndef MG_DOMAIN_EXCEPTION_H_
-#define MG_DOMAIN_EXCEPTION_H_
-
-/// \ingroup Exceptions_Module
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when a value is used outside of its domain of definition.
-///
-/// \remarks
-/// For example, computing arccosine on a value whose absolute value is
-/// greater than one would raise a domain exception.
-///
-class MG_FOUNDATION_API MgDomainException : public MgSystemException
-{
-    DECLARE_CLASSNAME(MgDomainException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgDomainException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the \
                exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the \
                exception occurs.
-    ///
-    MgDomainException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgDomainException object.
-    ///
-    virtual ~MgDomainException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgDomainException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Foundation_Exception_MgDomainException;
-};
-
-#endif

Deleted: trunk/MgDev/Common/Foundation/Exception/DuplicateDirectoryException.cpp
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/DuplicateDirectoryException.cpp	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/DuplicateDirectoryException.cpp	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -1,40 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgDuplicateDirectoryException, MgApplicationException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgDuplicateDirectoryException object.
-///
-MgDuplicateDirectoryException::MgDuplicateDirectoryException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgApplicationException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the MgDuplicateDirectoryException object.
-///
-MgDuplicateDirectoryException::~MgDuplicateDirectoryException() throw()
-{
-}

Deleted: trunk/MgDev/Common/Foundation/Exception/DuplicateDirectoryException.h
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/DuplicateDirectoryException.h	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/DuplicateDirectoryException.h	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -1,69 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-/// \ingroup Exceptions_Module
-
-#ifndef MG_DUPLICATE_DIRECTORY_EXCEPTION_H_
-#define MG_DUPLICATE_DIRECTORY_EXCEPTION_H_
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when attempting to create a directory that already exists.
-///
-class MG_FOUNDATION_API MgDuplicateDirectoryException : public \
                MgApplicationException
-{
-    DECLARE_CLASSNAME(MgDuplicateDirectoryException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgDuplicateDirectoryException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the \
                exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the \
                exception occurs.
-    ///
-    MgDuplicateDirectoryException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destruct the MgDuplicateDirectoryException object.
-    ///
-    virtual ~MgDuplicateDirectoryException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgDuplicateDirectoryException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = \
                Foundation_Exception_MgDuplicateDirectoryException;
-};
-
-#endif

Deleted: trunk/MgDev/Common/Foundation/Exception/DuplicateFileException.cpp
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/DuplicateFileException.cpp	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/DuplicateFileException.cpp	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -1,40 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgDuplicateFileException, MgApplicationException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgDuplicateFileException object.
-///
-MgDuplicateFileException::MgDuplicateFileException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgApplicationException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the MgDuplicateFileException object.
-///
-MgDuplicateFileException::~MgDuplicateFileException() throw()
-{
-}

Deleted: trunk/MgDev/Common/Foundation/Exception/DuplicateFileException.h
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/DuplicateFileException.h	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/DuplicateFileException.h	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -1,69 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-/// \ingroup Exceptions_Module
-
-#ifndef MG_DUPLICATE_FILE_EXCEPTION_H_
-#define MG_DUPLICATE_FILE_EXCEPTION_H_
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when attempting to create a file that already exists.
-///
-class MG_FOUNDATION_API MgDuplicateFileException : public MgApplicationException
-{
-    DECLARE_CLASSNAME(MgDuplicateFileException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgDuplicateFileException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the \
                exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the \
                exception occurs.
-    ///
-    MgDuplicateFileException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destruct the MgDuplicateFileException object.
-    ///
-    virtual ~MgDuplicateFileException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgDuplicateFileException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Foundation_Exception_MgDuplicateFileException;
-};
-
-#endif

Deleted: trunk/MgDev/Common/Foundation/Exception/DuplicateObjectException.cpp
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/DuplicateObjectException.cpp	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/DuplicateObjectException.cpp	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -1,40 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgDuplicateObjectException, MgSystemException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgDuplicateNameException object.
-///
-MgDuplicateObjectException::MgDuplicateObjectException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgSystemException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgDuplicateObjectException::~MgDuplicateObjectException() throw()
-{
-}

Deleted: trunk/MgDev/Common/Foundation/Exception/DuplicateObjectException.h
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/DuplicateObjectException.h	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/DuplicateObjectException.h	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -1,69 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#ifndef MG_DUPLICATE_OBJECT_EXCEPTION_H_
-#define MG_DUPLICATE_OBJECT_EXCEPTION_H_
-
-/// \ingroup Exceptions_Module
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when a duplicate object is found.
-///
-class MG_FOUNDATION_API MgDuplicateObjectException : public MgSystemException
-{
-    DECLARE_CLASSNAME(MgDuplicateObjectException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgDuplicateObjectException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the \
                exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the \
                exception occurs.
-    ///
-    MgDuplicateObjectException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgDuplicateObjectException object.
-    ///
-    virtual ~MgDuplicateObjectException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgDuplicateObjectException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Foundation_Exception_MgDuplicateObjectException;
-};
-
-#endif

Deleted: trunk/MgDev/Common/Foundation/Exception/EncryptionException.cpp
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/EncryptionException.cpp	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/EncryptionException.cpp	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -1,40 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgEncryptionException, MgApplicationException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgEncryptionException object.
-///
-MgEncryptionException::MgEncryptionException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgApplicationException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the MgEncryptionException object.
-///
-MgEncryptionException::~MgEncryptionException() throw()
-{
-}

Deleted: trunk/MgDev/Common/Foundation/Exception/EncryptionException.h
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/EncryptionException.h	2022-09-15 10:14:11 \
                UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/EncryptionException.h	2022-10-10 09:40:18 \
UTC (rev 9971) @@ -1,69 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-/// \ingroup Exceptions_Module
-
-#ifndef MG_ENCRYPTION_EXCEPTION_H_
-#define MG_ENCRYPTION_EXCEPTION_H_
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when an encryption error is encountered.
-///
-class MG_FOUNDATION_API MgEncryptionException : public MgApplicationException
-{
-    DECLARE_CLASSNAME(MgEncryptionException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgEncryptionException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the \
                exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the \
                exception occurs.
-    ///
-    MgEncryptionException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destruct the MgEncryptionException object.
-    ///
-    virtual ~MgEncryptionException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgEncryptionException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Foundation_Exception_MgEncryptionException;
-};
-
-#endif

Modified: trunk/MgDev/Common/Foundation/Exception/Exception.cpp
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/Exception.cpp	2022-09-15 10:14:11 UTC \
                (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/Exception.cpp	2022-10-10 09:40:18 UTC \
(rev 9971) @@ -18,7 +18,7 @@
 #include "Foundation.h"
 
 
-IMPLEMENT_EXCEPTION_ABSTRACT(MgException)
+IMPLEMENT_EXCEPTION_DEFAULTS(MgException, _)
 
 MgException::LocaleCallbackFunc MgException::sm_localeCallbackFunc = NULL;
 
@@ -26,10 +26,12 @@
 /// \brief
 /// Construct a MgException.
 ///
-MgException::MgException(CREFSTRING methodName, INT32 lineNumber,
+MgException::MgException(CREFSTRING exceptionCode, CREFSTRING methodName, INT32 \
lineNumber,  CREFSTRING fileName, MgStringCollection* whatArguments,
     CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    m_whyMessageId(whyMessageId)
+    m_whyMessageId(whyMessageId),
+    m_code(exceptionCode),
+    m_nativeErrorCode(0)
 {
     MG_TRY()
 
@@ -213,6 +215,9 @@
     stream->WriteString(m_message);
     stream->WriteString(m_details);
     stream->WriteString(m_stackTrace);
+
+    stream->WriteString(m_code);
+    stream->WriteInt64(m_nativeErrorCode);
 }
 
 ///////////////////////////////////////////////////////////////////////////////
@@ -233,6 +238,9 @@
     stream->GetString(m_message);
     stream->GetString(m_details);
     stream->GetString(m_stackTrace);
+
+    stream->GetString(m_code);
+    stream->GetInt64(m_nativeErrorCode);
 }
 
 ///////////////////////////////////////////////////////////////////////////////
@@ -491,7 +499,7 @@
     if (m_message.empty())
     {
         m_message = FormatMessage(locale, MgResources::Resource_Exception_Section,
-            GetClassName(), &m_whatArguments);
+            m_code, &m_whatArguments);
 
         if (!m_whyMessageId.empty())
         {
@@ -610,3 +618,105 @@
 {
     sm_localeCallbackFunc = func;
 }
+
+STRING MgException::GetExceptionCode()
+{
+    return m_code;
+}
+
+MgException* MgException::Create(exception& stdLibException, CREFSTRING methodName, \
INT32 lineNumber, CREFSTRING fileName) throw() +{
+    // The following string conversion is used to detect whether or not
+    // the given error message is unicode compliant.
+    // Without this check, the server will not be able to serialize
+    // this exception object correctly.
+
+    STRING messageId;
+    MgStringCollection arguments;
+    bool unicodeCompliant = false;
+
+    MG_TRY()
+
+        STRING wcStr;
+
+        MgUtil::MultiByteToWideChar(stdLibException.what(), wcStr);
+        arguments.Add(wcStr);
+
+        unicodeCompliant = true;
+
+    MG_CATCH_AND_RELEASE()
+
+        if (unicodeCompliant)
+        {
+            messageId = L"MgFormatInnerExceptionMessage";
+        }
+        else
+        {
+            messageId = L"MgFailedToRetrieveSystemExceptionMesage";
+            arguments.Clear();
+        }
+
+    // Use typeid to determine the specific standard library exception type.
+    // An equivalent MgException* is returned.
+    // If typeid cannot determine the specific standard library exception type
+    // a new MgUnclassifiedException is returned.
+
+    if (typeid(stdLibException) == typeid(std::domain_error))
+    {
+        return new MgException(L"MgDomainException", methodName, lineNumber, \
fileName, NULL, messageId, &arguments); +    }
+    else if (typeid(stdLibException) == typeid(std::invalid_argument))
+    {
+        return new MgException(L"MgInvalidArgumentException", methodName, \
lineNumber, fileName, NULL, messageId, &arguments); +    }
+    else if (typeid(stdLibException) == typeid(std::length_error))
+    {
+        return new MgException(L"MgLengthException", methodName, lineNumber, \
fileName, NULL, messageId, &arguments); +    }
+    else if (typeid(stdLibException) == typeid(std::overflow_error))
+    {
+        return new MgException(L"MgOverflowException", methodName, lineNumber, \
fileName, NULL, messageId, &arguments); +    }
+    else if (typeid(stdLibException) == typeid(std::out_of_range)
+        || typeid(stdLibException) == typeid(std::range_error))
+    {
+        return new MgException(L"MgOutOfRangeException", methodName, lineNumber, \
fileName, NULL, messageId, &arguments); +    }
+    else if (typeid(stdLibException) == typeid(std::underflow_error))
+    {
+        return new MgException(L"MgUnderflowException", methodName, lineNumber, \
fileName, NULL, messageId, &arguments); +    }
+    else if (typeid(stdLibException) == typeid(std::bad_alloc))
+    {
+        return new MgException(L"MgOutOfMemoryException", methodName, lineNumber, \
fileName, NULL, messageId, &arguments); +    }
+    else if (typeid(stdLibException) == typeid(std::bad_cast))
+    {
+        return new MgException(L"MgInvalidCastException", methodName, lineNumber, \
fileName, NULL, messageId, &arguments); +    }
+    else if (typeid(stdLibException) == typeid(std::logic_error))
+    {
+        return new MgException(L"MgLogicException", methodName, lineNumber, \
fileName, NULL, messageId, &arguments); +    }
+    else if (typeid(stdLibException) == typeid(std::bad_exception)
+        || typeid(stdLibException) == typeid(std::bad_typeid)
+        || typeid(stdLibException) == typeid(std::ios_base::failure)
+        || typeid(stdLibException) == typeid(std::runtime_error))
+    {
+        return new MgException(L"MgRuntimeException", methodName, lineNumber, \
fileName, NULL, messageId, &arguments); +    }
+    else
+    {
+        return new MgException(L"MgUnclassifiedException", methodName, lineNumber, \
fileName, NULL, messageId, &arguments); +    }
+}
+
+void MgException::SetNativeErrorCode(INT64 nativeErrorCode)
+{
+    m_nativeErrorCode = nativeErrorCode;
+}
+
+INT64 MgException::GetNativeErrorCode()
+{
+    return m_nativeErrorCode;
+}
\ No newline at end of file

Modified: trunk/MgDev/Common/Foundation/Exception/Exception.h
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/Exception.h	2022-09-15 10:14:11 UTC (rev \
                9970)
+++ trunk/MgDev/Common/Foundation/Exception/Exception.h	2022-10-10 09:40:18 UTC (rev \
9971) @@ -35,18 +35,40 @@
 
     ///////////////////////////////////////////////////////////////////////////
     /// \brief
+    /// Retrieve the exception code for this exception
+    ///
+    /// <!-- Syntax in .Net, Java, and PHP -->
+    /// \htmlinclude DotNetSyntaxTop.html
+    /// string GetExceptionCode();
+    /// \htmlinclude SyntaxBottom.html
+    /// \htmlinclude JavaSyntaxTop.html
+    /// String GetExceptionCode();
+    /// \htmlinclude SyntaxBottom.html
+    /// \htmlinclude PHPSyntaxTop.html
+    /// string GetExceptionCode();
+    /// \htmlinclude SyntaxBottom.html
+    ///
+    /// \return
+    /// The exception code
+    ///
+    /// \since 4.0
+    ///
+    STRING GetExceptionCode();
+
+    ///////////////////////////////////////////////////////////////////////////
+    /// \brief
     /// Retrieve the formatted exception message.  This is the localized and
     /// end user readable string.
     ///
     /// <!-- Syntax in .Net, Java, and PHP -->
     /// \htmlinclude DotNetSyntaxTop.html
-    /// string GetExceptionMessage() throw();
+    /// string GetExceptionMessage();
     /// \htmlinclude SyntaxBottom.html
     /// \htmlinclude JavaSyntaxTop.html
-    /// String GetExceptionMessage() throw();
+    /// String GetExceptionMessage();
     /// \htmlinclude SyntaxBottom.html
     /// \htmlinclude PHPSyntaxTop.html
-    /// string GetExceptionMessage() throw();
+    /// string GetExceptionMessage();
     /// \htmlinclude SyntaxBottom.html
     ///
     /// \return
@@ -67,13 +89,13 @@
     ///
     /// <!-- Syntax in .Net, Java, and PHP -->
     /// \htmlinclude DotNetSyntaxTop.html
-    /// string GetDetails() throw();
+    /// string GetDetails();
     /// \htmlinclude SyntaxBottom.html
     /// \htmlinclude JavaSyntaxTop.html
-    /// String GetDetails() throw();
+    /// String GetDetails();
     /// \htmlinclude SyntaxBottom.html
     /// \htmlinclude PHPSyntaxTop.html
-    /// string GetDetails() throw();
+    /// string GetDetails();
     /// \htmlinclude SyntaxBottom.html
     ///
     /// \return
@@ -90,13 +112,13 @@
     ///
     /// <!-- Syntax in .Net, Java, and PHP -->
     /// \htmlinclude DotNetSyntaxTop.html
-    /// string GetStackTrace() throw();
+    /// string GetStackTrace();
     /// \htmlinclude SyntaxBottom.html
     /// \htmlinclude JavaSyntaxTop.html
-    /// String GetStackTrace() throw();
+    /// String GetStackTrace();
     /// \htmlinclude SyntaxBottom.html
     /// \htmlinclude PHPSyntaxTop.html
-    /// string GetStackTrace() throw();
+    /// string GetStackTrace();
     /// \htmlinclude SyntaxBottom.html
     ///
     /// \return
@@ -104,6 +126,29 @@
     ///
     STRING GetStackTrace() throw();
 
+    ///////////////////////////////////////////////////////////////////////////
+    /// \brief
+    /// Retrieve the native error code that may be set by errors from thirdparty
+    /// libraries
+    ///
+    /// <!-- Syntax in .Net, Java, and PHP -->
+    /// \htmlinclude DotNetSyntaxTop.html
+    /// string GetNativeErrorCode();
+    /// \htmlinclude SyntaxBottom.html
+    /// \htmlinclude JavaSyntaxTop.html
+    /// String GetNativeErrorCode();
+    /// \htmlinclude SyntaxBottom.html
+    /// \htmlinclude PHPSyntaxTop.html
+    /// string GetNativeErrorCode();
+    /// \htmlinclude SyntaxBottom.html
+    ///
+    /// \return
+    /// The native error code
+    ///
+    /// \since 4.0
+    ///
+    INT64 GetNativeErrorCode();
+
 EXTERNAL_API:
 
     ///////////////////////////////////////////////////////////////////////////
@@ -190,6 +235,21 @@
 
     ///////////////////////////////////////////////////////////////////////////
     /// \brief
+    /// Create a MgException from mapping a standard CPP exception to a MgException.
+    ///
+    static MgException* Create(std::exception& stdLibException, CREFSTRING \
methodName, INT32 lineNumber, CREFSTRING fileName) throw(); +
+    ///////////////////////////////////////////////////////////////////////////
+    /// \brief
+    /// Sets the native error code
+    /// 
+    /// \param nativeErrorCode
+    /// The native error code
+    ///
+    void SetNativeErrorCode(INT64 nativeErrorCode);
+
+    ///////////////////////////////////////////////////////////////////////////
+    /// \brief
     /// Serialize data to TCP/IP stream.
     ///
     /// \param stream
@@ -210,27 +270,6 @@
 
     ///////////////////////////////////////////////////////////////////////////
     /// \brief
-    /// Construct the object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the \
                exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the \
                exception occurs.
-    ///
-    MgException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
     /// Dispose this object.
     ///
     /// \return
@@ -320,6 +359,9 @@
 
 protected:
 
+    /// The exception code
+    STRING m_code;
+
     /// Collection of method names which trace the stack leading up to the \
exception.  MgStringCollection m_methodNames;
 
@@ -350,8 +392,34 @@
     /// The localized stack trace.
     STRING m_stackTrace;
 
+    /// The native error code
+    INT64 m_nativeErrorCode;
+
 INTERNAL_API:
 
+    ///////////////////////////////////////////////////////////////////////////
+    /// \brief
+    /// Construct the object.
+    ///
+    /// \param exceptionCode
+    /// The exception code
+    /// \param methodName
+    /// Name of the method where the exception occurred.
+    /// \param lineNumber
+    /// Line number where the exception occurred.
+    /// \param fileName
+    /// File name where the exception occurred.
+    /// \param whatArguments
+    /// Collection of arguments used to format the message that describes what the \
exception is. +    /// \param whyMessageId
+    /// ID of the message that describes why the exception occurs.
+    /// \param whyArguments
+    /// Collection of arguments used to format the message that describes why the \
exception occurs. +    ///
+    MgException(CREFSTRING exceptionCode, CREFSTRING methodName, INT32 lineNumber,
+        CREFSTRING fileName, MgStringCollection* whatArguments,
+        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
+
     typedef STRING (*LocaleCallbackFunc)();
 
     ///////////////////////////////////////////////////////////////////////////////
@@ -361,13 +429,14 @@
     ///
     static void RegisterLocaleCallback(LocaleCallbackFunc func);
 
-
-    DECLARE_EXCEPTION_ABSTRACT(MgException)
-
 private:
 
     static LocaleCallbackFunc sm_localeCallbackFunc;
 
+INTERNAL_API:
+
+    DECLARE_EXCEPTION_DEFAULTS(MgException)
+
 CLASS_ID:
 
     static const INT32 m_cls_id = Foundation_Exception_MgException;

Copied: trunk/MgDev/Common/Foundation/Exception/ExceptionCodes.cpp (from rev 9755, \
sandbox/jng/flatten_exceptions/Common/Foundation/Exception/ExceptionCodes.cpp) \
                ===================================================================
--- trunk/MgDev/Common/Foundation/Exception/ExceptionCodes.cpp	                       \
                (rev 0)
+++ trunk/MgDev/Common/Foundation/Exception/ExceptionCodes.cpp	2022-10-10 09:40:18 \
UTC (rev 9971) @@ -0,0 +1,173 @@
+//
+//  Copyright (C) 2004-2020 by Autodesk, Inc.
+//
+//  This library is free software; you can redistribute it and/or
+//  modify it under the terms of version 2.1 of the GNU Lesser
+//  General Public License as published by the Free Software Foundation.
+//
+//  This library is distributed in the hope that it will be useful,
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+//  Lesser General Public License for more details.
+//
+//  You should have received a copy of the GNU Lesser General Public
+//  License along with this library; if not, write to the Free Software
+//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+//
+
+#include "ExceptionCodes.h"
+
+/*
+For ease of regeneration in the future:
+
+ 1. Copy the [Exceptions] section of mapguide_en.res out to exceptions.txt
+ 2. In a bash-compatible shell, run:
+
+  cat exceptions.txt | awk '{print "static const STRING " $1 ";     ///\\if INTERNAL \
value(\"" $1 "\") \\endif" }' > cppdecls.txt +  cat exceptions.txt | awk '{print \
"const STRING MgExceptionCodes::" $1 " = L\"" $1 "\";" }' > cppimpl.txt +
+ 3. Copy/paste the contents of cppdecls.txt into the class body of MgExceptionCodes, \
replacing existing content + 4. Copy/paste the contents of cppimpl.txt into this \
file, replacing existing content +*/
+
+const STRING MgExceptionCodes::MgAllProviderConnectionsUsedException = \
L"MgAllProviderConnectionsUsedException"; +const STRING \
MgExceptionCodes::MgArgumentOutOfRangeException = L"MgArgumentOutOfRangeException"; \
+const STRING MgExceptionCodes::MgArrayTypeMismatchException = \
L"MgArrayTypeMismatchException"; +const STRING \
MgExceptionCodes::MgAuthenticationFailedException = \
L"MgAuthenticationFailedException"; +const STRING \
MgExceptionCodes::MgClassNotFoundException = L"MgClassNotFoundException"; +const \
STRING MgExceptionCodes::MgConfigurationException = L"MgConfigurationException"; \
+const STRING MgExceptionCodes::MgConfigurationSaveFailedException = \
L"MgConfigurationSaveFailedException"; +const STRING \
MgExceptionCodes::MgConnectionFailedException = L"MgConnectionFailedException"; \
+const STRING MgExceptionCodes::MgConnectionNotOpenException = \
L"MgConnectionNotOpenException"; +const STRING \
MgExceptionCodes::MgCoordinateSystemComputationFailedException = \
L"MgCoordinateSystemComputationFailedException"; +const STRING \
MgExceptionCodes::MgCoordinateSystemConversionFailedException = \
L"MgCoordinateSystemConversionFailedException"; +const STRING \
MgExceptionCodes::MgCoordinateSystemInitializationFailedException = \
L"MgCoordinateSystemInitializationFailedException"; +const STRING \
MgExceptionCodes::MgCoordinateSystemLoadFailedException = \
L"MgCoordinateSystemLoadFailedException"; +const STRING \
MgExceptionCodes::MgCoordinateSystemMeasureFailedException = \
L"MgCoordinateSystemMeasureFailedException"; +const STRING \
MgExceptionCodes::MgCoordinateSystemTransformFailedException = \
L"MgCoordinateSystemTransformFailedException"; +const STRING \
MgExceptionCodes::MgDateTimeException = L"MgDateTimeException"; +const STRING \
MgExceptionCodes::MgDbException = L"MgDbException"; +const STRING \
MgExceptionCodes::MgDbXmlException = L"MgDbXmlException"; +const STRING \
MgExceptionCodes::MgDecryptionException = L"MgDecryptionException"; +const STRING \
MgExceptionCodes::MgDirectoryNotFoundException = L"MgDirectoryNotFoundException"; \
+const STRING MgExceptionCodes::MgDivideByZeroException = L"MgDivideByZeroException"; \
+const STRING MgExceptionCodes::MgDomainException = L"MgDomainException"; +const \
STRING MgExceptionCodes::MgDuplicateDirectoryException = \
L"MgDuplicateDirectoryException"; +const STRING \
MgExceptionCodes::MgDuplicateFileException = L"MgDuplicateFileException"; +const \
STRING MgExceptionCodes::MgDuplicateGroupException = L"MgDuplicateGroupException"; \
+const STRING MgExceptionCodes::MgDuplicateNameException = \
L"MgDuplicateNameException"; +const STRING \
MgExceptionCodes::MgDuplicateObjectException = L"MgDuplicateObjectException"; +const \
STRING MgExceptionCodes::MgDuplicateParameterException = \
L"MgDuplicateParameterException"; +const STRING \
MgExceptionCodes::MgDuplicateRepositoryException = L"MgDuplicateRepositoryException"; \
+const STRING MgExceptionCodes::MgDuplicateResourceDataException = \
L"MgDuplicateResourceDataException"; +const STRING \
MgExceptionCodes::MgDuplicateResourceException = L"MgDuplicateResourceException"; \
+const STRING MgExceptionCodes::MgDuplicateRoleException = \
L"MgDuplicateRoleException"; +const STRING \
MgExceptionCodes::MgDuplicateServerException = L"MgDuplicateServerException"; +const \
STRING MgExceptionCodes::MgDuplicateSessionException = \
L"MgDuplicateSessionException"; +const STRING \
MgExceptionCodes::MgDuplicateUserException = L"MgDuplicateUserException"; +const \
STRING MgExceptionCodes::MgDwfException = L"MgDwfException"; +const STRING \
MgExceptionCodes::MgDwfSectionNotFoundException = L"MgDwfSectionNotFoundException"; \
+const STRING MgExceptionCodes::MgDwfSectionResourceNotFoundException = \
L"MgDwfSectionResourceNotFoundException"; +const STRING \
MgExceptionCodes::MgEmptyFeatureSetException = L"MgEmptyFeatureSetException"; +const \
STRING MgExceptionCodes::MgEncryptionException = L"MgEncryptionException"; +const \
STRING MgExceptionCodes::MgEndOfStreamException = L"MgEndOfStreamException"; +const \
STRING MgExceptionCodes::MgEvaluationExpiredException = \
L"MgEvaluationExpiredException"; +const STRING MgExceptionCodes::MgFdoException = \
L"MgFdoException"; +const STRING MgExceptionCodes::MgFeatureServiceException = \
L"MgFeatureServiceException"; +const STRING MgExceptionCodes::MgFileIoException = \
L"MgFileIoException"; +const STRING MgExceptionCodes::MgFileNotFoundException = \
L"MgFileNotFoundException"; +const STRING MgExceptionCodes::MgGeometryException = \
L"MgGeometryException"; +const STRING MgExceptionCodes::MgGroupNotFoundException = \
L"MgGroupNotFoundException"; +const STRING \
MgExceptionCodes::MgIndexOutOfRangeException = L"MgIndexOutOfRangeException"; +const \
STRING MgExceptionCodes::MgInvalidArgumentException = L"MgInvalidArgumentException"; \
+const STRING MgExceptionCodes::MgInvalidCastException = L"MgInvalidCastException"; \
+const STRING MgExceptionCodes::MgInvalidCoordinateSystemException = \
L"MgInvalidCoordinateSystemException"; +const STRING \
MgExceptionCodes::MgInvalidCoordinateSystemTypeException = \
L"MgInvalidCoordinateSystemTypeException"; +const STRING \
MgExceptionCodes::MgInvalidCoordinateSystemUnitsException = \
L"MgInvalidCoordinateSystemUnitsException"; +const STRING \
MgExceptionCodes::MgInvalidDwfPackageException = L"MgInvalidDwfPackageException"; \
+const STRING MgExceptionCodes::MgInvalidDwfSectionException = \
L"MgInvalidDwfSectionException"; +const STRING \
MgExceptionCodes::MgInvalidFeatureSourceException = \
L"MgInvalidFeatureSourceException"; +const STRING \
MgExceptionCodes::MgInvalidIpAddressException = L"MgInvalidIpAddressException"; \
+const STRING MgExceptionCodes::MgInvalidLicenseException = \
L"MgInvalidLicenseException"; +const STRING \
MgExceptionCodes::MgInvalidLogEntryException = L"MgInvalidLogEntryException"; +const \
STRING MgExceptionCodes::MgInvalidMapDefinitionException = \
L"MgInvalidMapDefinitionException"; +const STRING \
MgExceptionCodes::MgInvalidMimeTypeException = L"MgInvalidMimeTypeException"; +const \
STRING MgExceptionCodes::MgInvalidOperationException = \
L"MgInvalidOperationException"; +const STRING \
MgExceptionCodes::MgInvalidOperationVersionException = \
L"MgInvalidOperationVersionException"; +const STRING \
MgExceptionCodes::MgInvalidPasswordException = L"MgInvalidPasswordException"; +const \
STRING MgExceptionCodes::MgInvalidPrintLayoutFontSizeUnitsException = \
L"MgInvalidPrintLayoutFontSizeUnitsException"; +const STRING \
MgExceptionCodes::MgInvalidPrintLayoutPositionUnitsException = \
L"MgInvalidPrintLayoutPositionUnitsException"; +const STRING \
MgExceptionCodes::MgInvalidPrintLayoutSizeUnitsException = \
L"MgInvalidPrintLayoutSizeUnitsException"; +const STRING \
MgExceptionCodes::MgInvalidPropertyTypeException = L"MgInvalidPropertyTypeException"; \
+const STRING MgExceptionCodes::MgInvalidRepositoryNameException = \
L"MgInvalidRepositoryNameException"; +const STRING \
MgExceptionCodes::MgInvalidRepositoryTypeException = \
L"MgInvalidRepositoryTypeException"; +const STRING \
MgExceptionCodes::MgInvalidResourceDataNameException = \
L"MgInvalidResourceDataNameException"; +const STRING \
MgExceptionCodes::MgInvalidResourceDataTypeException = \
L"MgInvalidResourceDataTypeException"; +const STRING \
MgExceptionCodes::MgInvalidResourceNameException = L"MgInvalidResourceNameException"; \
+const STRING MgExceptionCodes::MgInvalidResourcePathException = \
L"MgInvalidResourcePathException"; +const STRING \
MgExceptionCodes::MgInvalidResourcePreProcessingTypeException = \
L"MgInvalidResourcePreProcessingTypeException"; +const STRING \
MgExceptionCodes::MgInvalidResourceTypeException = L"MgInvalidResourceTypeException"; \
+const STRING MgExceptionCodes::MgInvalidServerNameException = \
L"MgInvalidServerNameException"; +const STRING \
MgExceptionCodes::MgInvalidSerialNumberException = L"MgInvalidSerialNumberException"; \
+const STRING MgExceptionCodes::MgInvalidStreamHeaderException = \
L"MgInvalidStreamHeaderException"; +const STRING MgExceptionCodes::MgIoException = \
L"MgIoException"; +const STRING MgExceptionCodes::MgLayerNotFoundException = \
L"MgLayerNotFoundException"; +const STRING MgExceptionCodes::MgLengthException = \
L"MgLengthException"; +const STRING MgExceptionCodes::MgLicenseException = \
L"MgLicenseException"; +const STRING MgExceptionCodes::MgLicenseExpiredException = \
L"MgLicenseExpiredException"; +const STRING MgExceptionCodes::MgLogicException = \
L"MgLogicException"; +const STRING MgExceptionCodes::MgLogOpenFailedException = \
L"MgLogOpenFailedException"; +const STRING \
MgExceptionCodes::MgNotFiniteNumberException = L"MgNotFiniteNumberException"; +const \
STRING MgExceptionCodes::MgNotImplementedException = L"MgNotImplementedException"; \
+const STRING MgExceptionCodes::MgNullArgumentException = L"MgNullArgumentException"; \
+const STRING MgExceptionCodes::MgNullPropertyValueException = \
L"MgNullPropertyValueException"; +const STRING \
MgExceptionCodes::MgNullReferenceException = L"MgNullReferenceException"; +const \
STRING MgExceptionCodes::MgObjectNotFoundException = L"MgObjectNotFoundException"; \
+const STRING MgExceptionCodes::MgOperationProcessingException = \
L"MgOperationProcessingException"; +const STRING \
MgExceptionCodes::MgOutOfMemoryException = L"MgOutOfMemoryException"; +const STRING \
MgExceptionCodes::MgOutOfRangeException = L"MgOutOfRangeException"; +const STRING \
MgExceptionCodes::MgOverflowException = L"MgOverflowException"; +const STRING \
MgExceptionCodes::MgParameterNotFoundException = L"MgParameterNotFoundException"; \
+const STRING MgExceptionCodes::MgPathTooLongException = L"MgPathTooLongException"; \
+const STRING MgExceptionCodes::MgPermissionDeniedException = \
L"MgPermissionDeniedException"; +const STRING \
MgExceptionCodes::MgPlatformNotSupportedException = \
L"MgPlatformNotSupportedException"; +const STRING \
MgExceptionCodes::MgPortNotAvailableException = L"MgPortNotAvailableException"; \
+const STRING MgExceptionCodes::MgPrintToScaleModeNotSelectedException = \
L"MgPrintToScaleModeNotSelectedException"; +const STRING \
MgExceptionCodes::MgRasterTransformationNotSupportedException = \
L"MgRasterTransformationNotSupportedException"; +const STRING \
MgExceptionCodes::MgRepositoryCreationFailedException = \
L"MgRepositoryCreationFailedException"; +const STRING \
MgExceptionCodes::MgRepositoryNotFoundException = L"MgRepositoryNotFoundException"; \
+const STRING MgExceptionCodes::MgRepositoryNotOpenException = \
L"MgRepositoryNotOpenException"; +const STRING \
MgExceptionCodes::MgRepositoryOpenFailedException = \
L"MgRepositoryOpenFailedException"; +const STRING \
MgExceptionCodes::MgResourceBusyException = L"MgResourceBusyException"; +const STRING \
MgExceptionCodes::MgResourceDataNotFoundException = \
L"MgResourceDataNotFoundException"; +const STRING \
MgExceptionCodes::MgResourceNotFoundException = L"MgResourceNotFoundException"; \
+const STRING MgExceptionCodes::MgResourcesException = L"MgResourcesException"; \
+const STRING MgExceptionCodes::MgResourceTagNotFoundException = \
L"MgResourceTagNotFoundException"; +const STRING \
MgExceptionCodes::MgRoleNotFoundException = L"MgRoleNotFoundException"; +const STRING \
MgExceptionCodes::MgRuntimeException = L"MgRuntimeException"; +const STRING \
MgExceptionCodes::MgServerNotFoundException = L"MgServerNotFoundException"; +const \
STRING MgExceptionCodes::MgServerNotOnlineException = L"MgServerNotOnlineException"; \
+const STRING MgExceptionCodes::MgServiceNotAvailableException = \
L"MgServiceNotAvailableException"; +const STRING \
MgExceptionCodes::MgServiceNotSupportedException = L"MgServiceNotSupportedException"; \
+const STRING MgExceptionCodes::MgSessionExpiredException = \
L"MgSessionExpiredException"; +const STRING \
MgExceptionCodes::MgSessionNotFoundException = L"MgSessionNotFoundException"; +const \
STRING MgExceptionCodes::MgStreamIoException = L"MgStreamIoException"; +const STRING \
MgExceptionCodes::MgStylizeLayerFailedException = L"MgStylizeLayerFailedException"; \
+const STRING MgExceptionCodes::MgTemporaryFileNotAvailableException = \
L"MgTemporaryFileNotAvailableException"; +const STRING \
MgExceptionCodes::MgUnauthorizedAccessException = L"MgUnauthorizedAccessException"; \
+const STRING MgExceptionCodes::MgUnclassifiedException = L"MgUnclassifiedException"; \
+const STRING MgExceptionCodes::MgUnderflowException = L"MgUnderflowException"; \
+const STRING MgExceptionCodes::MgUnknownTileProviderException = \
L"MgUnknownTileProviderException"; +const STRING \
MgExceptionCodes::MgUnsupportedProviderThreadModelException = \
L"MgUnsupportedProviderThreadModelException"; +const STRING \
MgExceptionCodes::MgUnsupportedTileProviderException = \
L"MgUnsupportedTileProviderException"; +const STRING \
MgExceptionCodes::MgUriFormatException = L"MgUriFormatException"; +const STRING \
MgExceptionCodes::MgUserNotFoundException = L"MgUserNotFoundException"; +const STRING \
MgExceptionCodes::MgXmlException = L"MgXmlException"; +const STRING \
MgExceptionCodes::MgXmlParserException = L"MgXmlParserException"; +
+// These codes aren't in mapguide_en.res
+const STRING MgExceptionCodes::MgConfigurationLoadFailedException = \
L"MgConfigurationLoadFailedException"; +const STRING \
MgExceptionCodes::MgResourcesLoadFailedException = L"MgResourcesLoadFailedException"; \
+const STRING MgExceptionCodes::MgGridDensityException = L"MgGridDensityException"; \
+const STRING MgExceptionCodes::MgInvalidLayerDefinitionException = \
L"MgInvalidLayerDefinitionException"; +const STRING \
MgExceptionCodes::MgInvalidWatermarkDefinitionException = \
L"MgInvalidWatermarkDefinitionException"; \ No newline at end of file

Copied: trunk/MgDev/Common/Foundation/Exception/ExceptionCodes.h (from rev 9755, \
sandbox/jng/flatten_exceptions/Common/Foundation/Exception/ExceptionCodes.h) \
                ===================================================================
--- trunk/MgDev/Common/Foundation/Exception/ExceptionCodes.h	                        \
                (rev 0)
+++ trunk/MgDev/Common/Foundation/Exception/ExceptionCodes.h	2022-10-10 09:40:18 UTC \
(rev 9971) @@ -0,0 +1,167 @@
+//
+//  Copyright (C) 2004-2020 by Autodesk, Inc.
+//
+//  This library is free software; you can redistribute it and/or
+//  modify it under the terms of version 2.1 of the GNU Lesser
+//  General Public License as published by the Free Software Foundation.
+//
+//  This library is distributed in the hope that it will be useful,
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+//  Lesser General Public License for more details.
+//
+//  You should have received a copy of the GNU Lesser General Public
+//  License along with this library; if not, write to the Free Software
+//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+//
+
+#ifndef _MG_EXCEPTION_CODES_H
+#define _MG_EXCEPTION_CODES_H
+
+class MG_FOUNDATION_API MgExceptionCodes
+{
+PUBLISHED_API:
+    static const STRING MgAllProviderConnectionsUsedException;     ///\if INTERNAL \
value("MgAllProviderConnectionsUsedException") \endif +    static const STRING \
MgArgumentOutOfRangeException;     ///\if INTERNAL \
value("MgArgumentOutOfRangeException") \endif +    static const STRING \
MgArrayTypeMismatchException;     ///\if INTERNAL \
value("MgArrayTypeMismatchException") \endif +    static const STRING \
MgAuthenticationFailedException;     ///\if INTERNAL \
value("MgAuthenticationFailedException") \endif +    static const STRING \
MgClassNotFoundException;     ///\if INTERNAL value("MgClassNotFoundException") \
\endif +    static const STRING MgConfigurationException;     ///\if INTERNAL \
value("MgConfigurationException") \endif +    static const STRING \
MgConfigurationSaveFailedException;     ///\if INTERNAL \
value("MgConfigurationSaveFailedException") \endif +    static const STRING \
MgConnectionFailedException;     ///\if INTERNAL value("MgConnectionFailedException") \
\endif +    static const STRING MgConnectionNotOpenException;     ///\if INTERNAL \
value("MgConnectionNotOpenException") \endif +    static const STRING \
MgCoordinateSystemComputationFailedException;     ///\if INTERNAL \
value("MgCoordinateSystemComputationFailedException") \endif +    static const STRING \
MgCoordinateSystemConversionFailedException;     ///\if INTERNAL \
value("MgCoordinateSystemConversionFailedException") \endif +    static const STRING \
MgCoordinateSystemInitializationFailedException;     ///\if INTERNAL \
value("MgCoordinateSystemInitializationFailedException") \endif +    static const \
STRING MgCoordinateSystemLoadFailedException;     ///\if INTERNAL \
value("MgCoordinateSystemLoadFailedException") \endif +    static const STRING \
MgCoordinateSystemMeasureFailedException;     ///\if INTERNAL \
value("MgCoordinateSystemMeasureFailedException") \endif +    static const STRING \
MgCoordinateSystemTransformFailedException;     ///\if INTERNAL \
value("MgCoordinateSystemTransformFailedException") \endif +    static const STRING \
MgDateTimeException;     ///\if INTERNAL value("MgDateTimeException") \endif +    \
static const STRING MgDbException;     ///\if INTERNAL value("MgDbException") \endif \
+    static const STRING MgDbXmlException;     ///\if INTERNAL \
value("MgDbXmlException") \endif +    static const STRING MgDecryptionException;     \
///\if INTERNAL value("MgDecryptionException") \endif +    static const STRING \
MgDirectoryNotFoundException;     ///\if INTERNAL \
value("MgDirectoryNotFoundException") \endif +    static const STRING \
MgDivideByZeroException;     ///\if INTERNAL value("MgDivideByZeroException") \endif \
+    static const STRING MgDomainException;     ///\if INTERNAL \
value("MgDomainException") \endif +    static const STRING \
MgDuplicateDirectoryException;     ///\if INTERNAL \
value("MgDuplicateDirectoryException") \endif +    static const STRING \
MgDuplicateFileException;     ///\if INTERNAL value("MgDuplicateFileException") \
\endif +    static const STRING MgDuplicateGroupException;     ///\if INTERNAL \
value("MgDuplicateGroupException") \endif +    static const STRING \
MgDuplicateNameException;     ///\if INTERNAL value("MgDuplicateNameException") \
\endif +    static const STRING MgDuplicateObjectException;     ///\if INTERNAL \
value("MgDuplicateObjectException") \endif +    static const STRING \
MgDuplicateParameterException;     ///\if INTERNAL \
value("MgDuplicateParameterException") \endif +    static const STRING \
MgDuplicateRepositoryException;     ///\if INTERNAL \
value("MgDuplicateRepositoryException") \endif +    static const STRING \
MgDuplicateResourceDataException;     ///\if INTERNAL \
value("MgDuplicateResourceDataException") \endif +    static const STRING \
MgDuplicateResourceException;     ///\if INTERNAL \
value("MgDuplicateResourceException") \endif +    static const STRING \
MgDuplicateRoleException;     ///\if INTERNAL value("MgDuplicateRoleException") \
\endif +    static const STRING MgDuplicateServerException;     ///\if INTERNAL \
value("MgDuplicateServerException") \endif +    static const STRING \
MgDuplicateSessionException;     ///\if INTERNAL value("MgDuplicateSessionException") \
\endif +    static const STRING MgDuplicateUserException;     ///\if INTERNAL \
value("MgDuplicateUserException") \endif +    static const STRING MgDwfException;     \
///\if INTERNAL value("MgDwfException") \endif +    static const STRING \
MgDwfSectionNotFoundException;     ///\if INTERNAL \
value("MgDwfSectionNotFoundException") \endif +    static const STRING \
MgDwfSectionResourceNotFoundException;     ///\if INTERNAL \
value("MgDwfSectionResourceNotFoundException") \endif +    static const STRING \
MgEmptyFeatureSetException;     ///\if INTERNAL value("MgEmptyFeatureSetException") \
\endif +    static const STRING MgEncryptionException;     ///\if INTERNAL \
value("MgEncryptionException") \endif +    static const STRING \
MgEndOfStreamException;     ///\if INTERNAL value("MgEndOfStreamException") \endif +  \
static const STRING MgEvaluationExpiredException;     ///\if INTERNAL \
value("MgEvaluationExpiredException") \endif +    static const STRING MgFdoException; \
///\if INTERNAL value("MgFdoException") \endif +    static const STRING \
MgFeatureServiceException;     ///\if INTERNAL value("MgFeatureServiceException") \
\endif +    static const STRING MgFileIoException;     ///\if INTERNAL \
value("MgFileIoException") \endif +    static const STRING MgFileNotFoundException;   \
///\if INTERNAL value("MgFileNotFoundException") \endif +    static const STRING \
MgGeometryException;     ///\if INTERNAL value("MgGeometryException") \endif +    \
static const STRING MgGroupNotFoundException;     ///\if INTERNAL \
value("MgGroupNotFoundException") \endif +    static const STRING \
MgIndexOutOfRangeException;     ///\if INTERNAL value("MgIndexOutOfRangeException") \
\endif +    static const STRING MgInvalidArgumentException;     ///\if INTERNAL \
value("MgInvalidArgumentException") \endif +    static const STRING \
MgInvalidCastException;     ///\if INTERNAL value("MgInvalidCastException") \endif +  \
static const STRING MgInvalidCoordinateSystemException;     ///\if INTERNAL \
value("MgInvalidCoordinateSystemException") \endif +    static const STRING \
MgInvalidCoordinateSystemTypeException;     ///\if INTERNAL \
value("MgInvalidCoordinateSystemTypeException") \endif +    static const STRING \
MgInvalidCoordinateSystemUnitsException;     ///\if INTERNAL \
value("MgInvalidCoordinateSystemUnitsException") \endif +    static const STRING \
MgInvalidDwfPackageException;     ///\if INTERNAL \
value("MgInvalidDwfPackageException") \endif +    static const STRING \
MgInvalidDwfSectionException;     ///\if INTERNAL \
value("MgInvalidDwfSectionException") \endif +    static const STRING \
MgInvalidFeatureSourceException;     ///\if INTERNAL \
value("MgInvalidFeatureSourceException") \endif +    static const STRING \
MgInvalidIpAddressException;     ///\if INTERNAL value("MgInvalidIpAddressException") \
\endif +    static const STRING MgInvalidLicenseException;     ///\if INTERNAL \
value("MgInvalidLicenseException") \endif +    static const STRING \
MgInvalidLogEntryException;     ///\if INTERNAL value("MgInvalidLogEntryException") \
\endif +    static const STRING MgInvalidMapDefinitionException;     ///\if INTERNAL \
value("MgInvalidMapDefinitionException") \endif +    static const STRING \
MgInvalidMimeTypeException;     ///\if INTERNAL value("MgInvalidMimeTypeException") \
\endif +    static const STRING MgInvalidOperationException;     ///\if INTERNAL \
value("MgInvalidOperationException") \endif +    static const STRING \
MgInvalidOperationVersionException;     ///\if INTERNAL \
value("MgInvalidOperationVersionException") \endif +    static const STRING \
MgInvalidPasswordException;     ///\if INTERNAL value("MgInvalidPasswordException") \
\endif +    static const STRING MgInvalidPrintLayoutFontSizeUnitsException;     \
///\if INTERNAL value("MgInvalidPrintLayoutFontSizeUnitsException") \endif +    \
static const STRING MgInvalidPrintLayoutPositionUnitsException;     ///\if INTERNAL \
value("MgInvalidPrintLayoutPositionUnitsException") \endif +    static const STRING \
MgInvalidPrintLayoutSizeUnitsException;     ///\if INTERNAL \
value("MgInvalidPrintLayoutSizeUnitsException") \endif +    static const STRING \
MgInvalidPropertyTypeException;     ///\if INTERNAL \
value("MgInvalidPropertyTypeException") \endif +    static const STRING \
MgInvalidRepositoryNameException;     ///\if INTERNAL \
value("MgInvalidRepositoryNameException") \endif +    static const STRING \
MgInvalidRepositoryTypeException;     ///\if INTERNAL \
value("MgInvalidRepositoryTypeException") \endif +    static const STRING \
MgInvalidResourceDataNameException;     ///\if INTERNAL \
value("MgInvalidResourceDataNameException") \endif +    static const STRING \
MgInvalidResourceDataTypeException;     ///\if INTERNAL \
value("MgInvalidResourceDataTypeException") \endif +    static const STRING \
MgInvalidResourceNameException;     ///\if INTERNAL \
value("MgInvalidResourceNameException") \endif +    static const STRING \
MgInvalidResourcePathException;     ///\if INTERNAL \
value("MgInvalidResourcePathException") \endif +    static const STRING \
MgInvalidResourcePreProcessingTypeException;     ///\if INTERNAL \
value("MgInvalidResourcePreProcessingTypeException") \endif +    static const STRING \
MgInvalidResourceTypeException;     ///\if INTERNAL \
value("MgInvalidResourceTypeException") \endif +    static const STRING \
MgInvalidServerNameException;     ///\if INTERNAL \
value("MgInvalidServerNameException") \endif +    static const STRING \
MgInvalidSerialNumberException;     ///\if INTERNAL \
value("MgInvalidSerialNumberException") \endif +    static const STRING \
MgInvalidStreamHeaderException;     ///\if INTERNAL \
value("MgInvalidStreamHeaderException") \endif +    static const STRING \
MgIoException;     ///\if INTERNAL value("MgIoException") \endif +    static const \
STRING MgLayerNotFoundException;     ///\if INTERNAL \
value("MgLayerNotFoundException") \endif +    static const STRING MgLengthException;  \
///\if INTERNAL value("MgLengthException") \endif +    static const STRING \
MgLicenseException;     ///\if INTERNAL value("MgLicenseException") \endif +    \
static const STRING MgLicenseExpiredException;     ///\if INTERNAL \
value("MgLicenseExpiredException") \endif +    static const STRING MgLogicException;  \
///\if INTERNAL value("MgLogicException") \endif +    static const STRING \
MgLogOpenFailedException;     ///\if INTERNAL value("MgLogOpenFailedException") \
\endif +    static const STRING MgNotFiniteNumberException;     ///\if INTERNAL \
value("MgNotFiniteNumberException") \endif +    static const STRING \
MgNotImplementedException;     ///\if INTERNAL value("MgNotImplementedException") \
\endif +    static const STRING MgNullArgumentException;     ///\if INTERNAL \
value("MgNullArgumentException") \endif +    static const STRING \
MgNullPropertyValueException;     ///\if INTERNAL \
value("MgNullPropertyValueException") \endif +    static const STRING \
MgNullReferenceException;     ///\if INTERNAL value("MgNullReferenceException") \
\endif +    static const STRING MgObjectNotFoundException;     ///\if INTERNAL \
value("MgObjectNotFoundException") \endif +    static const STRING \
MgOperationProcessingException;     ///\if INTERNAL \
value("MgOperationProcessingException") \endif +    static const STRING \
MgOutOfMemoryException;     ///\if INTERNAL value("MgOutOfMemoryException") \endif +  \
static const STRING MgOutOfRangeException;     ///\if INTERNAL \
value("MgOutOfRangeException") \endif +    static const STRING MgOverflowException;   \
///\if INTERNAL value("MgOverflowException") \endif +    static const STRING \
MgParameterNotFoundException;     ///\if INTERNAL \
value("MgParameterNotFoundException") \endif +    static const STRING \
MgPathTooLongException;     ///\if INTERNAL value("MgPathTooLongException") \endif +  \
static const STRING MgPermissionDeniedException;     ///\if INTERNAL \
value("MgPermissionDeniedException") \endif +    static const STRING \
MgPlatformNotSupportedException;     ///\if INTERNAL \
value("MgPlatformNotSupportedException") \endif +    static const STRING \
MgPortNotAvailableException;     ///\if INTERNAL value("MgPortNotAvailableException") \
\endif +    static const STRING MgPrintToScaleModeNotSelectedException;     ///\if \
INTERNAL value("MgPrintToScaleModeNotSelectedException") \endif +    static const \
STRING MgRasterTransformationNotSupportedException;     ///\if INTERNAL \
value("MgRasterTransformationNotSupportedException") \endif +    static const STRING \
MgRepositoryCreationFailedException;     ///\if INTERNAL \
value("MgRepositoryCreationFailedException") \endif +    static const STRING \
MgRepositoryNotFoundException;     ///\if INTERNAL \
value("MgRepositoryNotFoundException") \endif +    static const STRING \
MgRepositoryNotOpenException;     ///\if INTERNAL \
value("MgRepositoryNotOpenException") \endif +    static const STRING \
MgRepositoryOpenFailedException;     ///\if INTERNAL \
value("MgRepositoryOpenFailedException") \endif +    static const STRING \
MgResourceBusyException;     ///\if INTERNAL value("MgResourceBusyException") \endif \
+    static const STRING MgResourceDataNotFoundException;     ///\if INTERNAL \
value("MgResourceDataNotFoundException") \endif +    static const STRING \
MgResourceNotFoundException;     ///\if INTERNAL value("MgResourceNotFoundException") \
\endif +    static const STRING MgResourcesException;     ///\if INTERNAL \
value("MgResourcesException") \endif +    static const STRING \
MgResourceTagNotFoundException;     ///\if INTERNAL \
value("MgResourceTagNotFoundException") \endif +    static const STRING \
MgRoleNotFoundException;     ///\if INTERNAL value("MgRoleNotFoundException") \endif \
+    static const STRING MgRuntimeException;     ///\if INTERNAL \
value("MgRuntimeException") \endif +    static const STRING \
MgServerNotFoundException;     ///\if INTERNAL value("MgServerNotFoundException") \
\endif +    static const STRING MgServerNotOnlineException;     ///\if INTERNAL \
value("MgServerNotOnlineException") \endif +    static const STRING \
MgServiceNotAvailableException;     ///\if INTERNAL \
value("MgServiceNotAvailableException") \endif +    static const STRING \
MgServiceNotSupportedException;     ///\if INTERNAL \
value("MgServiceNotSupportedException") \endif +    static const STRING \
MgSessionExpiredException;     ///\if INTERNAL value("MgSessionExpiredException") \
\endif +    static const STRING MgSessionNotFoundException;     ///\if INTERNAL \
+    static const STRING MgStylizeLayerFailedException;     ///\if INTERNAL \
value("MgStylizeLayerFailedException") \endif +    static const STRING \
MgTemporaryFileNotAvailableException;     ///\if INTERNAL \
value("MgTemporaryFileNotAvailableException") \endif +    static const STRING \
MgUnauthorizedAccessException;     ///\if INTERNAL \
value("MgUnauthorizedAccessException") \endif +    static const STRING \
MgUnclassifiedException;     ///\if INTERNAL value("MgUnclassifiedException") \endif \
+    static const STRING MgUnderflowException;     ///\if INTERNAL \
value("MgUnderflowException") \endif +    static const STRING \
MgUnknownTileProviderException;     ///\if INTERNAL \
value("MgUnknownTileProviderException") \endif +    static const STRING \
MgUnsupportedProviderThreadModelException;     ///\if INTERNAL \
value("MgUnsupportedProviderThreadModelException") \endif +    static const STRING \
MgUnsupportedTileProviderException;     ///\if INTERNAL \
value("MgUnsupportedTileProviderException") \endif +    static const STRING \
MgUriFormatException;     ///\if INTERNAL value("MgUriFormatException") \endif +    \
static const STRING MgUserNotFoundException;     ///\if INTERNAL \
value("MgUserNotFoundException") \endif +    static const STRING MgXmlException;     \
///\if INTERNAL value("MgXmlException") \endif +    static const STRING \
MgXmlParserException;     ///\if INTERNAL value("MgXmlParserException") \endif +
+    // These codes aren't in mapguide_en.res
+    static const STRING MgConfigurationLoadFailedException;    ///\if INTERNAL \
value("MgConfigurationLoadFailedException") \endif +    static const STRING \
MgResourcesLoadFailedException;    ///\if INTERNAL \
value("MgResourcesLoadFailedException") \endif +    static const STRING \
MgGridDensityException;    ///\if INTERNAL value("MgGridDensityException") \endif +   \
static const STRING MgInvalidLayerDefinitionException;    ///\if INTERNAL \
value("MgInvalidLayerDefinitionException") \endif +    static const STRING \
MgInvalidWatermarkDefinitionException;    ///\if INTERNAL \
value("MgInvalidWatermarkDefinitionException") \endif +};
+
+#endif
\ No newline at end of file

Modified: trunk/MgDev/Common/Foundation/Exception/ExceptionDefs.h
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/ExceptionDefs.h	2022-09-15 10:14:11 UTC \
                (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/ExceptionDefs.h	2022-10-10 09:40:18 UTC \
(rev 9971) @@ -18,6 +18,10 @@
 #ifndef MG_EXCEPTION_DEFS_H_
 #define MG_EXCEPTION_DEFS_H_
 
+// SEH macros go away!
+#if defined(GetExceptionCode)
+#undef GetExceptionCode
+#endif
 
 #define DECLARE_EXCEPTION_ABSTRACT(className) \
     virtual INT32 GetClassId(); \
@@ -62,11 +66,11 @@
     }                                                                         \
     catch (exception& e)                                                      \
     {                                                                         \
-        mgException = MgSystemException::Create(e, methodName, __LINE__, __WFILE__); \
\ +        mgException = MgException::Create(e, methodName, __LINE__, __WFILE__); \
     }                                                                         \
     catch (...)                                                               \
     {                                                                         \
-        mgException = new MgUnclassifiedException(methodName, __LINE__, __WFILE__, \
NULL, L"", NULL); \ +        mgException = new \
MgException(L"MgUnclassifiedException", methodName, __LINE__, __WFILE__, NULL, L"", \
                NULL); \
     }                                                                         \
 
 #define MG_THROW()                                                            \
@@ -91,4 +95,26 @@
     {                                                                         \
     }                                                                         \
 
+#define MG_CATCH_IF_TYPE(extype)                                              \
+    catch (MgException* ex)                                                   \
+    {                                                                         \
+        if (ex->GetExceptionCode() == MgExceptionCodes::extype)               \
+        {                                                                     \
+
+#define MG_CATCH_IF_TYPE_ELSE()                                               \
+        }                                                                     \
+        else                                                                  \
+        {                                                                     \
+            ex->Raise();                                                      \
+
+#define MG_CATCH_ENDIF_TYPE()                                                 \
+        }                                                                     \
+    }                                                                         \
+
+#define MG_CATCH_AND_RELEASE_IF_TYPE(extype) \
+    MG_CATCH_IF_TYPE(extype) \
+        ex->Release(); \
+    MG_CATCH_IF_TYPE_ELSE() \
+    MG_CATCH_ENDIF_TYPE() \
+
 #endif

Deleted: trunk/MgDev/Common/Foundation/Exception/FileIoException.cpp
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/FileIoException.cpp	2022-09-15 10:14:11 \
                UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/FileIoException.cpp	2022-10-10 09:40:18 \
UTC (rev 9971) @@ -1,40 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgFileIoException, MgIoException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgFileIoException object.
-///
-MgFileIoException::MgFileIoException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgIoException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgFileIoException::~MgFileIoException() throw()
-{
-}

Deleted: trunk/MgDev/Common/Foundation/Exception/FileIoException.h
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/FileIoException.h	2022-09-15 10:14:11 UTC \
                (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/FileIoException.h	2022-10-10 09:40:18 UTC \
(rev 9971) @@ -1,69 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#ifndef MG_FILE_IO_EXCEPTION_H_
-#define MG_FILE_IO_EXCEPTION_H_
-
-/// \ingroup Exceptions_Module
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when a file I/O error occurs.
-///
-class MG_FOUNDATION_API MgFileIoException : public MgIoException
-{
-    DECLARE_CLASSNAME(MgFileIoException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgFileIoException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the \
                exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the \
                exception occurs.
-    ///
-    MgFileIoException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgFileIoException object.
-    ///
-    virtual ~MgFileIoException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgFileIoException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Foundation_Exception_MgFileIoException;
-};
-
-#endif

Deleted: trunk/MgDev/Common/Foundation/Exception/FileNotFoundException.cpp
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/FileNotFoundException.cpp	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/FileNotFoundException.cpp	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -1,40 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgFileNotFoundException, MgFileIoException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgFileNotFoundException object.
-///
-MgFileNotFoundException::MgFileNotFoundException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgFileIoException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgFileNotFoundException::~MgFileNotFoundException() throw()
-{
-}

Deleted: trunk/MgDev/Common/Foundation/Exception/FileNotFoundException.h
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/FileNotFoundException.h	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/FileNotFoundException.h	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -1,69 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#ifndef MG_FILE_NOT_FOUND_EXCEPTION_H_
-#define MG_FILE_NOT_FOUND_EXCEPTION_H_
-
-/// \ingroup Exceptions_Module
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when attempting to access a file that cannot be found.
-///
-class MG_FOUNDATION_API MgFileNotFoundException : public MgFileIoException
-{
-    DECLARE_CLASSNAME(MgFileNotFoundException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgFileNotFoundException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the \
                exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the \
                exception occurs.
-    ///
-    MgFileNotFoundException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgFileNotFoundException object.
-    ///
-    virtual ~MgFileNotFoundException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgFileNotFoundException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Foundation_Exception_MgFileNotFoundException;
-};
-
-#endif

Deleted: trunk/MgDev/Common/Foundation/Exception/GridDensityException.cpp
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/GridDensityException.cpp	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/GridDensityException.cpp	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -1,40 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgGridDensityException, MgApplicationException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgGridDensityException object.
-///
-MgGridDensityException::MgGridDensityException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgApplicationException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the MgGridDensityException object.
-///
-MgGridDensityException::~MgGridDensityException() throw()
-{
-}

Deleted: trunk/MgDev/Common/Foundation/Exception/GridDensityException.h
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/GridDensityException.h	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/GridDensityException.h	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -1,69 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-/// \ingroup Exceptions_Module
-
-#ifndef MG_GRID_DENSITY_EXCEPTION_H_
-#define MG_GRID_DENSITY_EXCEPTION_H_
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when an error occurs in a date/time routine.
-///
-class MG_FOUNDATION_API MgGridDensityException : public MgApplicationException
-{
-    DECLARE_CLASSNAME(MgGridDensityException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgGridDensityException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the \
                exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the \
                exception occurs.
-    ///
-    MgGridDensityException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destruct the MgGridDensityException object.
-    ///
-    virtual ~MgGridDensityException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgGridDensityException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Foundation_Exception_MgGridDensityException;
-};
-
-#endif

Deleted: trunk/MgDev/Common/Foundation/Exception/IndexOutOfRangeException.cpp
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/IndexOutOfRangeException.cpp	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/IndexOutOfRangeException.cpp	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -1,40 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgIndexOutOfRangeException, MgOutOfRangeException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgIndexOutOfRangeException object.
-///
-MgIndexOutOfRangeException::MgIndexOutOfRangeException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgOutOfRangeException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgIndexOutOfRangeException::~MgIndexOutOfRangeException() throw()
-{
-}

Deleted: trunk/MgDev/Common/Foundation/Exception/IndexOutOfRangeException.h
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/IndexOutOfRangeException.h	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/IndexOutOfRangeException.h	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -1,71 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#ifndef MG_INDEX_OUT_OF_RANGE_EXCEPTION_H_
-#define MG_INDEX_OUT_OF_RANGE_EXCEPTION_H_
-
-/// \ingroup Exceptions_Module
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when attempting to
-/// access an element of an array with an index that is
-/// outside the bounds of the array.
-///
-class MG_FOUNDATION_API MgIndexOutOfRangeException : public MgOutOfRangeException
-{
-    DECLARE_CLASSNAME(MgIndexOutOfRangeException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgIndexOutOfRangeException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the \
                exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the \
                exception occurs.
-    ///
-    MgIndexOutOfRangeException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgIndexOutOfRangeException object.
-    ///
-    virtual ~MgIndexOutOfRangeException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgIndexOutOfRangeException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Foundation_Exception_MgIndexOutOfRangeException;
-};
-
-#endif

Deleted: trunk/MgDev/Common/Foundation/Exception/InvalidArgumentException.cpp
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/InvalidArgumentException.cpp	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/InvalidArgumentException.cpp	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -1,101 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgInvalidArgumentException, MgSystemException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgInvalidArgumentException object.
-///
-MgInvalidArgumentException::MgInvalidArgumentException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgSystemException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgInvalidArgumentException::~MgInvalidArgumentException() throw()
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-///<summary>
-/// Retrieve the formatted exception message for the specified locale.
-/// <param name="nLocale">The locale identifier to format the message text.</param>
-///
-///
-STRING MgInvalidArgumentException::GetExceptionMessage(CREFSTRING locale) throw()
-{
-    //
-    // Format:
-    //
-    //  { Description on WHAT the exception is }
-    //  [ Reason on WHY the exception occurs ]
-    //
-    // Example:
-    //
-    //  Invalid argument(s):
-    //      [1] = 2005-12-08T15:30
-    //  The XML date time is invalid because not all of the fields were found.
-    //
-
-    MG_TRY()
-
-    // Note that for any empty string argument, MgResources::BlankArgument
-    // must be used to prevent MgProperty::SetName (via MgStringCollection::Add)
-    // from infinitely throwing the MgInvalidArgumentException.
-
-    if (m_message.empty())
-    {
-        m_message = FormatMessage(locale, MgResources::Resource_Exception_Section,
-            GetClassName(), NULL);
-
-        const INT32 numArgsPerLine = 2;
-        const INT32 size = m_whatArguments.GetCount();
-        assert(0 == (size % numArgsPerLine));
-
-        for (INT32 i = 1; i < size; i += numArgsPerLine)
-        {
-            STRING argIndex = m_whatArguments.GetItem(i-1);
-            STRING argValue = m_whatArguments.GetItem(i);
-
-            m_message += L"\n\t[";
-            m_message += argIndex;
-            m_message += L"] = \"";
-            m_message += argValue;
-            m_message += L"\"";
-        }
-
-        if (!m_whyMessageId.empty())
-        {
-            m_message += L"\n";
-            m_message += FormatMessage(locale, MgResources::ErrorDescription,
-                m_whyMessageId, &m_whyArguments);
-        }
-    }
-
-    MG_CATCH_AND_RELEASE()
-
-    return m_message;
-}

Deleted: trunk/MgDev/Common/Foundation/Exception/InvalidArgumentException.h
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/InvalidArgumentException.h	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/InvalidArgumentException.h	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -1,83 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#ifndef MG_INVALID_ARGUMENT_EXCEPTION_H_
-#define MG_INVALID_ARGUMENT_EXCEPTION_H_
-
-/// \ingroup Exceptions_Module
-
-////////////////////////////////////////////////////////////////////////////////////////////
                
-/// \brief
-/// Thrown when a method is called with an invalid argument.
-///
-class MG_FOUNDATION_API MgInvalidArgumentException : public MgSystemException
-{
-    DECLARE_CLASSNAME(MgInvalidArgumentException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgInvalidArgumentException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the \
                exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the \
                exception occurs.
-    ///
-    MgInvalidArgumentException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgInvalidArgumentException object.
-    ///
-    virtual ~MgInvalidArgumentException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgInvalidArgumentException)
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Retrieve the formatted exception message for the specified locale.
-    ///
-    /// \param locale
-    /// The locale identifier to format the details text.
-    /// Locale codes are 2 letters language codes defined by ISO 639-1.
-    /// Please refer to  http://www.loc.gov/standards/iso639-2/englangn.html
-    ///
-    /// \return
-    /// Formatted exception message
-    ///
-    virtual STRING GetExceptionMessage(CREFSTRING locale) throw();
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Foundation_Exception_MgInvalidArgumentException;
-};
-
-#endif

Deleted: trunk/MgDev/Common/Foundation/Exception/InvalidCastException.cpp
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/InvalidCastException.cpp	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/InvalidCastException.cpp	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -1,40 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgInvalidCastException, MgSystemException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgInvalidCastException object.
-///
-MgInvalidCastException::MgInvalidCastException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgSystemException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgInvalidCastException::~MgInvalidCastException() throw()
-{
-}

Deleted: trunk/MgDev/Common/Foundation/Exception/InvalidCastException.h
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/InvalidCastException.h	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/InvalidCastException.h	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -1,69 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#ifndef MG_INVALID_CAST_EXCEPTION_H_
-#define MG_INVALID_CAST_EXCEPTION_H_
-
-/// \ingroup Exceptions_Module
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when attempting an invalid type cast or explicit conversion.
-///
-class MG_FOUNDATION_API MgInvalidCastException : public MgSystemException
-{
-    DECLARE_CLASSNAME(MgInvalidCastException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgInvalidCastException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the \
                exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the \
                exception occurs.
-    ///
-    MgInvalidCastException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgInvalidCastException object.
-    ///
-    virtual ~MgInvalidCastException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgInvalidCastException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Foundation_Exception_MgInvalidCastException;
-};
-
-#endif

Deleted: trunk/MgDev/Common/Foundation/Exception/InvalidMimeTypeException.cpp
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/InvalidMimeTypeException.cpp	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/InvalidMimeTypeException.cpp	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -1,40 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgInvalidMimeTypeException, MgApplicationException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgInvalidMimeTypeException object.
-///
-MgInvalidMimeTypeException::MgInvalidMimeTypeException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgApplicationException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the MgInvalidMimeTypeException object.
-///
-MgInvalidMimeTypeException::~MgInvalidMimeTypeException() throw()
-{
-}

Deleted: trunk/MgDev/Common/Foundation/Exception/InvalidMimeTypeException.h
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/InvalidMimeTypeException.h	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/InvalidMimeTypeException.h	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -1,69 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-/// \ingroup Exceptions_Module
-
-#ifndef MGINVALIDMIMETYPEEXCEPTION_H_
-#define MGINVALIDMIMETYPEEXCEPTION_H_
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when an invalid mime type is detected.
-///
-class MG_FOUNDATION_API MgInvalidMimeTypeException : public MgApplicationException
-{
-    DECLARE_CLASSNAME(MgInvalidMimeTypeException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgInvalidMimeTypeException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the \
                exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the \
                exception occurs.
-    ///
-    MgInvalidMimeTypeException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destruct the MgInvalidMimeTypeException object.
-    ///
-    virtual ~MgInvalidMimeTypeException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgInvalidMimeTypeException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Foundation_Exception_MgInvalidMimeTypeException;
-};
-
-#endif

Deleted: trunk/MgDev/Common/Foundation/Exception/InvalidOperationException.cpp
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/InvalidOperationException.cpp	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/InvalidOperationException.cpp	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -1,40 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgInvalidOperationException, MgSystemException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgInvalidOperationException object.
-///
-MgInvalidOperationException::MgInvalidOperationException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgSystemException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgInvalidOperationException::~MgInvalidOperationException() throw()
-{
-}

Deleted: trunk/MgDev/Common/Foundation/Exception/InvalidOperationException.h
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/InvalidOperationException.h	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/InvalidOperationException.h	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -1,69 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#ifndef MG_INVALID_OPERATION_EXCEPTION_H_
-#define MG_INVALID_OPERATION_EXCEPTION_H_
-
-/// \ingroup Exceptions_Module
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when a method call is invalid for the object's current state.
-///
-class MG_FOUNDATION_API MgInvalidOperationException : public MgSystemException
-{
-    DECLARE_CLASSNAME(MgInvalidOperationException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgInvalidOperationException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the \
                exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the \
                exception occurs.
-    ///
-    MgInvalidOperationException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgInvalidOperationException object.
-    ///
-    virtual ~MgInvalidOperationException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgInvalidOperationException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Foundation_Exception_MgInvalidOperationException;
-};
-
-#endif

Deleted: trunk/MgDev/Common/Foundation/Exception/InvalidPropertyTypeException.cpp
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/InvalidPropertyTypeException.cpp	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/InvalidPropertyTypeException.cpp	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -1,40 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgInvalidPropertyTypeException, MgSystemException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgInvalidPropertyTypeException object.
-///
-MgInvalidPropertyTypeException::MgInvalidPropertyTypeException(CREFSTRING \
                methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgSystemException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgInvalidPropertyTypeException::~MgInvalidPropertyTypeException() throw()
-{
-}

Deleted: trunk/MgDev/Common/Foundation/Exception/InvalidPropertyTypeException.h
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/InvalidPropertyTypeException.h	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/InvalidPropertyTypeException.h	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -1,69 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#ifndef MG_INVALID_PROPERTY_TYPE_EXCEPTION_H_
-#define MG_INVALID_PROPERTY_TYPE_EXCEPTION_H_
-
-/// \ingroup Exceptions_Module
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when an invalid property type is used.
-///
-class MG_FOUNDATION_API MgInvalidPropertyTypeException : public MgSystemException
-{
-    DECLARE_CLASSNAME(MgInvalidPropertyTypeException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgInvalidPropertyTypeException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the \
                exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the \
                exception occurs.
-    ///
-    MgInvalidPropertyTypeException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgInvalidPropertyTypeException object.
-    ///
-    virtual ~MgInvalidPropertyTypeException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgInvalidPropertyTypeException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = \
                Foundation_Exception_MgInvalidPropertyTypeException;
-};
-
-#endif

Deleted: trunk/MgDev/Common/Foundation/Exception/InvalidStreamHeaderException.cpp
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/InvalidStreamHeaderException.cpp	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/InvalidStreamHeaderException.cpp	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -1,40 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgInvalidStreamHeaderException, MgStreamIoException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgInvalidStreamHeaderException object.
-///
-MgInvalidStreamHeaderException::MgInvalidStreamHeaderException(CREFSTRING \
                methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgStreamIoException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgInvalidStreamHeaderException::~MgInvalidStreamHeaderException() throw()
-{
-}

Deleted: trunk/MgDev/Common/Foundation/Exception/InvalidStreamHeaderException.h
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/InvalidStreamHeaderException.h	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/InvalidStreamHeaderException.h	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -1,70 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#ifndef MG_INVALID_STREAM_HEADER_EXCEPTION_H_
-#define MG_INVALID_STREAM_HEADER_EXCEPTION_H_
-
-/// \ingroup Exceptions_Module
-
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when a stream header is invalid.
-///
-class MG_FOUNDATION_API MgInvalidStreamHeaderException : public MgStreamIoException
-{
-    DECLARE_CLASSNAME(MgInvalidStreamHeaderException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgInvalidStreamHeaderException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the \
                exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the \
                exception occurs.
-    ///
-    MgInvalidStreamHeaderException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgInvalidStreamHeaderException object.
-    ///
-    virtual ~MgInvalidStreamHeaderException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgInvalidStreamHeaderException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = \
                Foundation_Exception_MgInvalidStreamHeaderException;
-};
-
-#endif

Deleted: trunk/MgDev/Common/Foundation/Exception/IoException.cpp
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/IoException.cpp	2022-09-15 10:14:11 UTC \
                (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/IoException.cpp	2022-10-10 09:40:18 UTC \
(rev 9971) @@ -1,40 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgIoException, MgSystemException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgIoException object.
-///
-MgIoException::MgIoException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgSystemException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgIoException::~MgIoException() throw()
-{
-}

Deleted: trunk/MgDev/Common/Foundation/Exception/IoException.h
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/IoException.h	2022-09-15 10:14:11 UTC \
                (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/IoException.h	2022-10-10 09:40:18 UTC \
(rev 9971) @@ -1,69 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#ifndef MG_IO_EXCEPTION_H_
-#define MG_IO_EXCEPTION_H_
-
-/// \ingroup Exceptions_Module
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when an I/O error occurs.
-///
-class MG_FOUNDATION_API MgIoException : public MgSystemException
-{
-    DECLARE_CLASSNAME(MgIoException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgIoException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the \
                exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the \
                exception occurs.
-    ///
-    MgIoException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgIoException object.
-    ///
-    virtual ~MgIoException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgIoException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Foundation_Exception_MgIoException;
-};
-
-#endif

Deleted: trunk/MgDev/Common/Foundation/Exception/LengthException.cpp
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/LengthException.cpp	2022-09-15 10:14:11 \
                UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/LengthException.cpp	2022-10-10 09:40:18 \
UTC (rev 9971) @@ -1,40 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgLengthException, MgSystemException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgInvalidArgumentException object.
-///
-MgLengthException::MgLengthException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgSystemException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgLengthException::~MgLengthException() throw()
-{
-}

Deleted: trunk/MgDev/Common/Foundation/Exception/LengthException.h
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/LengthException.h	2022-09-15 10:14:11 UTC \
                (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/LengthException.h	2022-10-10 09:40:18 UTC \
(rev 9971) @@ -1,68 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#ifndef MG_LENGTH_EXCEPTION_H_
-#define MG_LENGTH_EXCEPTION_H_
-
-/// \ingroup Exceptions_Module
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when a length of some item does not match the expected length.
-class MG_FOUNDATION_API MgLengthException : public MgSystemException
-{
-    DECLARE_CLASSNAME(MgLengthException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgLengthException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the \
                exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the \
                exception occurs.
-    ///
-    MgLengthException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgDomainException object.
-    ///
-    virtual ~MgLengthException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgLengthException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Foundation_Exception_MgLengthException;
-};
-
-#endif

Deleted: trunk/MgDev/Common/Foundation/Exception/LogicException.cpp
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/LogicException.cpp	2022-09-15 10:14:11 \
                UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/LogicException.cpp	2022-10-10 09:40:18 \
UTC (rev 9971) @@ -1,40 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgLogicException, MgSystemException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgLogicException object.
-///
-MgLogicException::MgLogicException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgSystemException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgLogicException::~MgLogicException() throw()
-{
-}

Deleted: trunk/MgDev/Common/Foundation/Exception/LogicException.h
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/LogicException.h	2022-09-15 10:14:11 UTC \
                (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/LogicException.h	2022-10-10 09:40:18 UTC \
(rev 9971) @@ -1,70 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#ifndef MG_LOGIC_EXCEPTION_H_
-#define MG_LOGIC_EXCEPTION_H_
-
-/// \ingroup Exceptions_Module
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown to report errors presumably detectable
-/// before the program executes, such as violations of logical preconditions.
-///
-class MG_FOUNDATION_API MgLogicException : public MgSystemException
-{
-    DECLARE_CLASSNAME(MgLogicException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgLogicException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the \
                exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the \
                exception occurs.
-    ///
-    MgLogicException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgLogicException object.
-    ///
-    virtual ~MgLogicException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgLogicException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Foundation_Exception_MgLogicException;
-};
-
-#endif

Deleted: trunk/MgDev/Common/Foundation/Exception/NotFiniteNumberException.cpp
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/NotFiniteNumberException.cpp	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/NotFiniteNumberException.cpp	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -1,40 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgNotFiniteNumberException, MgSystemException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgNotFiniteNumberException object.
-///
-MgNotFiniteNumberException::MgNotFiniteNumberException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgSystemException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgNotFiniteNumberException::~MgNotFiniteNumberException() throw()
-{
-}

Deleted: trunk/MgDev/Common/Foundation/Exception/NotFiniteNumberException.h
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/NotFiniteNumberException.h	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/NotFiniteNumberException.h	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -1,70 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#ifndef MG_NOT_FINITE_NUMBER_EXCEPTION_H_
-#define MG_NOT_FINITE_NUMBER_EXCEPTION_H_
-
-/// \ingroup Exceptions_Module
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when a floating-point value is positive infinity,
-/// negative infinity, or Not-a-Number (NaN).
-///
-class MG_FOUNDATION_API MgNotFiniteNumberException : public MgSystemException
-{
-    DECLARE_CLASSNAME(MgNotFiniteNumberException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgNotFiniteNumberException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the \
                exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the \
                exception occurs.
-    ///
-    MgNotFiniteNumberException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgNotFiniteNumberException object.
-    ///
-    virtual ~MgNotFiniteNumberException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgNotFiniteNumberException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Foundation_Exception_MgNotFiniteNumberException;
-};
-
-#endif

Deleted: trunk/MgDev/Common/Foundation/Exception/NotImplementedException.cpp
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/NotImplementedException.cpp	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/NotImplementedException.cpp	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -1,40 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgNotImplementedException, MgSystemException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgNotImplementedException object.
-///
-MgNotImplementedException::MgNotImplementedException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgSystemException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgNotImplementedException::~MgNotImplementedException() throw()
-{
-}

Deleted: trunk/MgDev/Common/Foundation/Exception/NotImplementedException.h
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/NotImplementedException.h	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/NotImplementedException.h	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -1,70 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#ifndef MG_NOT_IMPLEMENTED_EXCEPTION_H_
-#define MG_NOT_IMPLEMENTED_EXCEPTION_H_
-
-/// \ingroup Exceptions_Module
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when an operation that has not been implemented yet is invoked.
-///
-class MG_FOUNDATION_API MgNotImplementedException : public MgSystemException
-{
-    DECLARE_CLASSNAME(MgNotImplementedException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgNotImplementedException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the \
                exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the \
                exception occurs.
-    ///
-    MgNotImplementedException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgNotImplementedException object.
-    ///
-    virtual ~MgNotImplementedException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgNotImplementedException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Foundation_Exception_MgNotImplementedException;
-};
-
-#endif

Deleted: trunk/MgDev/Common/Foundation/Exception/NullArgumentException.cpp
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/NullArgumentException.cpp	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/NullArgumentException.cpp	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -1,40 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgNullArgumentException, MgSystemException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgNullArgumentException object.
-///
-MgNullArgumentException::MgNullArgumentException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgSystemException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgNullArgumentException::~MgNullArgumentException() throw()
-{
-}

Deleted: trunk/MgDev/Common/Foundation/Exception/NullArgumentException.h
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/NullArgumentException.h	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/NullArgumentException.h	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -1,70 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#ifndef MG_NULL_ARGUMENT_EXCEPTION_H_
-#define MG_NULL_ARGUMENT_EXCEPTION_H_
-
-/// \ingroup Exceptions_Module
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when a null argument is passed to a method
-/// that expects a non-null value.
-///
-class MG_FOUNDATION_API MgNullArgumentException : public MgSystemException
-{
-    DECLARE_CLASSNAME(MgNullArgumentException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgNullArgumentException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the \
                exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the \
                exception occurs.
-    ///
-    MgNullArgumentException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgNullArgumentException object.
-    ///
-    virtual ~MgNullArgumentException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgNullArgumentException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Foundation_Exception_MgNullArgumentException;
-};
-
-#endif

Deleted: trunk/MgDev/Common/Foundation/Exception/NullPropertyValueException.cpp
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/NullPropertyValueException.cpp	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/NullPropertyValueException.cpp	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -1,40 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgNullPropertyValueException, MgApplicationException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgNullPropertyValueException object.
-///
-MgNullPropertyValueException::MgNullPropertyValueException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgApplicationException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgNullPropertyValueException::~MgNullPropertyValueException() throw()
-{
-}

Deleted: trunk/MgDev/Common/Foundation/Exception/NullPropertyValueException.h
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/NullPropertyValueException.h	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/NullPropertyValueException.h	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -1,71 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#ifndef MG_NULL_PROPERTY_VALUE_EXCEPTION_H_
-#define MG_NULL_PROPERTY_VALUE_EXCEPTION_H_
-
-/// \ingroup Exceptions_Module
-
-#include "Foundation.h"
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when a property value is null.
-///
-class MG_FOUNDATION_API MgNullPropertyValueException : public MgApplicationException
-{
-    DECLARE_CLASSNAME(MgNullPropertyValueException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgNullPropertyValueException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the \
                exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the \
                exception occurs.
-    ///
-    MgNullPropertyValueException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgNullPropertyValueException object.
-    ///
-    virtual ~MgNullPropertyValueException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgNullPropertyValueException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Foundation_Exception_MgNullPropertyValueException;
-};
-
-#endif

Deleted: trunk/MgDev/Common/Foundation/Exception/NullReferenceException.cpp
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/NullReferenceException.cpp	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/NullReferenceException.cpp	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -1,40 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgNullReferenceException, MgSystemException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgNullReferenceException object.
-///
-MgNullReferenceException::MgNullReferenceException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgSystemException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgNullReferenceException::~MgNullReferenceException() throw()
-{
-}

Deleted: trunk/MgDev/Common/Foundation/Exception/NullReferenceException.h
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/NullReferenceException.h	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/NullReferenceException.h	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -1,69 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#ifndef MG_NULL_REFERENCE_EXCEPTION_H_
-#define MG_NULL_REFERENCE_EXCEPTION_H_
-
-/// \ingroup Exceptions_Module
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when there is an attempt to dereference a null object reference.
-///
-class MG_FOUNDATION_API MgNullReferenceException : public MgSystemException
-{
-    DECLARE_CLASSNAME(MgNullReferenceException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgNullReferenceException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the \
                exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the \
                exception occurs.
-    ///
-    MgNullReferenceException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgNullReferenceException object.
-    ///
-    virtual ~MgNullReferenceException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgNullReferenceException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Foundation_Exception_MgNullReferenceException;
-};
-
-#endif

Deleted: trunk/MgDev/Common/Foundation/Exception/ObjectNotFoundException.cpp
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/ObjectNotFoundException.cpp	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/ObjectNotFoundException.cpp	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -1,40 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgObjectNotFoundException, MgSystemException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgObjectNotFoundException object.
-///
-MgObjectNotFoundException::MgObjectNotFoundException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgSystemException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgObjectNotFoundException::~MgObjectNotFoundException() throw()
-{
-}

Deleted: trunk/MgDev/Common/Foundation/Exception/ObjectNotFoundException.h
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/ObjectNotFoundException.h	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/ObjectNotFoundException.h	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -1,70 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#ifndef MG_OBJECT_NOT_FOUND_EXCEPTION_H_
-#define MG_OBJECT_NOT_FOUND_EXCEPTION_H_
-
-/// \ingroup Exceptions_Module
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when attempting to access an object
-/// that cannot be found.
-///
-class MG_FOUNDATION_API MgObjectNotFoundException : public MgSystemException
-{
-    DECLARE_CLASSNAME(MgObjectNotFoundException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgObjectNotFoundException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the \
                exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the \
                exception occurs.
-    ///
-    MgObjectNotFoundException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgObjectNotFoundException object.
-    ///
-    virtual ~MgObjectNotFoundException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgObjectNotFoundException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Foundation_Exception_MgObjectNotFoundException;
-};
-
-#endif

Deleted: trunk/MgDev/Common/Foundation/Exception/OutOfMemoryException.cpp
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/OutOfMemoryException.cpp	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/OutOfMemoryException.cpp	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -1,40 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgOutOfMemoryException, MgSystemException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgOutOfMemoryException object.
-///
-MgOutOfMemoryException::MgOutOfMemoryException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgSystemException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgOutOfMemoryException::~MgOutOfMemoryException() throw()
-{
-}

Deleted: trunk/MgDev/Common/Foundation/Exception/OutOfMemoryException.h
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/OutOfMemoryException.h	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/OutOfMemoryException.h	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -1,69 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#ifndef MG_OUT_OF_MEMORY_EXCEPTION_H_
-#define MG_OUT_OF_MEMORY_EXCEPTION_H_
-
-/// \ingroup Exceptions_Module
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when required memory cannot be allocated.
-///
-class MG_FOUNDATION_API MgOutOfMemoryException : public MgSystemException
-{
-    DECLARE_CLASSNAME(MgOutOfMemoryException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgOutOfMemoryException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the \
                exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the \
                exception occurs.
-    ///
-    MgOutOfMemoryException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgOutOfMemoryException object.
-    ///
-    virtual ~MgOutOfMemoryException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgOutOfMemoryException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Foundation_Exception_MgOutOfMemoryException;
-};
-
-#endif

Deleted: trunk/MgDev/Common/Foundation/Exception/OutOfRangeException.cpp
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/OutOfRangeException.cpp	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/OutOfRangeException.cpp	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -1,40 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgOutOfRangeException, MgSystemException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgOutOfRangeException object.
-///
-MgOutOfRangeException::MgOutOfRangeException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgSystemException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgOutOfRangeException::~MgOutOfRangeException() throw()
-{
-}

Deleted: trunk/MgDev/Common/Foundation/Exception/OutOfRangeException.h
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/OutOfRangeException.h	2022-09-15 10:14:11 \
                UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/OutOfRangeException.h	2022-10-10 09:40:18 \
UTC (rev 9971) @@ -1,75 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#ifndef MG_OUT_OF_RANGE_EXCEPTION_H_
-#define MG_OUT_OF_RANGE_EXCEPTION_H_
-
-/// \ingroup Exceptions_Module
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when a parameter value passed to a method
-/// is not in the valid range specified by its documentation.
-///
-/// \remarks
-/// This exception is generally thrown by the collection classes when the
-/// index passed to a method is less than zero, or greater or equal to the
-/// number of elements in the collection.
-///
-class MG_FOUNDATION_API MgOutOfRangeException : public MgSystemException
-{
-    DECLARE_CLASSNAME(MgOutOfRangeException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgOutOfRangeException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the \
                exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the \
                exception occurs.
-    ///
-    MgOutOfRangeException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgOutOfRangeException object.
-    ///
-    virtual ~MgOutOfRangeException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgOutOfRangeException)
-
-CLASS_ID:
-    static const INT32 m_cls_id = Foundation_Exception_MgOutOfRangeException;
-
-};
-
-#endif

Deleted: trunk/MgDev/Common/Foundation/Exception/OverflowException.cpp
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/OverflowException.cpp	2022-09-15 10:14:11 \
                UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/OverflowException.cpp	2022-10-10 09:40:18 \
UTC (rev 9971) @@ -1,40 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgOverflowException, MgSystemException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgOverflowException object.
-///
-MgOverflowException::MgOverflowException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgSystemException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgOverflowException::~MgOverflowException() throw()
-{
-}

Deleted: trunk/MgDev/Common/Foundation/Exception/OverflowException.h
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/OverflowException.h	2022-09-15 10:14:11 \
                UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/OverflowException.h	2022-10-10 09:40:18 \
UTC (rev 9971) @@ -1,70 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#ifndef MG_OVERFLOW_EXCEPTION_H_
-#define MG_OVERFLOW_EXCEPTION_H_
-
-/// \ingroup Exceptions_Module
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when an arithmetic, casting, or conversion
-/// operation in a checked context results in an overflow.
-///
-class MG_FOUNDATION_API MgOverflowException : public MgSystemException
-{
-    DECLARE_CLASSNAME(MgOverflowException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgOverflowException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the \
                exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the \
                exception occurs.
-    ///
-    MgOverflowException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgOverflowException object.
-    ///
-    virtual ~MgOverflowException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgOverflowException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Foundation_Exception_MgOverflowException;
-};
-
-#endif

Deleted: trunk/MgDev/Common/Foundation/Exception/PlatformNotSupportedException.cpp
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/PlatformNotSupportedException.cpp	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/PlatformNotSupportedException.cpp	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -1,40 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgPlatformNotSupportedException, MgSystemException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgPlatformNotSupportedException object.
-///
-MgPlatformNotSupportedException::MgPlatformNotSupportedException(CREFSTRING \
                methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgSystemException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgPlatformNotSupportedException::~MgPlatformNotSupportedException() throw()
-{
-}

Deleted: trunk/MgDev/Common/Foundation/Exception/PlatformNotSupportedException.h
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/PlatformNotSupportedException.h	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/PlatformNotSupportedException.h	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -1,69 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#ifndef MG_PLATFORM_NOT_SUPPORTED_EXCEPTION_H_
-#define MG_PLATFORM_NOT_SUPPORTED_EXCEPTION_H_
-
-/// \ingroup Exceptions_Module
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when a feature does not run on a particular platform.
-///
-class MG_FOUNDATION_API MgPlatformNotSupportedException : public MgSystemException
-{
-    DECLARE_CLASSNAME(MgPlatformNotSupportedException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgPlatformNotSupportedException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the \
                exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the \
                exception occurs.
-    ///
-    MgPlatformNotSupportedException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgPlatformNotSupportedException object.
-    ///
-    virtual ~MgPlatformNotSupportedException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgPlatformNotSupportedException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = \
                Foundation_Exception_MgPlatformNotSupportedException;
-};
-
-#endif

Deleted: trunk/MgDev/Common/Foundation/Exception/ResourceTagNotFoundException.cpp
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/ResourceTagNotFoundException.cpp	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/ResourceTagNotFoundException.cpp	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -1,40 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgResourceTagNotFoundException, MgApplicationException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgResourceTagNotFoundException object.
-///
-MgResourceTagNotFoundException::MgResourceTagNotFoundException(CREFSTRING \
                methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgApplicationException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the MgResourceTagNotFoundException object.
-///
-MgResourceTagNotFoundException::~MgResourceTagNotFoundException() throw()
-{
-}

Deleted: trunk/MgDev/Common/Foundation/Exception/ResourceTagNotFoundException.h
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/ResourceTagNotFoundException.h	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/ResourceTagNotFoundException.h	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -1,69 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-/// \ingroup Exceptions_Module
-
-#ifndef MG_RESOURCE_TAG_NOT_FOUND_EXCEPTION_H_
-#define MG_RESOURCE_TAG_NOT_FOUND_EXCEPTION_H_
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when a resource tag is not found.
-///
-class MG_FOUNDATION_API MgResourceTagNotFoundException : public \
                MgApplicationException
-{
-    DECLARE_CLASSNAME(MgResourceTagNotFoundException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgResourceTagNotFoundException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the \
                exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the \
                exception occurs.
-    ///
-    MgResourceTagNotFoundException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destruct the MgResourceTagNotFoundException object.
-    ///
-    virtual ~MgResourceTagNotFoundException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgResourceTagNotFoundException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = \
                Foundation_Exception_MgResourceTagNotFoundException;
-};
-
-#endif

Deleted: trunk/MgDev/Common/Foundation/Exception/ResourcesException.cpp
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/ResourcesException.cpp	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/ResourcesException.cpp	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -1,40 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgResourcesException, MgApplicationException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgResourcesException object.
-///
-MgResourcesException::MgResourcesException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgApplicationException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgResourcesException::~MgResourcesException() throw()
-{
-}

Deleted: trunk/MgDev/Common/Foundation/Exception/ResourcesException.h
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/ResourcesException.h	2022-09-15 10:14:11 \
                UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/ResourcesException.h	2022-10-10 09:40:18 \
UTC (rev 9971) @@ -1,69 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#ifndef MG_RESOURCES_EXCEPTION_H_
-#define MG_RESOURCES_EXCEPTION_H_
-
-/// \ingroup Exceptions_Module
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when an error occurs with the resources.
-///
-class MG_FOUNDATION_API MgResourcesException : public MgApplicationException
-{
-    DECLARE_CLASSNAME(MgResourcesException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgFileNotFoundException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the \
                exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the \
                exception occurs.
-    ///
-    MgResourcesException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgResourcesException object.
-    ///
-    virtual ~MgResourcesException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgResourcesException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Foundation_Exception_MgResourcesException;
-};
-
-#endif

Deleted: trunk/MgDev/Common/Foundation/Exception/ResourcesLoadFailedException.cpp
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/ResourcesLoadFailedException.cpp	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/ResourcesLoadFailedException.cpp	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -1,49 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgResourcesLoadFailedException, MgApplicationException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgResourcesLoadFailedException object.
-///
-MgResourcesLoadFailedException::MgResourcesLoadFailedException(CREFSTRING \
                methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgApplicationException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgResourcesLoadFailedException::~MgResourcesLoadFailedException() throw()
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Retrieve the formatted exception message for the specified locale.
-///
-STRING MgResourcesLoadFailedException::GetExceptionMessage(CREFSTRING locale) \
                throw()
-{
-    return MgException::GetExceptionMessage(locale, \
                MgResources::FailedToLoadResourcesFile);
-}

Deleted: trunk/MgDev/Common/Foundation/Exception/ResourcesLoadFailedException.h
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/ResourcesLoadFailedException.h	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/ResourcesLoadFailedException.h	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -1,86 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#ifndef MG_RESOURCES_LOADFAILED_EXCEPTION_H_
-#define MG_RESOURCES_LOADFAILED_EXCEPTION_H_
-
-/// \ingroup Exceptions_Module
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when an error occurs loading resources.
-/// \remarks
-/// Resources may fail to load if the file itself is not found or if there is
-/// a syntax error in the file.
-///
-class MG_FOUNDATION_API MgResourcesLoadFailedException : public \
                MgApplicationException
-{
-    DECLARE_CLASSNAME(MgResourcesLoadFailedException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgResourcesLoadFailedException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the \
                exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the \
                exception occurs.
-    ///
-    MgResourcesLoadFailedException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgResourcesException object.
-    ///
-    virtual ~MgResourcesLoadFailedException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgResourcesLoadFailedException)
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Retrieve the formatted exception message for the specified locale.
-    ///
-    /// \param locale
-    /// The locale identifier to format the details text.
-    /// Locale codes are 2 letters language codes defined by ISO 639-1.
-    /// Please refer to  http://www.loc.gov/standards/iso639-2/englangn.html
-    ///
-    /// \return
-    /// Formatted exception message
-    ///
-    virtual STRING GetExceptionMessage(CREFSTRING locale) throw();
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = \
                Foundation_Exception_MgResourcesLoadFailedException;
-};
-
-#endif

Deleted: trunk/MgDev/Common/Foundation/Exception/RuntimeException.cpp
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/RuntimeException.cpp	2022-09-15 10:14:11 \
                UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/RuntimeException.cpp	2022-10-10 09:40:18 \
UTC (rev 9971) @@ -1,40 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgRuntimeException, MgSystemException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgRuntimeException object.
-///
-MgRuntimeException::MgRuntimeException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgSystemException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgRuntimeException::~MgRuntimeException() throw()
-{
-}

Deleted: trunk/MgDev/Common/Foundation/Exception/RuntimeException.h
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/RuntimeException.h	2022-09-15 10:14:11 \
                UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/RuntimeException.h	2022-10-10 09:40:18 \
UTC (rev 9971) @@ -1,74 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#ifndef MG_RUNTIME_EXCEPTION_H_
-#define MG_RUNTIME_EXCEPTION_H_
-
-/// \ingroup Exceptions_Module
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when an internal runtime error occurs.
-///
-/// \remarks
-/// Examples include a missing or invalid object type id or a failure on file \
                input/output.
-/// This exception generally does not reflect an error in the application's
-/// logic but instead denotes an unexpected runtime situation.
-///
-class MG_FOUNDATION_API MgRuntimeException : public MgSystemException
-{
-    DECLARE_CLASSNAME(MgRuntimeException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgRuntimeException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the \
                exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the \
                exception occurs.
-    ///
-    MgRuntimeException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgRuntimeException object.
-    ///
-    virtual ~MgRuntimeException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgRuntimeException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Foundation_Exception_MgRuntimeException;
-};
-
-#endif

Deleted: trunk/MgDev/Common/Foundation/Exception/StreamIoException.cpp
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/StreamIoException.cpp	2022-09-15 10:14:11 \
                UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/StreamIoException.cpp	2022-10-10 09:40:18 \
UTC (rev 9971) @@ -1,40 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgStreamIoException, MgIoException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgStreamIoException object.
-///
-MgStreamIoException::MgStreamIoException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgIoException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgStreamIoException::~MgStreamIoException() throw()
-{
-}

Deleted: trunk/MgDev/Common/Foundation/Exception/StreamIoException.h
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/StreamIoException.h	2022-09-15 10:14:11 \
                UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/StreamIoException.h	2022-10-10 09:40:18 \
UTC (rev 9971) @@ -1,71 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#ifndef MG_STREAM_IO_EXCEPTION_H_
-#define MG_STREAM_IO_EXCEPTION_H_
-
-/// \ingroup Exceptions_Module
-
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when low-level stream I/O problems occur
-/// during communication between server and web-tier.
-///
-class MG_FOUNDATION_API MgStreamIoException : public MgIoException
-{
-    DECLARE_CLASSNAME(MgStreamIoException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgStreamIoException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the \
                exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the \
                exception occurs.
-    ///
-    MgStreamIoException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgStreamIoException object.
-    ///
-    virtual ~MgStreamIoException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgStreamIoException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Foundation_Exception_MgStreamIoException;
-};
-
-#endif

Deleted: trunk/MgDev/Common/Foundation/Exception/SystemException.cpp
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/SystemException.cpp	2022-09-15 10:14:11 \
                UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/SystemException.cpp	2022-10-10 09:40:18 \
UTC (rev 9971) @@ -1,141 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "Foundation.h"
-
-#include <exception>
-// The following three headers are needed to compile under Linux.
-#include <stdexcept>
-#include <typeinfo>
-#include <iostream>
-
-using namespace std;
-
-IMPLEMENT_EXCEPTION_ABSTRACT(MgSystemException)
-
-///////////////////////////////////////////////////////////////////////////////
-///<summary>
-/// Construct a MgSystemException object.
-///
-MgSystemException::MgSystemException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgSystemException::~MgSystemException() throw()
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-///<summary>
-/// Create a MgException from mapping a standard CPP exception to a MgException.
-///</summary>
-///
-MgException* MgSystemException::Create(exception& stdLibException,
-    CREFSTRING methodName, INT32 lineNumber, CREFSTRING fileName) throw()
-{
-    // The following string conversion is used to detect whether or not
-    // the given error message is unicode compliant.
-    // Without this check, the server will not be able to serialize
-    // this exception object correctly.
-
-    STRING messageId;
-    MgStringCollection arguments;
-    bool unicodeCompliant = false;
-
-    MG_TRY()
-
-    STRING wcStr;
-
-    MgUtil::MultiByteToWideChar(stdLibException.what(), wcStr);
-    arguments.Add(wcStr);
-
-    unicodeCompliant = true;
-
-    MG_CATCH_AND_RELEASE()
-
-    if (unicodeCompliant)
-    {
-        messageId = L"MgFormatInnerExceptionMessage";
-    }
-    else
-    {
-        messageId = L"MgFailedToRetrieveSystemExceptionMesage";
-        arguments.Clear();
-    }
-
-    // Use typeid to determine the specific standard library exception type.
-    // An equivalent MgException* is returned.
-    // If typeid cannot determine the specific standard library exception type
-    // a new MgUnclassifiedException is returned.
-
-    if (typeid(stdLibException) == typeid(std::domain_error))
-    {
-        return new MgDomainException(methodName, lineNumber, fileName, NULL, \
                messageId, &arguments);
-    }
-    else if (typeid(stdLibException) == typeid(invalid_argument))
-    {
-        return new MgInvalidArgumentException(methodName, lineNumber, fileName, \
                NULL, messageId, &arguments);
-    }
-    else if (typeid(stdLibException) == typeid(length_error))
-    {
-        return new MgLengthException(methodName, lineNumber, fileName, NULL, \
                messageId, &arguments);
-    }
-    else if (typeid(stdLibException) == typeid(overflow_error))
-    {
-        return new MgOverflowException(methodName, lineNumber, fileName, NULL, \
                messageId, &arguments);
-    }
-    else if (typeid(stdLibException) == typeid(out_of_range)
-          || typeid(stdLibException) == typeid(range_error))
-    {
-        return new MgOutOfRangeException(methodName, lineNumber, fileName, NULL, \
                messageId, &arguments);
-    }
-    else if (typeid(stdLibException) == typeid(underflow_error))
-    {
-        return new MgUnderflowException(methodName, lineNumber, fileName, NULL, \
                messageId, &arguments);
-    }
-    else if (typeid(stdLibException) == typeid(bad_alloc))
-    {
-        return new MgOutOfMemoryException(methodName, lineNumber, fileName, NULL, \
                messageId, &arguments);
-    }
-    else if (typeid(stdLibException) == typeid(bad_cast))
-    {
-        return new MgInvalidCastException(methodName, lineNumber, fileName, NULL, \
                messageId, &arguments);
-    }
-    else if (typeid(stdLibException) == typeid(logic_error))
-    {
-        return new MgLogicException(methodName, lineNumber, fileName, NULL, \
                messageId, &arguments);
-    }
-    else if (typeid(stdLibException) == typeid(bad_exception)
-          || typeid(stdLibException) == typeid(bad_typeid)
-          || typeid(stdLibException) == typeid(ios_base::failure)
-          || typeid(stdLibException) == typeid(runtime_error))
-    {
-        return new MgRuntimeException(methodName, lineNumber, fileName, NULL, \
                messageId, &arguments);
-    }
-    else
-    {
-        return new MgUnclassifiedException(methodName, lineNumber, fileName, NULL, \
                messageId, &arguments);
-    }
-}

Deleted: trunk/MgDev/Common/Foundation/Exception/SystemException.h
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/SystemException.h	2022-09-15 10:14:11 UTC \
                (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/SystemException.h	2022-10-10 09:40:18 UTC \
(rev 9971) @@ -1,78 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#ifndef MG_SYSTEM_EXCEPTION_H_
-#define MG_SYSTEM_EXCEPTION_H_
-
-/// \ingroup Exceptions_Module
-
-////////////////////////////////////////////////////////////////////////////////////////////
                
-/// \brief
-/// Base class for all exceptions representing a system error.
-///
-class MG_FOUNDATION_API MgSystemException : public MgException
-{
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgSystemException object.
-    ///
-    virtual ~MgSystemException() throw();
-
-INTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Create a MgException from mapping a standard CPP exception to a MgException.
-    ///
-    static MgException* Create(exception& stdLibException,
-        CREFSTRING methodName, INT32 lineNumber, CREFSTRING fileName) throw();
-
-protected:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgSystemException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the \
                exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the \
                exception occurs.
-    ///
-    MgSystemException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_ABSTRACT(MgSystemException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Foundation_Exception_MgSystemException;
-};
-
-#endif

Deleted: trunk/MgDev/Common/Foundation/Exception/TemporaryFileNotAvailableException.cpp
 ===================================================================
--- trunk/MgDev/Common/Foundation/Exception/TemporaryFileNotAvailableException.cpp	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/TemporaryFileNotAvailableException.cpp	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -1,40 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgTemporaryFileNotAvailableException, \
                MgApplicationException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgTemporaryFileNotAvailableException object.
-///
-MgTemporaryFileNotAvailableException::MgTemporaryFileNotAvailableException(CREFSTRING \
                methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgApplicationException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgTemporaryFileNotAvailableException::~MgTemporaryFileNotAvailableException() \
                throw()
-{
-}

Deleted: trunk/MgDev/Common/Foundation/Exception/TemporaryFileNotAvailableException.h
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/TemporaryFileNotAvailableException.h	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/TemporaryFileNotAvailableException.h	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -1,71 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#ifndef MG_TEMPORARY_FILE_NOT_AVAILABLE_EXCEPTION_H_
-#define MG_TEMPORARY_FILE_NOT_AVAILABLE_EXCEPTION_H_
-
-/// \ingroup Exceptions_Module
-
-#include "Foundation.h"
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when a temporary file is not available.
-///
-class MG_FOUNDATION_API MgTemporaryFileNotAvailableException : public \
                MgApplicationException
-{
-    DECLARE_CLASSNAME(MgTemporaryFileNotAvailableException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgTemporaryFileNotAvailableException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the \
                exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the \
                exception occurs.
-    ///
-    MgTemporaryFileNotAvailableException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgTemporaryFileNotAvailableException object
-    ///
-    virtual ~MgTemporaryFileNotAvailableException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgTemporaryFileNotAvailableException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = \
                Foundation_Exception_MgTemporaryFileNotAvailableException;
-};
-
-#endif

Deleted: trunk/MgDev/Common/Foundation/Exception/ThirdPartyException.cpp
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/ThirdPartyException.cpp	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/ThirdPartyException.cpp	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -1,84 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_ABSTRACT(MgThirdPartyException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgThirdPartyException object.
-///
-MgThirdPartyException::MgThirdPartyException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments),
-    m_errorCode(0)
-{
-    // The following string conversion is used to detect whether or not
-    // the given error message is unicode compliant.
-    // Without this check, the server will not be able to serialize
-    // this exception object correctly.
-
-    bool unicodeCompliant = false;
-
-    MG_TRY()
-
-    string mbStr;
-
-    for (INT32 i = 0; i < m_whyArguments.GetCount(); ++i)
-    {
-        MgUtil::WideCharToMultiByte(m_whyArguments.GetItem(i), mbStr);
-    }
-
-    unicodeCompliant = true;
-
-    MG_CATCH_AND_RELEASE()
-
-    if (!unicodeCompliant)
-    {
-        m_whyMessageId = L"MgFailedToRetrieveThirdPartyExceptionMesage";
-        m_whyArguments.Clear();
-    }
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgThirdPartyException::~MgThirdPartyException() throw()
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Get the error code.
-///
-INT32 MgThirdPartyException::GetErrorCode() throw()
-{
-    return m_errorCode;
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Set the error code.
-///
-void MgThirdPartyException::SetErrorCode(INT32 errorCode) throw()
-{
-    m_errorCode = errorCode;
-}

Deleted: trunk/MgDev/Common/Foundation/Exception/ThirdPartyException.h
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/ThirdPartyException.h	2022-09-15 10:14:11 \
                UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/ThirdPartyException.h	2022-10-10 09:40:18 \
UTC (rev 9971) @@ -1,83 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#ifndef MG_THIRD_PARTY_EXCEPTION_H_
-#define MG_THIRD_PARTY_EXCEPTION_H_
-
-/// \ingroup Exceptions_Module
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Base class for third party exceptions.
-///
-/// \remarks
-/// Third party exceptions are thrown from components such as FDO
-/// that are used by \ProdName but are not part of
-/// \ProdName itself.
-///
-class MG_FOUNDATION_API MgThirdPartyException : public MgException
-{
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgThirdPartyException object.
-    ///
-    virtual ~MgThirdPartyException() throw();
-
-INTERNAL_API:
-
-    INT32 GetErrorCode() throw();
-    void SetErrorCode(INT32 errorCode) throw();
-
-protected:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgThirdPartyException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the \
                exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the \
                exception occurs.
-    ///
-    MgThirdPartyException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_ABSTRACT(MgThirdPartyException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Foundation_Exception_MgThirdPartyException;
-
-private:
-
-    INT32 m_errorCode;
-};
-
-#endif

Deleted: trunk/MgDev/Common/Foundation/Exception/UnclassifiedException.cpp
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/UnclassifiedException.cpp	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/UnclassifiedException.cpp	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -1,40 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgUnclassifiedException, MgSystemException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgUnclassifiedException object.
-///
-MgUnclassifiedException::MgUnclassifiedException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgSystemException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgUnclassifiedException::~MgUnclassifiedException() throw()
-{
-}

Deleted: trunk/MgDev/Common/Foundation/Exception/UnclassifiedException.h
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/UnclassifiedException.h	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/UnclassifiedException.h	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -1,72 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#ifndef MG_UNCLASSIFIED_EXCEPTION_H_
-#define MG_UNCLASSIFIED_EXCEPTION_H_
-
-/// \ingroup Exceptions_Module
-
-#include "Foundation.h"
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when the server or web-tier does not know the
-/// cause of the actual problem.
-///
-class MG_FOUNDATION_API MgUnclassifiedException : public MgSystemException
-{
-    DECLARE_CLASSNAME(MgUnclassifiedException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgUnclassifiedException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the \
                exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the \
                exception occurs.
-    ///
-    MgUnclassifiedException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgUnclassifiedException object.
-    ///
-    virtual ~MgUnclassifiedException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgUnclassifiedException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Foundation_Exception_MgUnclassifiedException;
-};
-
-#endif

Deleted: trunk/MgDev/Common/Foundation/Exception/UnderflowException.cpp
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/UnderflowException.cpp	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/UnderflowException.cpp	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -1,40 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgUnderflowException, MgSystemException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgUnderflowException object.
-///
-MgUnderflowException::MgUnderflowException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgSystemException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgUnderflowException::~MgUnderflowException() throw()
-{
-}

Deleted: trunk/MgDev/Common/Foundation/Exception/UnderflowException.h
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/UnderflowException.h	2022-09-15 10:14:11 \
                UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/UnderflowException.h	2022-10-10 09:40:18 \
UTC (rev 9971) @@ -1,69 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#ifndef MG_UNDERFLOW_EXCEPTION_H_
-#define MG_UNDERFLOW_EXCEPTION_H_
-
-/// \ingroup Exceptions_Module
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when an arithmetic underflow occurs.
-///
-class MG_FOUNDATION_API MgUnderflowException : public MgSystemException
-{
-    DECLARE_CLASSNAME(MgUnderflowException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgUnderflowException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the \
                exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the \
                exception occurs.
-    ///
-    MgUnderflowException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgUnderflowException object.
-    ///
-    virtual ~MgUnderflowException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgUnderflowException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Foundation_Exception_MgUnderflowException;
-};
-
-#endif

Deleted: trunk/MgDev/Common/Foundation/Exception/XmlException.cpp
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/XmlException.cpp	2022-09-15 10:14:11 UTC \
                (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/XmlException.cpp	2022-10-10 09:40:18 UTC \
(rev 9971) @@ -1,40 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgXmlException, MgThirdPartyException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgXmlException object.
-///
-MgXmlException::MgXmlException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgThirdPartyException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgXmlException::~MgXmlException() throw()
-{
-}

Deleted: trunk/MgDev/Common/Foundation/Exception/XmlException.h
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/XmlException.h	2022-09-15 10:14:11 UTC \
                (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/XmlException.h	2022-10-10 09:40:18 UTC \
(rev 9971) @@ -1,69 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#ifndef MG_XML_EXCEPTION_H_
-#define MG_XML_EXCEPTION_H_
-
-/// \ingroup Exceptions_Module
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when an error occurs while processing XML.
-///
-class MG_FOUNDATION_API MgXmlException : public MgThirdPartyException
-{
-    DECLARE_CLASSNAME(MgXmlException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgXmlException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the \
                exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the \
                exception occurs.
-    ///
-    MgXmlException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgXmlException object.
-    ///
-    virtual ~MgXmlException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgXmlException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Foundation_Exception_MgXmlException;
-};
-
-#endif

Deleted: trunk/MgDev/Common/Foundation/Exception/XmlParserException.cpp
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/XmlParserException.cpp	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/XmlParserException.cpp	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -1,40 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgXmlParserException, MgThirdPartyException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgXmlParserException object.
-///
-MgXmlParserException::MgXmlParserException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgThirdPartyException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgXmlParserException::~MgXmlParserException() throw()
-{
-}

Deleted: trunk/MgDev/Common/Foundation/Exception/XmlParserException.h
===================================================================
--- trunk/MgDev/Common/Foundation/Exception/XmlParserException.h	2022-09-15 10:14:11 \
                UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Exception/XmlParserException.h	2022-10-10 09:40:18 \
UTC (rev 9971) @@ -1,71 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#ifndef MG_XML_PARSER_EXCEPTION_H_
-#define MG_XML_PARSER_EXCEPTION_H_
-
-/// \ingroup Exceptions_Module
-
-#include "Foundation.h"
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Wrapper for exceptions thrown from the Xerces XML parser.
-///
-class MG_FOUNDATION_API MgXmlParserException : public MgThirdPartyException
-{
-    DECLARE_CLASSNAME(MgXmlParserException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgXmlParserException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the \
                exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the \
                exception occurs.
-    ///
-    MgXmlParserException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgXmlParserException object.
-    ///
-    virtual ~MgXmlParserException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgXmlParserException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Foundation_Exception_MgXmlParserException;
-};
-
-#endif

Modified: trunk/MgDev/Common/Foundation/Foundation.h
===================================================================
--- trunk/MgDev/Common/Foundation/Foundation.h	2022-09-15 10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/Foundation.h	2022-10-10 09:40:18 UTC (rev 9971)
@@ -142,58 +142,8 @@
 // Base exception classes and defines
 #include "Exception/ExceptionDefs.h"
 #include "Exception/Exception.h"
-#include "Exception/SystemException.h"
-#include "Exception/OutOfRangeException.h"
-#include "Exception/IoException.h"
-#include "Exception/FileIoException.h"
-#include "Exception/StreamIoException.h"
+#include "Exception/ExceptionCodes.h"
 
-#include "Exception/ApplicationException.h"
-#include "Exception/ArgumentOutOfRangeException.h"
-#include "Exception/ClassNotFoundException.h"
-#include "Exception/ConfigurationException.h"
-#include "Exception/ConfigurationLoadFailedException.h"
-#include "Exception/ConfigurationSaveFailedException.h"
-#include "Exception/DateTimeException.h"
-#include "Exception/DecryptionException.h"
-#include "Exception/DirectoryNotFoundException.h"
-#include "Exception/DivideByZeroException.h"
-#include "Exception/DomainException.h"
-#include "Exception/DuplicateDirectoryException.h"
-#include "Exception/DuplicateFileException.h"
-#include "Exception/DuplicateObjectException.h"
-#include "Exception/EncryptionException.h"
-#include "Exception/FileNotFoundException.h"
-#include "Exception/GridDensityException.h"
-#include "Exception/IndexOutOfRangeException.h"
-#include "Exception/InvalidArgumentException.h"
-#include "Exception/InvalidCastException.h"
-#include "Exception/InvalidMimeTypeException.h"
-#include "Exception/InvalidOperationException.h"
-#include "Exception/InvalidPropertyTypeException.h"
-#include "Exception/InvalidStreamHeaderException.h"
-#include "Exception/LengthException.h"
-#include "Exception/LogicException.h"
-#include "Exception/NotFiniteNumberException.h"
-#include "Exception/NotImplementedException.h"
-#include "Exception/NullArgumentException.h"
-#include "Exception/NullPropertyValueException.h"
-#include "Exception/NullReferenceException.h"
-#include "Exception/ObjectNotFoundException.h"
-#include "Exception/OutOfMemoryException.h"
-#include "Exception/OverflowException.h"
-#include "Exception/PlatformNotSupportedException.h"
-#include "Exception/ResourcesException.h"
-#include "Exception/ResourcesLoadFailedException.h"
-#include "Exception/ResourceTagNotFoundException.h"
-#include "Exception/RuntimeException.h"
-#include "Exception/TemporaryFileNotAvailableException.h"
-#include "Exception/ThirdPartyException.h"
-#include "Exception/UnclassifiedException.h"
-#include "Exception/UnderflowException.h"
-#include "Exception/XmlException.h"
-#include "Exception/XmlParserException.h"
-
 #ifndef SWIG_PUBLIC_API
 #include "System/ByteSourceFileImpl.h"
 #include "System/ByteSourceMemoryImpl.h"

Modified: trunk/MgDev/Common/Foundation/Foundation.vcxproj
===================================================================
--- trunk/MgDev/Common/Foundation/Foundation.vcxproj	2022-09-15 10:14:11 UTC (rev \
                9970)
+++ trunk/MgDev/Common/Foundation/Foundation.vcxproj	2022-10-10 09:40:18 UTC (rev \
9971) @@ -192,96 +192,6 @@
     </Link>
   </ItemDefinitionGroup>
   <ItemGroup>
-    <ClCompile Include="Exception\ApplicationException.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\ArgumentOutOfRangeException.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\ClassNotFoundException.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\ConfigurationException.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\ConfigurationLoadFailedException.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\ConfigurationSaveFailedException.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\DateTimeException.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\DecryptionException.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\DirectoryNotFoundException.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\DivideByZeroException.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\DomainException.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\DuplicateDirectoryException.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\DuplicateFileException.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\DuplicateObjectException.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\EncryptionException.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\Exception.cpp">
       <ExcludedFromBuild \
                Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
                
       <ObjectFileName \
Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(IntDir)%(Filename)1.obj</ObjectFileName>
 @@ -296,224 +206,6 @@
       <ObjectFileName \
Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(IntDir)%(Filename)1.obj</ObjectFileName>
                
       <XMLDocumentationFileName \
Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(IntDir)%(Filename)1.xdc</XMLDocumentationFileName>
  </ClCompile>
-    <ClCompile Include="Exception\FileIoException.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\FileNotFoundException.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\GridDensityException.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\IndexOutOfRangeException.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\InvalidArgumentException.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\InvalidCastException.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\InvalidMimeTypeException.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\InvalidOperationException.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\InvalidPropertyTypeException.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\InvalidStreamHeaderException.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\IoException.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\LengthException.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\LogicException.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\NotFiniteNumberException.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\NotImplementedException.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\NullArgumentException.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\NullPropertyValueException.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\NullReferenceException.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\ObjectNotFoundException.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\OutOfMemoryException.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\OutOfRangeException.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\OverflowException.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\PlatformNotSupportedException.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\ResourcesException.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\ResourcesLoadFailedException.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\ResourceTagNotFoundException.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\RuntimeException.cpp">
-      <ExcludedFromBuild \
                Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
                
-      <ObjectFileName \
Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(IntDir)%(Filename)1.obj</ObjectFileName>
                
-      <XMLDocumentationFileName \
Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(IntDir)%(Filename)1.xdc</XMLDocumentationFileName>
                
-      <ExcludedFromBuild \
                Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
                
-      <ObjectFileName \
Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(IntDir)%(Filename)1.obj</ObjectFileName>
                
-      <XMLDocumentationFileName \
Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(IntDir)%(Filename)1.xdc</XMLDocumentationFileName>
                
-      <ExcludedFromBuild \
                Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
                
-      <ObjectFileName \
Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(IntDir)%(Filename)1.obj</ObjectFileName>
                
-      <XMLDocumentationFileName \
Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(IntDir)%(Filename)1.xdc</XMLDocumentationFileName>
                
-      <ExcludedFromBuild \
                Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
                
-      <ObjectFileName \
Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(IntDir)%(Filename)1.obj</ObjectFileName>
                
-      <XMLDocumentationFileName \
Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(IntDir)%(Filename)1.xdc</XMLDocumentationFileName>
                
-    </ClCompile>
-    <ClCompile Include="Exception\StreamIoException.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\SystemException.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\TemporaryFileNotAvailableException.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\ThirdPartyException.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\UnclassifiedException.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\UnderflowException.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\XmlException.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\XmlParserException.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="Data\BatchPropertyCollection.cpp">
       <ExcludedFromBuild \
                Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
                
       <ExcludedFromBuild \
Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild> @@ \
                -604,6 +296,12 @@
       <ExcludedFromBuild \
                Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
                
       <ExcludedFromBuild \
Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>  \
</ClCompile> +    <ClCompile Include="Exception\ExceptionCodes.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="System\AceStreamHelper.cpp">
       <ExcludedFromBuild \
                Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
                
       <ExcludedFromBuild \
Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild> @@ \
-799,58 +497,9 @@  <ClCompile Include="FoundationBuild.cpp" />
   </ItemGroup>
   <ItemGroup>
-    <ClInclude Include="Exception\ApplicationException.h" />
-    <ClInclude Include="Exception\ArgumentOutOfRangeException.h" />
-    <ClInclude Include="Exception\ClassNotFoundException.h" />
-    <ClInclude Include="Exception\ConfigurationException.h" />
-    <ClInclude Include="Exception\ConfigurationLoadFailedException.h" />
-    <ClInclude Include="Exception\ConfigurationSaveFailedException.h" />
-    <ClInclude Include="Exception\DateTimeException.h" />
-    <ClInclude Include="Exception\DecryptionException.h" />
-    <ClInclude Include="Exception\DirectoryNotFoundException.h" />
-    <ClInclude Include="Exception\DivideByZeroException.h" />
-    <ClInclude Include="Exception\DomainException.h" />
-    <ClInclude Include="Exception\DuplicateDirectoryException.h" />
-    <ClInclude Include="Exception\DuplicateFileException.h" />
-    <ClInclude Include="Exception\DuplicateObjectException.h" />
-    <ClInclude Include="Exception\EncryptionException.h" />
     <ClInclude Include="Exception\Exception.h" />
+    <ClInclude Include="Exception\ExceptionCodes.h" />
     <ClInclude Include="Exception\ExceptionDefs.h" />
-    <ClInclude Include="Exception\FileIoException.h" />
-    <ClInclude Include="Exception\FileNotFoundException.h" />
-    <ClInclude Include="Exception\GridDensityException.h" />
-    <ClInclude Include="Exception\IndexOutOfRangeException.h" />
-    <ClInclude Include="Exception\InvalidArgumentException.h" />
-    <ClInclude Include="Exception\InvalidCastException.h" />
-    <ClInclude Include="Exception\InvalidMimeTypeException.h" />
-    <ClInclude Include="Exception\InvalidOperationException.h" />
-    <ClInclude Include="Exception\InvalidPropertyTypeException.h" />
-    <ClInclude Include="Exception\InvalidStreamHeaderException.h" />
-    <ClInclude Include="Exception\IoException.h" />
-    <ClInclude Include="Exception\LengthException.h" />
-    <ClInclude Include="Exception\LogicException.h" />
-    <ClInclude Include="Exception\NotFiniteNumberException.h" />
-    <ClInclude Include="Exception\NotImplementedException.h" />
-    <ClInclude Include="Exception\NullArgumentException.h" />
-    <ClInclude Include="Exception\NullPropertyValueException.h" />
-    <ClInclude Include="Exception\NullReferenceException.h" />
-    <ClInclude Include="Exception\ObjectNotFoundException.h" />
-    <ClInclude Include="Exception\OutOfMemoryException.h" />
-    <ClInclude Include="Exception\OutOfRangeException.h" />
-    <ClInclude Include="Exception\OverflowException.h" />
-    <ClInclude Include="Exception\PlatformNotSupportedException.h" />
-    <ClInclude Include="Exception\ResourcesException.h" />
-    <ClInclude Include="Exception\ResourcesLoadFailedException.h" />
-    <ClInclude Include="Exception\ResourceTagNotFoundException.h" />
-    <ClInclude Include="Exception\RuntimeException.h" />
-    <ClInclude Include="Exception\StreamIoException.h" />
-    <ClInclude Include="Exception\SystemException.h" />
-    <ClInclude Include="Exception\TemporaryFileNotAvailableException.h" />
-    <ClInclude Include="Exception\ThirdPartyException.h" />
-    <ClInclude Include="Exception\UnclassifiedException.h" />
-    <ClInclude Include="Exception\UnderflowException.h" />
-    <ClInclude Include="Exception\XmlException.h" />
-    <ClInclude Include="Exception\XmlParserException.h" />
     <ClInclude Include="Data\BatchPropertyCollection.h" />
     <ClInclude Include="Data\Byte.h" />
     <ClInclude Include="Data\ByteReader.h" />

Modified: trunk/MgDev/Common/Foundation/Foundation.vcxproj.filters
===================================================================
--- trunk/MgDev/Common/Foundation/Foundation.vcxproj.filters	2022-09-15 10:14:11 UTC \
                (rev 9970)
+++ trunk/MgDev/Common/Foundation/Foundation.vcxproj.filters	2022-10-10 09:40:18 UTC \
(rev 9971) @@ -12,159 +12,9 @@
     </Filter>
   </ItemGroup>
   <ItemGroup>
-    <ClCompile Include="Exception\ApplicationException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\ArgumentOutOfRangeException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\ClassNotFoundException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\ConfigurationException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\ConfigurationLoadFailedException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\ConfigurationSaveFailedException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\DateTimeException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\DecryptionException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\DirectoryNotFoundException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\DivideByZeroException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\DomainException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\DuplicateDirectoryException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\DuplicateFileException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\DuplicateObjectException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\EncryptionException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
     <ClCompile Include="Exception\Exception.cpp">
       <Filter>Exception</Filter>
     </ClCompile>
-    <ClCompile Include="Exception\FileIoException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\FileNotFoundException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\GridDensityException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\IndexOutOfRangeException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\InvalidArgumentException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\InvalidCastException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\InvalidMimeTypeException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\InvalidOperationException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\InvalidPropertyTypeException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\InvalidStreamHeaderException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\IoException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\LengthException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\LogicException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\NotFiniteNumberException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\NotImplementedException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\NullArgumentException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\NullPropertyValueException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\NullReferenceException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\ObjectNotFoundException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\OutOfMemoryException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\OutOfRangeException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\OverflowException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\PlatformNotSupportedException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\ResourcesException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\ResourcesLoadFailedException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\ResourceTagNotFoundException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\RuntimeException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\StreamIoException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\SystemException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\TemporaryFileNotAvailableException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\ThirdPartyException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\UnclassifiedException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\UnderflowException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\XmlException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\XmlParserException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
     <ClCompile Include="Data\BatchPropertyCollection.cpp">
       <Filter>Data</Filter>
     </ClCompile>
@@ -307,53 +157,11 @@
     <ClCompile Include="System\LibraryInit.cpp">
       <Filter>System</Filter>
     </ClCompile>
+    <ClCompile Include="Exception\ExceptionCodes.cpp">
+      <Filter>Exception</Filter>
+    </ClCompile>
   </ItemGroup>
   <ItemGroup>
-    <ClInclude Include="Exception\ApplicationException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\ArgumentOutOfRangeException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\ClassNotFoundException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\ConfigurationException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\ConfigurationLoadFailedException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\ConfigurationSaveFailedException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\DateTimeException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\DecryptionException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\DirectoryNotFoundException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\DivideByZeroException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\DomainException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\DuplicateDirectoryException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\DuplicateFileException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\DuplicateObjectException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\EncryptionException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
     <ClInclude Include="Exception\Exception.h">
       <Filter>Exception</Filter>
     </ClInclude>
@@ -360,111 +168,6 @@
     <ClInclude Include="Exception\ExceptionDefs.h">
       <Filter>Exception</Filter>
     </ClInclude>
-    <ClInclude Include="Exception\FileIoException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\FileNotFoundException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\GridDensityException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\IndexOutOfRangeException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\InvalidArgumentException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\InvalidCastException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\InvalidMimeTypeException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\InvalidOperationException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\InvalidPropertyTypeException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\InvalidStreamHeaderException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\IoException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\LengthException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\LogicException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\NotFiniteNumberException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\NotImplementedException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\NullArgumentException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\NullPropertyValueException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\NullReferenceException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\ObjectNotFoundException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\OutOfMemoryException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\OutOfRangeException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\OverflowException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\PlatformNotSupportedException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\ResourcesException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\ResourcesLoadFailedException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\ResourceTagNotFoundException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\RuntimeException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\StreamIoException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\SystemException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\TemporaryFileNotAvailableException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\ThirdPartyException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\UnclassifiedException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\UnderflowException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\XmlException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\XmlParserException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
     <ClInclude Include="Data\BatchPropertyCollection.h">
       <Filter>Data</Filter>
     </ClInclude>
@@ -656,6 +359,9 @@
     <ClInclude Include="System\LibraryInit.h">
       <Filter>System</Filter>
     </ClInclude>
+    <ClInclude Include="Exception\ExceptionCodes.h">
+      <Filter>Exception</Filter>
+    </ClInclude>
   </ItemGroup>
   <ItemGroup>
     <ResourceCompile Include="Foundation.rc" />

Modified: trunk/MgDev/Common/Foundation/FoundationBuild.cpp
===================================================================
--- trunk/MgDev/Common/Foundation/FoundationBuild.cpp	2022-09-15 10:14:11 UTC (rev \
                9970)
+++ trunk/MgDev/Common/Foundation/FoundationBuild.cpp	2022-10-10 09:40:18 UTC (rev \
9971) @@ -37,57 +37,8 @@
 #include "Data/LinuxNumericalConstants.cpp"
 #endif
 
-#include "Exception/ApplicationException.cpp"
-#include "Exception/ArgumentOutOfRangeException.cpp"
-#include "Exception/ClassNotFoundException.cpp"
-#include "Exception/ConfigurationException.cpp"
-#include "Exception/ConfigurationLoadFailedException.cpp"
-#include "Exception/ConfigurationSaveFailedException.cpp"
-#include "Exception/DateTimeException.cpp"
-#include "Exception/DecryptionException.cpp"
-#include "Exception/DirectoryNotFoundException.cpp"
-#include "Exception/DivideByZeroException.cpp"
-#include "Exception/DomainException.cpp"
-#include "Exception/DuplicateDirectoryException.cpp"
-#include "Exception/DuplicateFileException.cpp"
-#include "Exception/DuplicateObjectException.cpp"
-#include "Exception/EncryptionException.cpp"
 #include "Exception/Exception.cpp"
-#include "Exception/FileIoException.cpp"
-#include "Exception/FileNotFoundException.cpp"
-#include "Exception/GridDensityException.cpp"
-#include "Exception/IndexOutOfRangeException.cpp"
-#include "Exception/InvalidArgumentException.cpp"
-#include "Exception/InvalidCastException.cpp"
-#include "Exception/InvalidMimeTypeException.cpp"
-#include "Exception/InvalidOperationException.cpp"
-#include "Exception/InvalidPropertyTypeException.cpp"
-#include "Exception/InvalidStreamHeaderException.cpp"
-#include "Exception/IoException.cpp"
-#include "Exception/LengthException.cpp"
-#include "Exception/LogicException.cpp"
-#include "Exception/NotFiniteNumberException.cpp"
-#include "Exception/NotImplementedException.cpp"
-#include "Exception/NullArgumentException.cpp"
-#include "Exception/NullPropertyValueException.cpp"
-#include "Exception/NullReferenceException.cpp"
-#include "Exception/ObjectNotFoundException.cpp"
-#include "Exception/OutOfMemoryException.cpp"
-#include "Exception/OutOfRangeException.cpp"
-#include "Exception/OverflowException.cpp"
-#include "Exception/PlatformNotSupportedException.cpp"
-#include "Exception/ResourcesException.cpp"
-#include "Exception/ResourcesLoadFailedException.cpp"
-#include "Exception/ResourceTagNotFoundException.cpp"
-#include "Exception/RuntimeException.cpp"
-#include "Exception/StreamIoException.cpp"
-#include "Exception/SystemException.cpp"
-#include "Exception/TemporaryFileNotAvailableException.cpp"
-#include "Exception/ThirdPartyException.cpp"
-#include "Exception/UnclassifiedException.cpp"
-#include "Exception/UnderflowException.cpp"
-#include "Exception/XmlException.cpp"
-#include "Exception/XmlParserException.cpp"
+#include "Exception/ExceptionCodes.cpp"
 
 #include "System/AceStreamHelper.cpp"
 #include "System/ByteSourceFileImpl.cpp"

Modified: trunk/MgDev/Common/Foundation/System/ByteSourceFileImpl.cpp
===================================================================
--- trunk/MgDev/Common/Foundation/System/ByteSourceFileImpl.cpp	2022-09-15 10:14:11 \
                UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/System/ByteSourceFileImpl.cpp	2022-10-10 09:40:18 \
UTC (rev 9971) @@ -66,7 +66,7 @@
 
     if (bytesRead < 0)
     {
-        throw new MgFileIoException(L"ByteSourceFileImpl.Read",
+        throw new MgException(MgExceptionCodes::MgFileIoException, \
L"ByteSourceFileImpl.Read",  __LINE__, __WFILE__, NULL, L"", NULL);
     }
 
@@ -95,7 +95,7 @@
 {
     if (m_temporary == false)
     {
-        throw new MgInvalidOperationException(L"ByteSourceFileImpl.Rename",
+        throw new MgException(MgExceptionCodes::MgInvalidOperationException, \
L"ByteSourceFileImpl.Rename",  __LINE__,__WFILE__, NULL, L"", NULL);
     }
 
@@ -123,13 +123,13 @@
         if(errno == ENOENT)
         {
             MG_FILE_IO_EXCEPTION_ADD_ERRNO();
-            throw new MgFileNotFoundException(L"ByteSourceFileImpl.LoadFile",
+            throw new MgException(MgExceptionCodes::MgFileNotFoundException, \
                L"ByteSourceFileImpl.LoadFile",
                 __LINE__, __WFILE__, &arguments, L"MgFileIoErrNo", &errNoArgs);
         }
         else
         {
             MG_FILE_IO_EXCEPTION_ADD_ERRNO();
-            throw new MgFileIoException(L"ByteSourceFileImpl.LoadFile",
+            throw new MgException(MgExceptionCodes::MgFileIoException, \
                L"ByteSourceFileImpl.LoadFile",
                 __LINE__, __WFILE__, &arguments, L"MgFileIoErrNo", &errNoArgs);
         }
     }

Modified: trunk/MgDev/Common/Foundation/System/ByteSourceMemoryImpl.cpp
===================================================================
--- trunk/MgDev/Common/Foundation/System/ByteSourceMemoryImpl.cpp	2022-09-15 10:14:11 \
                UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/System/ByteSourceMemoryImpl.cpp	2022-10-10 09:40:18 \
UTC (rev 9971) @@ -31,7 +31,7 @@
 
     if(m_data == NULL)
     {
-        throw new MgOutOfMemoryException(L"ByteSourceMemoryImpl.ByteSourceMemoryImpl",
 +        throw new MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"ByteSourceMemoryImpl.ByteSourceMemoryImpl",  __LINE__, __WFILE__, NULL, L"", NULL);
     }
 

Modified: trunk/MgDev/Common/Foundation/System/ByteSourceSocketStreamImpl.cpp
===================================================================
--- trunk/MgDev/Common/Foundation/System/ByteSourceSocketStreamImpl.cpp	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/System/ByteSourceSocketStreamImpl.cpp	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -132,7 +132,7 @@
 
         if (stat != MgStreamHelper::mssDone)
         {
-            throw new MgStreamIoException(L"ByteSourceSocketStreamImpl.Read",
+            throw new MgException(MgExceptionCodes::MgStreamIoException, \
L"ByteSourceSocketStreamImpl.Read",  __LINE__, __WFILE__, NULL, L"", NULL);
         }
 
@@ -155,7 +155,7 @@
 
             if (stat != MgStreamHelper::mssDone)
             {
-                throw new MgStreamIoException(L"ByteSourceSocketStreamImpl.Read",
+                throw new MgException(MgExceptionCodes::MgStreamIoException, \
L"ByteSourceSocketStreamImpl.Read",  __LINE__, __WFILE__, NULL, L"", NULL);
             }
 
@@ -196,6 +196,6 @@
 
 void ByteSourceSocketStreamImpl::Rewind()
 {
-    throw new MgInvalidOperationException(L"ByteSourceSocketStreamImpl.Rewind",
+    throw new MgException(MgExceptionCodes::MgInvalidOperationException, \
L"ByteSourceSocketStreamImpl.Rewind",  __LINE__, __WFILE__, NULL, L"", NULL);
 }

Modified: trunk/MgDev/Common/Foundation/System/ByteSourceStreamImpl.cpp
===================================================================
--- trunk/MgDev/Common/Foundation/System/ByteSourceStreamImpl.cpp	2022-09-15 10:14:11 \
                UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/System/ByteSourceStreamImpl.cpp	2022-10-10 09:40:18 \
UTC (rev 9971) @@ -64,7 +64,7 @@
 
     if (bytesReceived == -1)
     {
-        throw new MgStreamIoException(L"ByteSourceMgStreamImpl.Read",
+        throw new MgException(MgExceptionCodes::MgStreamIoException, \
L"ByteSourceMgStreamImpl.Read",  __LINE__, __WFILE__, NULL, L"", NULL);
     }
 
@@ -86,6 +86,6 @@
 
 void ByteSourceMgStreamImpl::Rewind()
 {
-    throw new MgInvalidOperationException(L"ByteSourceMgStreamImpl.Rewind",
+    throw new MgException(MgExceptionCodes::MgInvalidOperationException, \
L"ByteSourceMgStreamImpl.Rewind",  __LINE__, __WFILE__, NULL, L"", NULL);
 }

Modified: trunk/MgDev/Common/Foundation/System/ClassFactory.cpp
===================================================================
--- trunk/MgDev/Common/Foundation/System/ClassFactory.cpp	2022-09-15 10:14:11 UTC \
                (rev 9970)
+++ trunk/MgDev/Common/Foundation/System/ClassFactory.cpp	2022-10-10 09:40:18 UTC \
(rev 9971) @@ -57,7 +57,7 @@
     ClassCreatorFunc func = m_classCreators[classId];
     if (NULL == func)
     {
-        throw new MgClassNotFoundException(L"MgClassFactory.CreateMgObject", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgClassNotFoundException, \
L"MgClassFactory.CreateMgObject", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
     MgObject* obj = (*func)();
@@ -69,7 +69,7 @@
 {
     if (0 >= classId || NULL == creator)
     {
-        throw new MgInvalidArgumentException(L"MgClassFactory.RegisterClass", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgClassFactory.RegisterClass", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
     m_classCreators[classId] = creator;
@@ -81,9 +81,6 @@
 
 static bool initStatic = InitializeStaticData();
 
-#define EXCEPTION_CLASS_CREATOR(className) \
-    fact->Register(Foundation_Exception_##className, className::CreateObject);
-
 bool InitializeStaticData()
 {
     MgClassFactory* fact = MgClassFactory::GetInstance();
@@ -98,52 +95,7 @@
     fact->Register(Foundation_Property_StringProperty,MgStringProperty::CreateObject);
                
     fact->Register(Foundation_Property_PropertyDefinition,MgPropertyDefinition::CreateObject);
  
-    EXCEPTION_CLASS_CREATOR(MgArgumentOutOfRangeException)
-    EXCEPTION_CLASS_CREATOR(MgClassNotFoundException)
-    EXCEPTION_CLASS_CREATOR(MgConfigurationException)
-    EXCEPTION_CLASS_CREATOR(MgConfigurationLoadFailedException)
-    EXCEPTION_CLASS_CREATOR(MgConfigurationSaveFailedException)
-    EXCEPTION_CLASS_CREATOR(MgDateTimeException)
-    EXCEPTION_CLASS_CREATOR(MgDecryptionException)
-    EXCEPTION_CLASS_CREATOR(MgDirectoryNotFoundException)
-    EXCEPTION_CLASS_CREATOR(MgDivideByZeroException)
-    EXCEPTION_CLASS_CREATOR(MgDomainException)
-    EXCEPTION_CLASS_CREATOR(MgDuplicateDirectoryException)
-    EXCEPTION_CLASS_CREATOR(MgDuplicateFileException)
-    EXCEPTION_CLASS_CREATOR(MgDuplicateObjectException)
-    EXCEPTION_CLASS_CREATOR(MgEncryptionException)
-    EXCEPTION_CLASS_CREATOR(MgFileIoException)
-    EXCEPTION_CLASS_CREATOR(MgFileNotFoundException)
-    EXCEPTION_CLASS_CREATOR(MgIndexOutOfRangeException)
-    EXCEPTION_CLASS_CREATOR(MgInvalidArgumentException)
-    EXCEPTION_CLASS_CREATOR(MgInvalidCastException)
-    EXCEPTION_CLASS_CREATOR(MgInvalidMimeTypeException)
-    EXCEPTION_CLASS_CREATOR(MgInvalidOperationException)
-    EXCEPTION_CLASS_CREATOR(MgInvalidPropertyTypeException)
-    EXCEPTION_CLASS_CREATOR(MgInvalidStreamHeaderException)
-    EXCEPTION_CLASS_CREATOR(MgIoException)
-    EXCEPTION_CLASS_CREATOR(MgLengthException)
-    EXCEPTION_CLASS_CREATOR(MgLogicException)
-    EXCEPTION_CLASS_CREATOR(MgNotFiniteNumberException)
-    EXCEPTION_CLASS_CREATOR(MgNotImplementedException)
-    EXCEPTION_CLASS_CREATOR(MgNullArgumentException)
-    EXCEPTION_CLASS_CREATOR(MgNullPropertyValueException)
-    EXCEPTION_CLASS_CREATOR(MgNullReferenceException)
-    EXCEPTION_CLASS_CREATOR(MgObjectNotFoundException)
-    EXCEPTION_CLASS_CREATOR(MgOutOfMemoryException)
-    EXCEPTION_CLASS_CREATOR(MgOutOfRangeException)
-    EXCEPTION_CLASS_CREATOR(MgOverflowException)
-    EXCEPTION_CLASS_CREATOR(MgPlatformNotSupportedException)
-    EXCEPTION_CLASS_CREATOR(MgResourcesException)
-    EXCEPTION_CLASS_CREATOR(MgResourcesLoadFailedException)
-    EXCEPTION_CLASS_CREATOR(MgResourceTagNotFoundException)
-    EXCEPTION_CLASS_CREATOR(MgRuntimeException)
-    EXCEPTION_CLASS_CREATOR(MgStreamIoException)
-    EXCEPTION_CLASS_CREATOR(MgTemporaryFileNotAvailableException)
-    EXCEPTION_CLASS_CREATOR(MgUnclassifiedException)
-    EXCEPTION_CLASS_CREATOR(MgUnderflowException)
-    EXCEPTION_CLASS_CREATOR(MgXmlException)
-    EXCEPTION_CLASS_CREATOR(MgXmlParserException)
+    fact->Register(Foundation_Exception_MgException, MgException::CreateObject);
 
     return true;
 }

Modified: trunk/MgDev/Common/Foundation/System/Configuration.cpp
===================================================================
--- trunk/MgDev/Common/Foundation/System/Configuration.cpp	2022-09-15 10:14:11 UTC \
                (rev 9970)
+++ trunk/MgDev/Common/Foundation/System/Configuration.cpp	2022-10-10 09:40:18 UTC \
(rev 9971) @@ -108,7 +108,7 @@
                 MgStringCollection arguments;
                 arguments.Add(fileName);
 
-                throw new MgConfigurationLoadFailedException(
+                throw new \
MgException(MgExceptionCodes::MgConfigurationLoadFailedException,   \
L"MgConfiguration.LoadConfiguration",  __LINE__, __WFILE__, &arguments, L"", NULL);
             }
@@ -154,7 +154,8 @@
         MgStringCollection arguments;
         arguments.Add(fileName);
 
-        throw new MgConfigurationSaveFailedException(
+        throw new MgException(
+            L"MgConfigurationSaveFailedException",
             L"MgConfiguration.SaveConfiguration",
             __LINE__, __WFILE__, &arguments, L"", NULL);
     }
@@ -440,7 +441,7 @@
             else
             {
                 // Everything in the ini file is treated as a string so we should \
                not be here
-                throw new MgInvalidPropertyTypeException(
+                throw new \
                MgException(MgExceptionCodes::MgInvalidPropertyTypeException,
                     L"MgConfiguration::GetProperties", __LINE__, __WFILE__, NULL, \
L"", NULL);  }
 
@@ -517,7 +518,7 @@
             else
             {
                 // Everything in the ini file is treated as a string so we should \
                not be here
-                throw new MgInvalidPropertyTypeException(
+                throw new \
                MgException(MgExceptionCodes::MgInvalidPropertyTypeException,
                     L"MgConfiguration.SetProperties", __LINE__, __WFILE__, NULL, \
L"", NULL);  }
         }
@@ -528,7 +529,7 @@
         MgStringCollection arguments;
         arguments.Add(section);
 
-        throw new MgConfigurationException(L"MgConfiguration.SetProperties",
+        throw new MgException(MgExceptionCodes::MgConfigurationException, \
L"MgConfiguration.SetProperties",  __LINE__, __WFILE__, &arguments, L"", NULL);
     }
 
@@ -602,7 +603,7 @@
         MgStringCollection arguments;
         arguments.Add(section);
 
-        throw new MgConfigurationException(L"MgConfiguration.RemoveProperties",
+        throw new MgException(MgExceptionCodes::MgConfigurationException, \
L"MgConfiguration.RemoveProperties",  __LINE__, __WFILE__, &arguments, L"", NULL);
     }
 
@@ -702,7 +703,7 @@
 
             if (0.0 == strLength)
             {
-                throw new MgConfigurationException(
+                throw new MgException(MgExceptionCodes::MgConfigurationException, 
                     L"MgConfiguration.ValidateValue",
                     __LINE__, __WFILE__, &whatArguments,
                     L"MgConfigurationPropertyValueIsNotSpecified", &whyArguments);
@@ -717,7 +718,8 @@
 
                 if (minimumValue == maximumValue)
                 {
-                    throw new MgConfigurationException(
+                    throw new MgException(
+                        L"MgConfigurationException",
                         L"MgConfiguration.ValidateValue",
                         __LINE__, __WFILE__, &whatArguments,
                         L"MgConfigurationPropertyLengthIsInvalid", &whyArguments);
@@ -726,7 +728,8 @@
                 {
                     whyArguments.Add(maximumValue);
 
-                    throw new MgConfigurationException(
+                    throw new MgException(
+                        L"MgConfigurationException",
                         L"MgConfiguration.ValidateValue",
                         __LINE__, __WFILE__, &whatArguments,
                         L"MgConfigurationPropertyLengthIsOutOfRange", \
&whyArguments); @@ -746,7 +749,7 @@
             whyArguments.Add(value);
             whyArguments.Add(validationInfo->m_reservedCharacters);
 
-            throw new MgConfigurationException(
+            throw new MgException(MgExceptionCodes::MgConfigurationException, 
                 L"MgConfiguration.ValidateValue",
                 __LINE__, __WFILE__, &whatArguments,
                 L"MgConfigurationPropertyValueContainsReservedCharacters", \
&whyArguments); @@ -769,7 +772,8 @@
             whyArguments.Add(validationInfo->GetMinimumValue());
             whyArguments.Add(validationInfo->GetMaximumValue());
 
-            throw new MgConfigurationException(
+            throw new MgException(
+                L"MgConfigurationException",
                 L"MgConfiguration.ValidateValue",
                 __LINE__, __WFILE__, &whatArguments,
                 L"MgConfigurationPropertyValueIsOutOfRange", &whyArguments);

Modified: trunk/MgDev/Common/Foundation/System/ConfigurationHeap.cpp
===================================================================
--- trunk/MgDev/Common/Foundation/System/ConfigurationHeap.cpp	2022-09-15 10:14:11 \
                UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/System/ConfigurationHeap.cpp	2022-10-10 09:40:18 \
UTC (rev 9971) @@ -37,7 +37,7 @@
         arguments.Add(L"1");
         arguments.Add(MgResources::BlankArgument);
 
-        throw new MgInvalidArgumentException(L"MgConfigImpExp.ImportConfig",
+        throw new MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgConfigImpExp.ImportConfig",  __LINE__, __WFILE__, &arguments, L"MgStringEmpty", \
NULL);  }
 
@@ -144,7 +144,7 @@
         arguments.Add(L"1");
         arguments.Add(MgResources::BlankArgument);
 
-        throw new MgInvalidArgumentException(L"MgConfigImpExp.ImportConfig",
+        throw new MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgConfigImpExp.ImportConfig",  __LINE__, __WFILE__, &arguments, L"MgStringEmpty", \
NULL);  }
 
@@ -361,7 +361,7 @@
         section = new MgConfigurationSection(sectionPath);
         if (section == NULL)
         {
-            throw new MgOutOfMemoryException(L"MgConfigurationHeap.AddSection", \
__LINE__, __WFILE__, NULL, L"", NULL); +            throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgConfigurationHeap.AddSection", __LINE__, __WFILE__, NULL, L"", NULL);  }
         m_sectionCollection->Add(section);
     }

Modified: trunk/MgDev/Common/Foundation/System/Disposable.cpp
===================================================================
--- trunk/MgDev/Common/Foundation/System/Disposable.cpp	2022-09-15 10:14:11 UTC (rev \
                9970)
+++ trunk/MgDev/Common/Foundation/System/Disposable.cpp	2022-10-10 09:40:18 UTC (rev \
9971) @@ -60,7 +60,7 @@
         ACE_DEBUG((LM_DEBUG, ACE_TEXT("(%t) ************ Error in \
MgDisposable::Addref(). Class Name: %W. Called with Reference Count = 0.\n"), \
GetClassName().c_str()));  #endif
 
-        throw new MgLogicException(L"MgDisposable.AddRef", __LINE__, __WFILE__, \
NULL, L"", NULL); +        throw new MgException(MgExceptionCodes::MgLogicException, \
L"MgDisposable.AddRef", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
     return ++m_refCount;
@@ -91,7 +91,7 @@
             ACE_DEBUG((LM_DEBUG, ACE_TEXT("(%t) ************ Error in \
MgDisposable::Release(). Class Name: %W. Called with Reference Count <= 0.\n"), \
GetClassName().c_str()));  #endif
 
-            throw new MgLogicException(L"MgDisposable.Release", __LINE__, __WFILE__, \
NULL, L"", NULL); +            throw new \
MgException(MgExceptionCodes::MgLogicException, L"MgDisposable.Release", __LINE__, \
__WFILE__, NULL, L"", NULL);  }
 
         --m_refCount;

Modified: trunk/MgDev/Common/Foundation/System/DisposableCollection.cpp
===================================================================
--- trunk/MgDev/Common/Foundation/System/DisposableCollection.cpp	2022-09-15 10:14:11 \
                UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/System/DisposableCollection.cpp	2022-10-10 09:40:18 \
UTC (rev 9971) @@ -78,7 +78,7 @@
 MgDisposable* MgDisposableCollection::GetItem(INT32 index) const
 {
     if (index >= m_size || index < 0)
-        throw new MgIndexOutOfRangeException(L"GetItem",__LINE__, __WFILE__, NULL, \
L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgIndexOutOfRangeException, L"GetItem",__LINE__, \
                __WFILE__, NULL, L"", NULL);
     // EXC::Create(Exception::NLSGetMessage(_NLSID(_5_INDEXOUTOFBOUNDS)));
 
     return SAFE_ADDREF(m_list[index]);
@@ -101,7 +101,7 @@
         m_list[index] = SAFE_ADDREF(value);
     }
     else
-        throw new MgIndexOutOfRangeException(L"SetItem", __LINE__, __WFILE__, NULL, \
L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgIndexOutOfRangeException, L"SetItem", __LINE__, \
                __WFILE__, NULL, L"", NULL);
     // EXC::Create(GisException::NLSGetMessage(GIS_NLSID(GIS_5_INDEXOUTOFBOUNDS)));
 }
 
@@ -147,7 +147,7 @@
         m_size++;
     }
     else
-        throw new MgIndexOutOfRangeException(L"Insert", __LINE__, __WFILE__, NULL, \
L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgIndexOutOfRangeException, L"Insert", __LINE__, \
                __WFILE__, NULL, L"", NULL);
     // EXC::Create(GisException::NLSGetMessage(GIS_NLSID(GIS_5_INDEXOUTOFBOUNDS)));
 }
 
@@ -221,7 +221,7 @@
         m_list[--m_size] = NULL;
     }
     else
-        throw new MgIndexOutOfRangeException(L"RemoveAt", __LINE__, __WFILE__, NULL, \
L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgIndexOutOfRangeException, L"RemoveAt", __LINE__, \
__WFILE__, NULL, L"", NULL);  }
 
 
@@ -281,7 +281,7 @@
 /// </returns>
 MgByteReader* MgDisposableCollection::ToXml()
 {
-    throw new MgNotImplementedException(L"MgDisposableCollection.ToXml", __LINE__, \
__WFILE__, NULL, L"", NULL); +    throw new \
MgException(MgExceptionCodes::MgNotImplementedException, \
L"MgDisposableCollection.ToXml", __LINE__, __WFILE__, NULL, L"", NULL);  
     return NULL;
 }
@@ -295,7 +295,7 @@
 /// <returns>Returns nothing.</returns>
 void MgDisposableCollection::Serialize(MgStream* stream)
 {
-    throw new MgNotImplementedException(L"MgDisposableCollection.Serialize", \
__LINE__, __WFILE__, NULL, L"", NULL); +    throw new \
MgException(MgExceptionCodes::MgNotImplementedException, \
L"MgDisposableCollection.Serialize", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
 
@@ -307,7 +307,7 @@
 /// <returns>Returns nothing.</returns>
 void MgDisposableCollection::Deserialize(MgStream* stream)
 {
-    throw new MgNotImplementedException(L"MgDisposableCollection.Deserialize", \
__LINE__, __WFILE__, NULL, L"", NULL); +    throw new \
MgException(MgExceptionCodes::MgNotImplementedException, \
L"MgDisposableCollection.Deserialize", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
 

Modified: trunk/MgDev/Common/Foundation/System/FileUtil.cpp
===================================================================
--- trunk/MgDev/Common/Foundation/System/FileUtil.cpp	2022-09-15 10:14:11 UTC (rev \
                9970)
+++ trunk/MgDev/Common/Foundation/System/FileUtil.cpp	2022-10-10 09:40:18 UTC (rev \
9971) @@ -68,7 +68,7 @@
         arguments.Add(L"1");
         arguments.Add(MgResources::BlankArgument);
 
-        throw new MgInvalidArgumentException(
+        throw new MgException(MgExceptionCodes::MgInvalidArgumentException, 
             L"MgFileUtil.ValidateFileName",
             __LINE__, __WFILE__, &arguments, L"MgStringEmpty", NULL);
     }
@@ -82,7 +82,7 @@
         MgStringCollection whyArguments;
         whyArguments.Add(sm_reservedCharacters);
 
-        throw new MgInvalidArgumentException(
+        throw new MgException(MgExceptionCodes::MgInvalidArgumentException, 
             L"MgFileUtil.ValidateFileName",
             __LINE__, __WFILE__, &arguments, L"MgStringContainsReservedCharacters", \
&whyArguments);  }
@@ -93,7 +93,7 @@
         arguments.Add(L"1");
         arguments.Add(fileName);
 
-        throw new MgInvalidArgumentException(
+        throw new MgException(MgExceptionCodes::MgInvalidArgumentException, 
             L"MgFileUtil.ValidateFileName",
             __LINE__, __WFILE__, &arguments, L"", NULL);
     }
@@ -231,7 +231,7 @@
         MgStringCollection arguments;
         arguments.Add(pathname);
 
-        throw new MgFileIoException(L"MgFileUtil.GetFileStatus",
+        throw new MgException(MgExceptionCodes::MgFileIoException, \
L"MgFileUtil.GetFileStatus",  __LINE__, __WFILE__, &arguments, L"", NULL);
     }
 
@@ -384,7 +384,7 @@
             MgStringCollection arguments;
             arguments.Add(path);
 
-            throw new MgDuplicateDirectoryException(L"MgFileUtil.CreateDirectory",
+            throw new MgException(MgExceptionCodes::MgDuplicateDirectoryException, \
L"MgFileUtil.CreateDirectory",  __LINE__, __WFILE__, &arguments, L"", NULL);
         }
 
@@ -450,7 +450,7 @@
             case EACCES:
             default:
                 MG_FILE_IO_EXCEPTION_ADD_ERRNO();
-                throw new MgFileIoException(L"MgFileUtil.MkDir",
+                throw new MgException(MgExceptionCodes::MgFileIoException, \
                L"MgFileUtil.MkDir",
                     __LINE__, __WFILE__, &arguments, L"MgFileIoErrNo", &errNoArgs);
                 break;
         }
@@ -497,7 +497,7 @@
             case EACCES:
             default:
                 MG_FILE_IO_EXCEPTION_ADD_ERRNO();
-                throw new MgFileIoException(L"MgFileUtil.DeleteDirectory",
+                throw new MgException(MgExceptionCodes::MgFileIoException, \
                L"MgFileUtil.DeleteDirectory",
                     __LINE__, __WFILE__, &arguments, L"MgFileIoErrNo", &errNoArgs);
                 break;
         }
@@ -534,7 +534,7 @@
             MgStringCollection arguments;
             arguments.Add(path);
 
-            throw new MgDirectoryNotFoundException(L"MgFileUtil.CleanDirectory",
+            throw new MgException(MgExceptionCodes::MgDirectoryNotFoundException, \
L"MgFileUtil.CleanDirectory",  __LINE__, __WFILE__, &arguments, L"", NULL);
         }
 
@@ -623,7 +623,7 @@
         MgStringCollection arguments;
         arguments.Add(path);
 
-        throw new MgFileIoException(L"MgFileUtil.ChangeDirectory",
+        throw new MgException(MgExceptionCodes::MgFileIoException, \
L"MgFileUtil.ChangeDirectory",  __LINE__, __WFILE__, &arguments, L"", NULL);
     }
 
@@ -632,7 +632,7 @@
         MgStringCollection arguments;
         arguments.Add(path);
 
-        throw new MgDirectoryNotFoundException(L"MgFileUtil.ChangeDirectory",
+        throw new MgException(MgExceptionCodes::MgDirectoryNotFoundException, \
L"MgFileUtil.ChangeDirectory",  __LINE__, __WFILE__, &arguments, L"", NULL);
     }
 
@@ -667,7 +667,7 @@
         MgStringCollection arguments;
         arguments.Add(path);
 
-        throw new MgDirectoryNotFoundException(L"MgFileUtil.GetFilesInDirectory",
+        throw new MgException(MgExceptionCodes::MgDirectoryNotFoundException, \
L"MgFileUtil.GetFilesInDirectory",  __LINE__, __WFILE__, &arguments, L"", NULL);
 
         return false;
@@ -771,7 +771,7 @@
             MgStringCollection arguments;
             arguments.Add(pathname);
 
-            throw new MgFileNotFoundException(L"MgFileUtil.DeleteFile",
+            throw new MgException(MgExceptionCodes::MgFileNotFoundException, \
L"MgFileUtil.DeleteFile",  __LINE__, __WFILE__, &arguments, L"", NULL);
         }
 
@@ -792,7 +792,7 @@
             case EACCES:
             default:
                 MG_FILE_IO_EXCEPTION_ADD_ERRNO();
-                throw new MgFileIoException(L"MgFileUtil.DeleteFile",
+                throw new MgException(MgExceptionCodes::MgFileIoException, \
                L"MgFileUtil.DeleteFile",
                     __LINE__, __WFILE__, &arguments, L"MgFileIoErrNo", &errNoArgs);
                 break;
         }
@@ -827,7 +827,7 @@
         MgStringCollection arguments;
         arguments.Add(destPathname);
 
-        throw new MgDuplicateFileException(L"MgFileUtil.CopyFile",
+        throw new MgException(MgExceptionCodes::MgDuplicateFileException, \
L"MgFileUtil.CopyFile",  __LINE__, __WFILE__, &arguments, L"", NULL);
     }
 
@@ -840,7 +840,7 @@
         MgStringCollection arguments;
         arguments.Add(destPathname);
 
-        throw new MgDuplicateFileException(L"MgFileUtil.CopyFile",
+        throw new MgException(MgExceptionCodes::MgDuplicateFileException, \
L"MgFileUtil.CopyFile",  __LINE__, __WFILE__, &arguments, L"", NULL);
     }
 
@@ -913,7 +913,7 @@
         MgStringCollection arguments;
         arguments.Add(newPathname);
 
-        throw new MgDuplicateFileException(L"MgFileUtil.RenameFile",
+        throw new MgException(MgExceptionCodes::MgDuplicateFileException, \
L"MgFileUtil.RenameFile",  __LINE__, __WFILE__, &arguments, L"", NULL);
     }
 
@@ -928,7 +928,7 @@
         MgStringCollection arguments;
         arguments.Add(newPathname);
 
-        throw new MgDuplicateFileException(L"MgFileUtil.RenameFile",
+        throw new MgException(MgExceptionCodes::MgDuplicateFileException, \
L"MgFileUtil.RenameFile",  __LINE__, __WFILE__, &arguments, L"", NULL);
     }
 
@@ -947,7 +947,7 @@
         {
             case ENOENT: // File or path specified by oldname not found.
                 arguments.Add(oldPathname);
-                throw new MgFileNotFoundException(L"MgFileUtil.RenameFile",
+                throw new MgException(MgExceptionCodes::MgFileNotFoundException, \
L"MgFileUtil.RenameFile",  __LINE__, __WFILE__, &arguments, L"", NULL);
                 break;
 
@@ -962,7 +962,7 @@
                 MgStringCollection whyArguments;
                 whyArguments.Add(L"");
 
-                throw new MgInvalidArgumentException(L"MgFileUtil.RenameFile",
+                throw new MgException(MgExceptionCodes::MgInvalidArgumentException, \
                L"MgFileUtil.RenameFile",
                     __LINE__, __WFILE__, &arguments, \
L"MgStringContainsReservedCharacters", &whyArguments);  }
                 break;
@@ -974,7 +974,7 @@
             default:
                 arguments.Add(newPathname);
                 MG_FILE_IO_EXCEPTION_ADD_ERRNO();
-                throw new MgFileIoException(L"MgFileUtil.RenameFile",
+                throw new MgException(MgExceptionCodes::MgFileIoException, \
                L"MgFileUtil.RenameFile",
                     __LINE__, __WFILE__, &arguments, L"MgFileIoErrNo", &errNoArgs);
                 break;
         }
@@ -1100,7 +1100,7 @@
 
         if (0 == tempFileName)
         {
-            throw new MgTemporaryFileNotAvailableException(
+            throw new \
                MgException(MgExceptionCodes::MgTemporaryFileNotAvailableException,
                 L"MgFileUtil.GenerateTempFileName", __LINE__, __WFILE__, NULL, L"", \
NULL);  }
 

Modified: trunk/MgDev/Common/Foundation/System/FoundationClassId.h
===================================================================
--- trunk/MgDev/Common/Foundation/System/FoundationClassId.h	2022-09-15 10:14:11 UTC \
                (rev 9970)
+++ trunk/MgDev/Common/Foundation/System/FoundationClassId.h	2022-10-10 09:40:18 UTC \
(rev 9971) @@ -43,6 +43,9 @@
 #define Foundation_Data_Stream                            FOUNDATION_DATA_ID+8
 
 // Foundation Exception
+//
+// 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 Foundation_Exception_MgApplicationException                             \
FOUNDATION_EXCEPTION_ID+0  #define Foundation_Exception_MgArgumentOutOfRangeException \
FOUNDATION_EXCEPTION_ID+1  #define Foundation_Exception_MgClassNotFoundException      \
FOUNDATION_EXCEPTION_ID+2

Modified: trunk/MgDev/Common/Foundation/System/GuardDisposable.cpp
===================================================================
--- trunk/MgDev/Common/Foundation/System/GuardDisposable.cpp	2022-09-15 10:14:11 UTC \
                (rev 9970)
+++ trunk/MgDev/Common/Foundation/System/GuardDisposable.cpp	2022-10-10 09:40:18 UTC \
(rev 9971) @@ -40,7 +40,7 @@
         ACE_DEBUG((LM_DEBUG, ACE_TEXT("(%t) ************ Error in \
MgGuardDisposable::Addref(). Class Name: %W. Called with Reference Count = 0.\n"), \
GetClassName().c_str()));  #endif
 
-        throw new MgLogicException(L"MgGuardDisposable.AddRef", __LINE__, __WFILE__, \
NULL, L"", NULL); +        throw new MgException(MgExceptionCodes::MgLogicException, \
L"MgGuardDisposable.AddRef", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
     return ++m_refCount;
@@ -61,7 +61,7 @@
             ACE_DEBUG((LM_DEBUG, ACE_TEXT("(%t) ************ Error in \
MgGuardDisposable::Release(). Class Name: %W. Called with Reference Count <= 0.\n"), \
GetClassName().c_str()));  #endif
 
-            throw new MgLogicException(L"MgGuardDisposable.Release", __LINE__, \
__WFILE__, NULL, L"", NULL); +            throw new \
MgException(MgExceptionCodes::MgLogicException, L"MgGuardDisposable.Release", \
__LINE__, __WFILE__, NULL, L"", NULL);  }
 
         --m_refCount;

Modified: trunk/MgDev/Common/Foundation/System/MemoryStreamHelper.cpp
===================================================================
--- trunk/MgDev/Common/Foundation/System/MemoryStreamHelper.cpp	2022-09-15 10:14:11 \
                UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/System/MemoryStreamHelper.cpp	2022-10-10 09:40:18 \
UTC (rev 9971) @@ -29,7 +29,7 @@
 {
     m_curPtrRead = m_curPtrWrite = m_buffer = new INT8[m_blockSize];
     if(m_buffer == NULL)
-        throw new MgOutOfMemoryException(L"MgMemoryStreamHelper.MgMemoryStreamHelper", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgMemoryStreamHelper.MgMemoryStreamHelper", __LINE__, __WFILE__, NULL, L"", NULL);  \
  m_endBuffer = m_buffer + m_blockSize;
     m_blockCount = 1;
@@ -255,7 +255,7 @@
         //allocate the new block
         INT8* newBlock = new INT8[newBlockCount * m_blockSize];
         if(!newBlock)
-            throw new MgOutOfMemoryException(L"MgMemoryStreamHelper.WriteBytes", \
__LINE__, __WFILE__, NULL, L"", NULL); +            throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgMemoryStreamHelper.WriteBytes", __LINE__, __WFILE__, NULL, L"", NULL);  
         //initialize new block with current stream content
         size_t writePos = m_curPtrWrite - m_buffer;

Modified: trunk/MgDev/Common/Foundation/System/Resources.cpp
===================================================================
--- trunk/MgDev/Common/Foundation/System/Resources.cpp	2022-09-15 10:14:11 UTC (rev \
                9970)
+++ trunk/MgDev/Common/Foundation/System/Resources.cpp	2022-10-10 09:40:18 UTC (rev \
9971) @@ -311,7 +311,7 @@
             arguments.Add(locale.c_str());
             arguments.Add(MgResources::InvalidExtendedLocale);
 
-            throw new MgResourcesLoadFailedException(L"MgResources.LoadResources",
+            throw new MgException(MgExceptionCodes::MgResourcesLoadFailedException, \
L"MgResources.LoadResources",  __LINE__, __WFILE__, &arguments, L"", NULL);
         }
     }
@@ -380,7 +380,7 @@
             arguments.Add(locale.c_str());
             arguments.Add(sCause);
 
-            throw new MgResourcesLoadFailedException(L"MgResources.LoadResources",
+            throw new MgException(MgExceptionCodes::MgResourcesLoadFailedException, \
L"MgResources.LoadResources",  __LINE__, __WFILE__, &arguments, L"", NULL);
         }
     }
@@ -523,7 +523,7 @@
         arguments.Add(L"2");
         arguments.Add(buffer);
 
-        throw new MgInvalidArgumentException(L"MgResources.FormatMessage",
+        throw new MgException(MgExceptionCodes::MgInvalidArgumentException, \
                L"MgResources.FormatMessage",
             __LINE__, __WFILE__, &arguments, L"MgArgumentsMismatch", NULL);
     }
 
@@ -620,7 +620,7 @@
                         STRING sCause = \
MgResources::FormatMessage(MgResources::NoParentSectionForResourceDirective, &args2); \
  arguments.Add(sCause);
-                        throw new \
MgResourcesLoadFailedException(L"MgResources.ParseFile", __LINE__, __WFILE__, NULL, \
L"", NULL); +                        throw new \
MgException(MgExceptionCodes::MgResourcesLoadFailedException, \
L"MgResources.ParseFile", __LINE__, __WFILE__, NULL, L"", NULL);  }
                 }
             }

Modified: trunk/MgDev/Common/Foundation/System/StreamHelper.cpp
===================================================================
--- trunk/MgDev/Common/Foundation/System/StreamHelper.cpp	2022-09-15 10:14:11 UTC \
                (rev 9970)
+++ trunk/MgDev/Common/Foundation/System/StreamHelper.cpp	2022-10-10 09:40:18 UTC \
(rev 9971) @@ -121,7 +121,7 @@
     }
     else
     {
-        throw new MgStreamIoException(L"MgStreamHelper.GetString", __LINE__, \
__WFILE__, NULL, L"MgInvalidTCPProtocol", NULL); +        throw new \
MgException(MgExceptionCodes::MgStreamIoException, L"MgStreamHelper.GetString", \
__LINE__, __WFILE__, NULL, L"MgInvalidTCPProtocol", NULL);  stat = \
MgStreamHelper::mssError;  }
 

Modified: trunk/MgDev/Common/Foundation/System/StreamParser.cpp
===================================================================
--- trunk/MgDev/Common/Foundation/System/StreamParser.cpp	2022-09-15 10:14:11 UTC \
                (rev 9970)
+++ trunk/MgDev/Common/Foundation/System/StreamParser.cpp	2022-10-10 09:40:18 UTC \
(rev 9971) @@ -82,12 +82,12 @@
         {
             // The stream may contain garbage when the connection is dropped for
             // some reason. This exception may be ignored to reduce noise.
-            throw new \
MgInvalidStreamHeaderException(L"MgStreamParser.ParseStreamHeader", +            \
throw new MgException(MgExceptionCodes::MgInvalidStreamHeaderException, \
L"MgStreamParser.ParseStreamHeader",  __LINE__, __WFILE__, NULL, L"", NULL);
         }
         else if (MgStreamParser::StreamVersion != pStreamData->GetVersion())
         {
-            throw new MgStreamIoException(L"MgStreamParser.ParseStreamHeader",
+            throw new MgException(MgExceptionCodes::MgStreamIoException, \
                L"MgStreamParser.ParseStreamHeader",
                 __LINE__, __WFILE__, NULL, L"MgInvalidTCPProtocol", NULL);
         }
     }

Modified: trunk/MgDev/Common/Foundation/System/StreamReader.cpp
===================================================================
--- trunk/MgDev/Common/Foundation/System/StreamReader.cpp	2022-09-15 10:14:11 UTC \
                (rev 9970)
+++ trunk/MgDev/Common/Foundation/System/StreamReader.cpp	2022-10-10 09:40:18 UTC \
(rev 9971) @@ -77,7 +77,7 @@
 void MgStreamReader::GetOperationHeader(MgOperationPacket& operPacket)
 {
     MG_TRY()
-        throw new MgNotImplementedException(L"MgStreamReader.GetOperationHeader", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgNotImplementedException, \
L"MgStreamReader.GetOperationHeader", __LINE__, __WFILE__, NULL, L"", NULL);  \
MG_CATCH_AND_THROW(L"MgStreamReader.GetOperationHeader")  }
 
@@ -92,7 +92,7 @@
 void MgStreamReader::GetOperationResponseHeader(MgOperationResponsePacket& mop)
 {
     MG_TRY()
-        throw new MgNotImplementedException(L"MgStreamReader.GetOperationResponseHeader", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgNotImplementedException, \
L"MgStreamReader.GetOperationResponseHeader", __LINE__, __WFILE__, NULL, L"", NULL);  \
MG_CATCH_AND_THROW(L"MgStreamReader.GetOperationResponseHeader")  }
 
@@ -153,7 +153,7 @@
 
     if (map.m_ArgumentType != (UINT32)MgPacketParser::matString)
     {
-        throw new MgInvalidStreamHeaderException(L"MgStreamReader.GetString",
+        throw new MgException(MgExceptionCodes::MgInvalidStreamHeaderException, \
L"MgStreamReader.GetString",  __LINE__, __WFILE__, NULL, L"", NULL);
     }
 
@@ -179,7 +179,7 @@
 
     if (map.m_ArgumentType != (UINT32)MgPacketParser::matINT64)
     {
-        throw new MgInvalidStreamHeaderException(L"MgStreamReader.GetInt64",
+        throw new MgException(MgExceptionCodes::MgInvalidStreamHeaderException, \
L"MgStreamReader.GetInt64",  __LINE__, __WFILE__, NULL, L"", NULL);
     }
 
@@ -205,7 +205,7 @@
 
     if (map.m_ArgumentType != (UINT32)MgPacketParser::matINT32)
     {
-        throw new MgInvalidStreamHeaderException(L"MgStreamReader.GetInt32",
+        throw new MgException(MgExceptionCodes::MgInvalidStreamHeaderException, \
L"MgStreamReader.GetInt32",  __LINE__, __WFILE__, NULL, L"", NULL);
     }
 
@@ -233,7 +233,7 @@
 
     if (map.m_ArgumentType != (UINT32)MgPacketParser::matINT16)
     {
-        throw new MgInvalidStreamHeaderException(L"MgStreamReader.GetInt16",
+        throw new MgException(MgExceptionCodes::MgInvalidStreamHeaderException, \
L"MgStreamReader.GetInt16",  __LINE__, __WFILE__, NULL, L"", NULL);
     }
 
@@ -262,7 +262,7 @@
 
     if (map.m_ArgumentType != (UINT32)MgPacketParser::matFloat)
     {
-        throw new MgInvalidStreamHeaderException(L"MgStreamReader.GetSingle",
+        throw new MgException(MgExceptionCodes::MgInvalidStreamHeaderException, \
L"MgStreamReader.GetSingle",  __LINE__, __WFILE__, NULL, L"", NULL);
     }
 
@@ -288,7 +288,7 @@
 
     if (map.m_ArgumentType != (UINT32)MgPacketParser::matDouble)
     {
-        throw new MgInvalidStreamHeaderException(L"MgStreamReader.GetDouble",
+        throw new MgException(MgExceptionCodes::MgInvalidStreamHeaderException, \
L"MgStreamReader.GetDouble",  __LINE__, __WFILE__, NULL, L"", NULL);
     }
 
@@ -314,7 +314,7 @@
 
     if (map.m_ArgumentType != (UINT32)MgPacketParser::matINT8)
     {
-        throw new MgInvalidStreamHeaderException(L"MgStreamReader.GetBoolean",
+        throw new MgException(MgExceptionCodes::MgInvalidStreamHeaderException, \
L"MgStreamReader.GetBoolean",  __LINE__, __WFILE__, NULL, L"", NULL);
     }
 
@@ -342,7 +342,7 @@
 
     if (map.m_ArgumentType != (UINT32)MgPacketParser::matINT8)
     {
-        throw new MgInvalidStreamHeaderException(L"MgStreamReader.GetByte",
+        throw new MgException(MgExceptionCodes::MgInvalidStreamHeaderException, \
L"MgStreamReader.GetByte",  __LINE__, __WFILE__, NULL, L"", NULL);
     }
 
@@ -373,7 +373,7 @@
 
     if (bsap.m_ArgumentType != (UINT32)MgPacketParser::mphArgumentBinaryStream)
     {
-        throw new MgInvalidStreamHeaderException(L"MgStreamReader.GetStream",
+        throw new MgException(MgExceptionCodes::MgInvalidStreamHeaderException, \
L"MgStreamReader.GetStream",  __LINE__, __WFILE__, NULL, L"", NULL);
     }
 
@@ -415,13 +415,13 @@
             if (errno == EEXIST)
             {
                 MG_FILE_IO_EXCEPTION_ADD_ERRNO();
-                throw new MgFileNotFoundException(L"MgStreamReader.GetStream",
+                throw new MgException(MgExceptionCodes::MgFileNotFoundException, \
                L"MgStreamReader.GetStream",
                     __LINE__, __WFILE__, &arguments, L"MgFileIoErrNo", &errNoArgs);
             }
             else
             {
                 MG_FILE_IO_EXCEPTION_ADD_ERRNO();
-                throw new MgFileIoException(L"MgStreamReader.GetStream",
+                throw new MgException(MgExceptionCodes::MgFileIoException, \
                L"MgStreamReader.GetStream",
                     __LINE__, __WFILE__, &arguments, L"MgFileIoErrNo", &errNoArgs);
             }
         }
@@ -528,7 +528,7 @@
 
     if ((UINT32)MgPacketParser::matClassId != map.m_ArgumentType)
     {
-        throw new MgInvalidStreamHeaderException(L"MgStreamReader.GetClassId",
+        throw new MgException(MgExceptionCodes::MgInvalidStreamHeaderException, \
L"MgStreamReader.GetClassId",  __LINE__, __WFILE__, NULL, L"", NULL);
     }
 
@@ -552,7 +552,7 @@
 
     if ( MgStreamParser::mshStreamEnd != dataRead )
     {
-        throw new MgInvalidStreamHeaderException( L"MgStreamReader.GetStreamEnd",
+        throw new MgException(MgExceptionCodes::MgInvalidStreamHeaderException, \
L"MgStreamReader.GetStreamEnd",  __LINE__, __WFILE__, NULL, L"", NULL);
     }
 }

Modified: trunk/MgDev/Common/Foundation/System/StreamWriter.cpp
===================================================================
--- trunk/MgDev/Common/Foundation/System/StreamWriter.cpp	2022-09-15 10:14:11 UTC \
                (rev 9970)
+++ trunk/MgDev/Common/Foundation/System/StreamWriter.cpp	2022-10-10 09:40:18 UTC \
(rev 9971) @@ -73,7 +73,7 @@
     MgStreamHelper::MgStreamStatus stat = MgStreamHelper::mssDone;
 
     MG_TRY()
-        throw new MgNotImplementedException(L"MgStreamWriter.WriteOperationHeader", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgNotImplementedException, \
L"MgStreamWriter.WriteOperationHeader", __LINE__, __WFILE__, NULL, L"", NULL);  \
MG_CATCH_AND_THROW(L"MgStreamWriter.WriteOperationHeader")  
     return stat;

Modified: trunk/MgDev/Common/Foundation/System/Util.cpp
===================================================================
--- trunk/MgDev/Common/Foundation/System/Util.cpp	2022-09-15 10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/System/Util.cpp	2022-10-10 09:40:18 UTC (rev 9971)
@@ -187,7 +187,7 @@
         arguments.Add(L"1");
         arguments.Add(wcStr);
 
-        throw new MgInvalidArgumentException(L"MgUtil.WideCharToMultiByte",
+        throw new MgException(MgExceptionCodes::MgInvalidArgumentException, \
                L"MgUtil.WideCharToMultiByte",
             __LINE__, __WFILE__, &arguments, L"MgInvalidStringConversion", NULL);
     }
 }
@@ -226,7 +226,7 @@
         arguments.Add(L"1");
         arguments.Add((NULL == wcBuf) ? L"" : wcBuf);
 
-        throw new MgInvalidArgumentException(L"MgUtil.WideCharToMultiByte",
+        throw new MgException(MgExceptionCodes::MgInvalidArgumentException, \
                L"MgUtil.WideCharToMultiByte",
             __LINE__, __WFILE__, &arguments, L"MgInvalidStringConversion", NULL);
     }
 
@@ -292,7 +292,7 @@
         arguments.Add(L"1");
         arguments.Add(L"const string&");
 
-        throw new MgInvalidArgumentException(L"MgUtil.WideCharToMultiByte",
+        throw new MgException(MgExceptionCodes::MgInvalidArgumentException, \
                L"MgUtil.WideCharToMultiByte",
             __LINE__, __WFILE__, &arguments, L"MgInvalidStringConversion", NULL);
     }
 }
@@ -331,7 +331,7 @@
         arguments.Add(L"1");
         arguments.Add(L"const char*");
 
-        throw new MgInvalidArgumentException(L"MgUtil.WideCharToMultiByte",
+        throw new MgException(MgExceptionCodes::MgInvalidArgumentException, \
                L"MgUtil.WideCharToMultiByte",
             __LINE__, __WFILE__, &arguments, L"MgInvalidStringConversion", NULL);
     }
 
@@ -490,7 +490,7 @@
             MgStringCollection whyArguments;
             whyArguments.Add(reservedChars);
 
-            throw new MgInvalidArgumentException(L"CheckReseveredCharater",
+            throw new MgException(MgExceptionCodes::MgInvalidArgumentException, \
                L"CheckReseveredCharater",
                 __LINE__,  __WFILE__, &arguments, \
L"MgStringContainsReservedCharacters", &whyArguments);  }
     }
@@ -536,7 +536,7 @@
             arguments.Add(L"1");
             arguments.Add(str);
 
-            throw new MgInvalidArgumentException(L"MgUtil.CheckBeginEnd",
+            throw new MgException(MgExceptionCodes::MgInvalidArgumentException, \
                L"MgUtil.CheckBeginEnd",
                 __LINE__,  __WFILE__, &arguments, L"MgInvalidStringTrim", NULL);
         }
     }
@@ -758,7 +758,7 @@
 
     if (0 == str)
     {
-        throw new MgOutOfMemoryException(L"MgUtil.GenerateUuid",
+        throw new MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgUtil.GenerateUuid",  __LINE__, __WFILE__, NULL, L"", NULL);
     }
 
@@ -847,7 +847,7 @@
 
     #ifdef _WIN32
 
-        throw new MgPlatformNotSupportedException(L"MgUtil.GetLinuxMemoryStatus", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgPlatformNotSupportedException, \
L"MgUtil.GetLinuxMemoryStatus", __LINE__, __WFILE__, NULL, L"", NULL);  
     #else
 
@@ -861,7 +861,7 @@
         {
             MgStringCollection arguments;
             arguments.Add(MgUtil::LinuxFilesystemMeminfo);
-            throw new MgFileNotFoundException(L"MgUtil.GetLinuxMemoryStatus", \
__LINE__, __WFILE__, &arguments, L"", NULL); +            throw new \
MgException(MgExceptionCodes::MgFileNotFoundException, \
L"MgUtil.GetLinuxMemoryStatus", __LINE__, __WFILE__, &arguments, L"", NULL);  }
 
         /*

Modified: trunk/MgDev/Common/Foundation/System/Util.h
===================================================================
--- trunk/MgDev/Common/Foundation/System/Util.h	2022-09-15 10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/System/Util.h	2022-10-10 09:40:18 UTC (rev 9971)
@@ -612,8 +612,8 @@
 {                        \
     MgStringCollection args; \
     args.Add(L###pointer); \
-    throw new MgNullReferenceException(methodname, \
-                                       __LINE__, __WFILE__, NULL, L"MgNullPointer", \
&args); \ +    throw new MgException(MgExceptionCodes::MgNullReferenceException, \
methodname, \ +        __LINE__, __WFILE__, NULL, L"MgNullPointer", &args); \
 }
 
 #define CHECKARGUMENTNULL(pointer, methodname)      \
@@ -621,8 +621,8 @@
 {                        \
     MgStringCollection args; \
     args.Add(L###pointer); \
-    throw new MgNullArgumentException(methodname, \
-                                       __LINE__, __WFILE__, NULL, L"MgNullArgument", \
&args); \ +    throw new MgException(MgExceptionCodes::MgNullArgumentException, \
methodname, \ +        __LINE__, __WFILE__, NULL, L"MgNullArgument", &args); \
 }
 
 #define CHECKARGUMENTEMPTYSTRING(str, methodname)      \
@@ -630,8 +630,8 @@
 {                        \
     MgStringCollection args; \
     args.Add(L###str); \
-    throw new MgInvalidArgumentException(methodname, \
-                                         __LINE__, __WFILE__, NULL, \
L"MgEmptyStringArgument", &args); \ +    throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, methodname, \ +        \
__LINE__, __WFILE__, NULL, L"MgEmptyStringArgument", &args); \  }
 
 #define MG_CHECK_RANGE(value, min, max, methodName)                           \
@@ -646,8 +646,8 @@
             MgStringCollection args;                                          \
             args.Add(minStr.str());                                           \
             args.Add(maxStr.str());                                           \
-            args.Add(L###value);                                                \
-            throw new MgArgumentOutOfRangeException(                          \
+            args.Add(L###value);                                              \
+            throw new MgException(MgExceptionCodes::MgArgumentOutOfRangeException,   \
                \
                 methodName, __LINE__, __WFILE__, NULL, L"MgArgumentOutOfRange", \
                &args); \
         }                                                                     \
         else if (value < min)                                                 \

Modified: trunk/MgDev/Common/Foundation/System/XmlDefs.h
===================================================================
--- trunk/MgDev/Common/Foundation/System/XmlDefs.h	2022-09-15 10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Foundation/System/XmlDefs.h	2022-10-10 09:40:18 UTC (rev 9971)
@@ -81,13 +81,13 @@
     {                                                                         \
         MgStringCollection arguments;                                         \
         arguments.Add(X2W(e.getMessage()));                                   \
-        mgException = new MgXmlParserException(methodName, __LINE__, __WFILE__, \
NULL, L"MgFormatInnerExceptionMessage", &arguments); \ +        mgException = new \
MgException(L"MgXmlParserException", methodName, __LINE__, __WFILE__, NULL, \
                L"MgFormatInnerExceptionMessage", &arguments); \
     }                                                                         \
     catch (const DOMException& e)                                             \
     {                                                                         \
         MgStringCollection arguments;                                         \
         arguments.Add(X2W(e.msg));                                            \
-        mgException = new MgXmlParserException(methodName, __LINE__, __WFILE__, \
NULL, L"MgFormatInnerExceptionMessage", &arguments); \ +        mgException = new \
MgException(L"MgXmlParserException", methodName, __LINE__, __WFILE__, NULL, \
                L"MgFormatInnerExceptionMessage", &arguments); \
                                                                               \
     MG_CATCH(methodName)                                                      \
 

Modified: trunk/MgDev/Common/Foundation/System/XmlUtil.cpp
===================================================================
--- trunk/MgDev/Common/Foundation/System/XmlUtil.cpp	2022-09-15 10:14:11 UTC (rev \
                9970)
+++ trunk/MgDev/Common/Foundation/System/XmlUtil.cpp	2022-10-10 09:40:18 UTC (rev \
9971) @@ -321,7 +321,7 @@
     CHECKARGUMENTNULL(elementName, L"MgXmlUtil.GetNodeList");
     if (0 == ::strlen(elementName))
     {
-        throw new MgNullArgumentException(L"MgXmlUtil.GetNodeList",
+        throw new MgException(MgExceptionCodes::MgNullArgumentException, \
L"MgXmlUtil.GetNodeList",  __LINE__, __WFILE__, NULL, L"", NULL);
     }
 
@@ -346,7 +346,7 @@
         arguments.Add(L"1");
         arguments.Add(buffer);
 
-        throw new MgInvalidArgumentException(L"MgXmlUtil.GetNodeList",
+        throw new MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgXmlUtil.GetNodeList",  __LINE__, __WFILE__, &arguments, L"MgInvalidNode", NULL);
     }
 
@@ -403,7 +403,7 @@
     CHECKARGUMENTNULL(elementName, L"MgXmlUtil.GetElementNode");
     if (0 == ::strlen(elementName))
     {
-        throw new MgNullArgumentException(L"MgXmlUtil.GetElementNode",
+        throw new MgException(MgExceptionCodes::MgNullArgumentException, \
L"MgXmlUtil.GetElementNode",  __LINE__, __WFILE__, NULL, L"", NULL);
     }
 
@@ -424,7 +424,7 @@
     }
     else if (required)
     {
-        throw new MgXmlParserException(L"MgXmlUtil.GetElementNode",
+        throw new MgException(MgExceptionCodes::MgXmlParserException, \
L"MgXmlUtil.GetElementNode",  __LINE__, __WFILE__, NULL, L"", NULL);
     }
     else
@@ -479,7 +479,7 @@
 
     if (NULL == elementNode && required)
     {
-        throw new MgXmlParserException(L"MgXmlUtil.GetElementNode",
+        throw new MgException(MgExceptionCodes::MgXmlParserException, \
L"MgXmlUtil.GetElementNode",  __LINE__, __WFILE__, NULL, L"", NULL);
     }
 
@@ -530,7 +530,7 @@
     {
         if (required)
         {
-            throw new MgXmlParserException(L"MgXmlUtil.GetElementValue",
+            throw new MgException(MgExceptionCodes::MgXmlParserException, \
L"MgXmlUtil.GetElementValue",  __LINE__, __WFILE__, NULL, L"", NULL);
         }
 
@@ -589,7 +589,7 @@
     }
     else
     {
-        throw new MgXmlParserException(L"MgXmlUtil.GetElementValue",
+        throw new MgException(MgExceptionCodes::MgXmlParserException, \
L"MgXmlUtil.GetElementValue",  __LINE__, __WFILE__, NULL, L"", NULL);
     }
 
@@ -640,7 +640,7 @@
 
     if (NULL == textNode)
     {
-        throw new MgXmlParserException(L"MgXmlUtil.SetElementValue",
+        throw new MgException(MgExceptionCodes::MgXmlParserException, \
L"MgXmlUtil.SetElementValue",  __LINE__, __WFILE__, NULL, L"", NULL);
     }
     else if (elementValue != X2W(textNode->getNodeValue()))

Modified: trunk/MgDev/Common/Geometry/AgfStream.cpp
===================================================================
--- trunk/MgDev/Common/Geometry/AgfStream.cpp	2022-09-15 10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Geometry/AgfStream.cpp	2022-10-10 09:40:18 UTC (rev 9971)
@@ -158,116 +158,116 @@
 //
 void MgAgfStream::GetStreamHeader(MgStreamHeader& msh)
 {
-    throw new MgNotImplementedException(L"MgAgfStream.GetStreamHeader", __LINE__, \
__WFILE__, NULL, L"", NULL); +    throw new \
MgException(MgExceptionCodes::MgNotImplementedException, \
L"MgAgfStream.GetStreamHeader", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
 void MgAgfStream::GetOperationHeader(MgOperationPacket& operPacket)
 {
-    throw new MgNotImplementedException(L"MgAgfStream.GetOperationHeader", __LINE__, \
__WFILE__, NULL, L"", NULL); +    throw new \
MgException(MgExceptionCodes::MgNotImplementedException, \
L"MgAgfStream.GetOperationHeader", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
 void MgAgfStream::GetOperationResponseHeader(MgOperationResponsePacket& mop)
 {
-    throw new MgNotImplementedException(L"MgAgfStream.GetOperationResponseHeader", \
__LINE__, __WFILE__, NULL, L"", NULL); +    throw new \
MgException(MgExceptionCodes::MgNotImplementedException, \
L"MgAgfStream.GetOperationResponseHeader", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
 void MgAgfStream::GetArgumentHeader(MgArgumentPacket& map)
 {
-    throw new MgNotImplementedException(L"MgAgfStream.GetArgumentHeader", __LINE__, \
__WFILE__, NULL, L"", NULL); +    throw new \
MgException(MgExceptionCodes::MgNotImplementedException, \
L"MgAgfStream.GetArgumentHeader", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
 void MgAgfStream::GetBinaryStreamHeader(MgBinaryStreamArgumentPacket& bsap)
 {
-    throw new MgNotImplementedException(L"MgAgfStream.GetBinaryStreamHeader", \
__LINE__, __WFILE__, NULL, L"", NULL); +    throw new \
MgException(MgExceptionCodes::MgNotImplementedException, \
L"MgAgfStream.GetBinaryStreamHeader", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
 MgByteReader* MgAgfStream::GetStream()
 {
-    throw new MgNotImplementedException(L"MgAgfStream.GetStream", __LINE__, \
__WFILE__, NULL, L"", NULL); +    throw new \
MgException(MgExceptionCodes::MgNotImplementedException, L"MgAgfStream.GetStream", \
__LINE__, __WFILE__, NULL, L"", NULL);  }
 
 MgStreamHelper::MgStreamStatus MgAgfStream::GetData(void* value, INT32 length)
 {
-    throw new MgNotImplementedException(L"MgAgfStream.GetData", __LINE__, __WFILE__, \
NULL, L"", NULL); +    throw new \
MgException(MgExceptionCodes::MgNotImplementedException, L"MgAgfStream.GetData", \
__LINE__, __WFILE__, NULL, L"", NULL);  }
 
 void MgAgfStream::GetClassId(INT32& value)
 {
-    throw new MgNotImplementedException(L"MgAgfStream.GetClassId", __LINE__, \
__WFILE__, NULL, L"", NULL); +    throw new \
MgException(MgExceptionCodes::MgNotImplementedException, L"MgAgfStream.GetClassId", \
__LINE__, __WFILE__, NULL, L"", NULL);  }
 
 void MgAgfStream::GetStreamEnd()
 {
-    throw new MgNotImplementedException(L"MgAgfStream.GetStreamEnd", __LINE__, \
__WFILE__, NULL, L"", NULL); +    throw new \
MgException(MgExceptionCodes::MgNotImplementedException, L"MgAgfStream.GetStreamEnd", \
__LINE__, __WFILE__, NULL, L"", NULL);  }
 
 
 MgObject* MgAgfStream::GetObject()
 {
-    throw new MgNotImplementedException(L"MgAgfStream.GetObject", __LINE__, \
__WFILE__, NULL, L"", NULL); +    throw new \
MgException(MgExceptionCodes::MgNotImplementedException, L"MgAgfStream.GetObject", \
__LINE__, __WFILE__, NULL, L"", NULL);  }
 
 void MgAgfStream::GetString(REFSTRING wcStr)
 {
-    throw new MgNotImplementedException(L"MgAgfStream.GetString", __LINE__, \
__WFILE__, NULL, L"", NULL); +    throw new \
MgException(MgExceptionCodes::MgNotImplementedException, L"MgAgfStream.GetString", \
__LINE__, __WFILE__, NULL, L"", NULL);  }
 
 MgStreamHelper::MgStreamStatus MgAgfStream::WriteStreamHeader(MgStreamHeader& msh)
 {
-    throw new MgNotImplementedException(L"MgAgfStream.WriteStreamHeader", __LINE__, \
__WFILE__, NULL, L"", NULL); +    throw new \
MgException(MgExceptionCodes::MgNotImplementedException, \
L"MgAgfStream.WriteStreamHeader", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
 MgStreamHelper::MgStreamStatus MgAgfStream::WriteOperationHeader(MgOperationPacket& \
operPacket)  {
-    throw new MgNotImplementedException(L"MgAgfStream.WriteOperationHeader", \
__LINE__, __WFILE__, NULL, L"", NULL); +    throw new \
MgException(MgExceptionCodes::MgNotImplementedException, \
L"MgAgfStream.WriteOperationHeader", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
 MgStreamHelper::MgStreamStatus \
MgAgfStream::WriteBinaryStreamHeader(MgBinaryStreamArgumentPacket& bsap)  {
-    throw new MgNotImplementedException(L"MgAgfStream.WriteOperationHeader", \
__LINE__, __WFILE__, NULL, L"", NULL); +    throw new \
MgException(MgExceptionCodes::MgNotImplementedException, \
L"MgAgfStream.WriteOperationHeader", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
 MgStreamHelper::MgStreamStatus MgAgfStream::WriteOperationResponseHeader( \
MgOperationResponsePacket& mop )  {
-    throw new MgNotImplementedException(L"MgAgfStream.WriteBinaryStreamHeader", \
__LINE__, __WFILE__, NULL, L"", NULL); +    throw new \
MgException(MgExceptionCodes::MgNotImplementedException, \
L"MgAgfStream.WriteBinaryStreamHeader", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
 MgStreamHelper::MgStreamStatus MgAgfStream::WriteArgumentHeader(MgArgumentPacket& \
map)  {
-    throw new MgNotImplementedException(L"MgAgfStream.WriteArgumentHeader", \
__LINE__, __WFILE__, NULL, L"", NULL); +    throw new \
MgException(MgExceptionCodes::MgNotImplementedException, \
L"MgAgfStream.WriteArgumentHeader", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
 MgStreamHelper::MgStreamStatus MgAgfStream::WriteString(CREFSTRING value)
 {
-    throw new MgNotImplementedException(L"MgAgfStream.WriteString", __LINE__, \
__WFILE__, NULL, L"", NULL); +    throw new \
MgException(MgExceptionCodes::MgNotImplementedException, L"MgAgfStream.WriteString", \
__LINE__, __WFILE__, NULL, L"", NULL);  }
 
 MgStreamHelper::MgStreamStatus MgAgfStream::WriteStream(MgByteReader* byteReader)
 {
-    throw new MgNotImplementedException(L"MgAgfStream.WriteStream", __LINE__, \
__WFILE__, NULL, L"", NULL); +    throw new \
MgException(MgExceptionCodes::MgNotImplementedException, L"MgAgfStream.WriteStream", \
__LINE__, __WFILE__, NULL, L"", NULL);  }
 
 MgStreamHelper::MgStreamStatus MgAgfStream::WriteClassId(INT32 value)
 {
-    throw new MgNotImplementedException(L"MgAgfStream.WriteClassId", __LINE__, \
__WFILE__, NULL, L"", NULL); +    throw new \
MgException(MgExceptionCodes::MgNotImplementedException, L"MgAgfStream.WriteClassId", \
__LINE__, __WFILE__, NULL, L"", NULL);  }
 
 MgStreamHelper::MgStreamStatus MgAgfStream::WriteStreamEnd()
 {
-    throw new MgNotImplementedException(L"MgAgfStream.WriteStreamEnd", __LINE__, \
__WFILE__, NULL, L"", NULL); +    throw new \
MgException(MgExceptionCodes::MgNotImplementedException, \
L"MgAgfStream.WriteStreamEnd", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
 MgStreamHelper::MgStreamStatus MgAgfStream::WriteObject(MgObject* obj)
 {
-    throw new MgNotImplementedException(L"MgAgfStream.WriteObject", __LINE__, \
__WFILE__, NULL, L"", NULL); +    throw new \
MgException(MgExceptionCodes::MgNotImplementedException, L"MgAgfStream.WriteObject", \
__LINE__, __WFILE__, NULL, L"", NULL);  }
 
 MgStreamHelper::MgStreamStatus \
MgAgfStream::WriteResponseHeader(MgPacketParser::MgECode eCode, UINT32 noOfRetValues) \
                {
-    throw new MgNotImplementedException(L"MgAgfStream.WriteResponseHeader", \
__LINE__, __WFILE__, NULL, L"", NULL); +    throw new \
MgException(MgExceptionCodes::MgNotImplementedException, \
L"MgAgfStream.WriteResponseHeader", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
 MgStreamHelper::MgStreamStatus MgAgfStream::WriteControlPacket(MgControlPacket& \
packet)  {
-    throw new MgNotImplementedException(L"MgAgfStream.WriteControlPacket", __LINE__, \
__WFILE__, NULL, L"", NULL); +    throw new \
MgException(MgExceptionCodes::MgNotImplementedException, \
L"MgAgfStream.WriteControlPacket", __LINE__, __WFILE__, NULL, L"", NULL);  }

Modified: trunk/MgDev/Common/Geometry/ArcSegment.cpp
===================================================================
--- trunk/MgDev/Common/Geometry/ArcSegment.cpp	2022-09-15 10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Geometry/ArcSegment.cpp	2022-10-10 09:40:18 UTC (rev 9971)
@@ -132,7 +132,7 @@
 {
     //should not be called on geometry components
     //components are serialized by the containing geometries
-    throw new MgNotImplementedException(L"MgArcSegment.Serialize", __LINE__, \
__WFILE__, NULL, L"", NULL); +    throw new \
MgException(MgExceptionCodes::MgNotImplementedException, L"MgArcSegment.Serialize", \
__LINE__, __WFILE__, NULL, L"", NULL);  }
 
 //////////////////////////////////////////////////////////////////
@@ -142,7 +142,7 @@
 {
     //should not be called on geometry components
     //components are deserialized by the containing geometries
-    throw new MgNotImplementedException(L"MgArcSegment.Deserialize", __LINE__, \
__WFILE__, NULL, L"", NULL); +    throw new \
MgException(MgExceptionCodes::MgNotImplementedException, L"MgArcSegment.Deserialize", \
__LINE__, __WFILE__, NULL, L"", NULL);  }
 
 //////////////////////////////////////////////////////////////////

Modified: trunk/MgDev/Common/Geometry/Buffer/MgBuffer.cpp
===================================================================
--- trunk/MgDev/Common/Geometry/Buffer/MgBuffer.cpp	2022-09-15 10:14:11 UTC (rev \
                9970)
+++ trunk/MgDev/Common/Geometry/Buffer/MgBuffer.cpp	2022-10-10 09:40:18 UTC (rev \
9971) @@ -182,7 +182,7 @@
                 arguments.Add(L"2");
                 arguments.Add(buffer);
 
-                throw new MgInvalidArgumentException(L"MgBuffer.BufferGeometry",
+                throw new MgException(MgExceptionCodes::MgInvalidArgumentException, \
                L"MgBuffer.BufferGeometry",
                     __LINE__, __WFILE__, &arguments, L"MgInvalidGeometryType", \
NULL);  }
         }

Modified: trunk/MgDev/Common/Geometry/Buffer/oobject.cpp
===================================================================
--- trunk/MgDev/Common/Geometry/Buffer/oobject.cpp	2022-09-15 10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Geometry/Buffer/oobject.cpp	2022-10-10 09:40:18 UTC (rev 9971)
@@ -55,7 +55,7 @@
 
     if (!memPtr)
     {
-        throw new MgOutOfMemoryException(L"OpsObject.AllocMem", __LINE__, __WFILE__, \
NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, L"OpsObject.AllocMem", \
__LINE__, __WFILE__, NULL, L"", NULL);  }
 
     return memPtr;
@@ -94,7 +94,7 @@
     void *newMemPtr = ::realloc(memPtr, nBytes);
     if (!newMemPtr && nBytes != 0)
     {
-        throw new MgOutOfMemoryException(L"OpsObject.ReallocMem", __LINE__, \
__WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, L"OpsObject.ReallocMem", \
__LINE__, __WFILE__, NULL, L"", NULL);  }
     return newMemPtr;
 

Modified: trunk/MgDev/Common/Geometry/CoordinateSystem/CoordinateSystemFactory.cpp
===================================================================
--- trunk/MgDev/Common/Geometry/CoordinateSystem/CoordinateSystemFactory.cpp	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Geometry/CoordinateSystem/CoordinateSystemFactory.cpp	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -79,7 +79,7 @@
 
     if (!sm_pCatalog)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemFactory.MgCoordinateSystemFactory", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemFactory.MgCoordinateSystemFactory", __LINE__, __WFILE__, NULL, \
L"", NULL);  }
 
     MG_CATCH_AND_THROW(L"MgCoordinateSystemFactory.MgCoordinateSystemFactory")
@@ -106,7 +106,7 @@
 
     if (NULL == sm_pCatalog)
     {
-        throw new MgCoordinateSystemInitializationFailedException(
+        throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
  L"MgCoordinateSystemFactory.Create",
             __LINE__, __WFILE__, NULL, L"", NULL);
     }
@@ -144,7 +144,7 @@
 
     if (NULL == sm_pCatalog)
     {
-        throw new MgCoordinateSystemInitializationFailedException(
+        throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
  L"MgCoordinateSystemFactory.CreateFromCode",
             __LINE__, __WFILE__, NULL, L"", NULL);
     }
@@ -201,7 +201,7 @@
 
     if (!sm_pCatalog)
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemFactory.GetCatalog", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystemFactory.GetCatalog", __LINE__, __WFILE__, NULL, L"", NULL);  }
     MG_CATCH_AND_THROW(L"MgCoordinateSystemFactory.GetCatalog")
 
@@ -216,7 +216,7 @@
     pNew=new CCoordinateSystemTransform(pSource, pTarget);
     if (NULL == pNew)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemFactory.GetTransform", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemFactory.GetTransform", __LINE__, __WFILE__, NULL, L"", NULL);  }
     MG_CATCH_AND_THROW(L"MgCoordinateSystemFactory.GetTransform")
 
@@ -243,12 +243,12 @@
 
     if (!sm_pCatalog)
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemFactory.ConvertWktToCoordinateSystemCode", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystemFactory.ConvertWktToCoordinateSystemCode", __LINE__, __WFILE__, \
NULL, L"", NULL);  }
     Ptr<MgCoordinateSystemFormatConverter> \
pConverter=sm_pCatalog->GetFormatConverter();  if (!pConverter)
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemFactory.ConvertWktToCoordinateSystemCode", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystemFactory.ConvertWktToCoordinateSystemCode", __LINE__, __WFILE__, \
NULL, L"", NULL);  }
     code=pConverter->WktToCode(MgCoordinateSystemWktFlavor::Unknown, wkt, \
MgCoordinateSystemCodeFormat::Mentor);  
@@ -276,12 +276,12 @@
 
     if (!sm_pCatalog)
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemFactory.ConvertCoordinateSystemCodeToWkt", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystemFactory.ConvertCoordinateSystemCodeToWkt", __LINE__, __WFILE__, \
NULL, L"", NULL);  }
     Ptr<MgCoordinateSystemFormatConverter> \
pConverter=sm_pCatalog->GetFormatConverter();  if (!pConverter)
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemFactory.ConvertCoordinateSystemCodeToWkt", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystemFactory.ConvertCoordinateSystemCodeToWkt", __LINE__, __WFILE__, \
NULL, L"", NULL);  }
 
     // Check to see if this is an EPSG code. ie: "EPSG:4326"
@@ -319,27 +319,27 @@
     categoryNames = new MgStringCollection();
     if (!categoryNames)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemFactory.EnumerateCategories", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemFactory.EnumerateCategories", __LINE__, __WFILE__, NULL, L"", \
NULL);  }
     if (!sm_pCatalog)
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemFactory.ToString", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystemFactory.ToString", __LINE__, __WFILE__, NULL, L"", NULL);  }
     Ptr<MgCoordinateSystemCategoryDictionary> \
pCtDict=sm_pCatalog->GetCategoryDictionary();  if (!pCtDict)
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemFactory.EnumerateCategories", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemNoCategoryDictionaryException", NULL); \
+        throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystemFactory.EnumerateCategories", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemNoCategoryDictionaryException", NULL);  }
     Ptr<MgCoordinateSystemEnum> pEnum=pCtDict->GetEnum();
     if (!pEnum)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemFactory.EnumerateCategories", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemFactory.EnumerateCategories", __LINE__, __WFILE__, NULL, L"", \
NULL);  }
     UINT32 nNbCategories=pCtDict->GetSize();
     categoryNames=pEnum->NextName(nNbCategories);
     if (categoryNames->GetCount()!=nNbCategories)
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemFactory.EnumerateCategories", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystemFactory.EnumerateCategories", __LINE__, __WFILE__, NULL, L"", \
NULL);  }
 
     MG_CATCH_AND_THROW(L"MgCoordinateSystemFactory.EnumerateCategories")
@@ -367,26 +367,26 @@
     pCoordinateSystems = new MgBatchPropertyCollection();
     if (!pCoordinateSystems)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemFactory.EnumerateCoordinateSystems", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemFactory.EnumerateCoordinateSystems", __LINE__, __WFILE__, NULL, \
L"", NULL);  }
     if (!sm_pCatalog)
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemFactory.EnumerateCoordinateSystems", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystemFactory.EnumerateCoordinateSystems", __LINE__, __WFILE__, NULL, \
L"", NULL);  }
     Ptr<MgCoordinateSystemCategoryDictionary> \
pCtDict=sm_pCatalog->GetCategoryDictionary();  if (!pCtDict)
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemFactory.EnumerateCoordinateSystems", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemNoCategoryDictionaryException", NULL); \
+        throw new MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystemFactory.EnumerateCoordinateSystems", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemNoCategoryDictionaryException", NULL);  }
     Ptr<MgCoordinateSystemCategory> pCategory=pCtDict->GetCategory(category);
     if (!pCategory)
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemFactory.EnumerateCoordinateSystems", \
__LINE__, __WFILE__, NULL, L"MgCoordinateSystemNoCategoryInDictionaryException", \
NULL); +        throw new \
MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystemFactory.EnumerateCoordinateSystems", __LINE__, __WFILE__, NULL, \
L"MgCoordinateSystemNoCategoryInDictionaryException", NULL);  }
     Ptr<MgCoordinateSystemEnum> pEnum=pCategory->GetEnum();
     if (!pEnum)
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemFactory.EnumerateCoordinateSystems", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystemFactory.EnumerateCoordinateSystems", __LINE__, __WFILE__, NULL, \
L"", NULL);  }
 
     for ( ; ; )
@@ -463,12 +463,12 @@
 
     if (!sm_pCatalog)
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemFactory.ConvertEpsgCodeToWkt", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystemFactory.ConvertEpsgCodeToWkt", __LINE__, __WFILE__, NULL, L"", \
NULL);  }
     Ptr<MgCoordinateSystemFormatConverter> \
pConverter=sm_pCatalog->GetFormatConverter();  if (!pConverter)
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemFactory.ConvertEpsgCodeToWkt", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystemFactory.ConvertEpsgCodeToWkt", __LINE__, __WFILE__, NULL, L"", \
NULL);  }
     wchar_t wszEpsg[255];
     #ifdef _WIN32
@@ -502,12 +502,12 @@
 
     if (!sm_pCatalog)
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemFactory.ConvertWktToEpsgCode", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystemFactory.ConvertWktToEpsgCode", __LINE__, __WFILE__, NULL, L"", \
NULL);  }
     Ptr<MgCoordinateSystemFormatConverter> \
pConverter=sm_pCatalog->GetFormatConverter();  if (!pConverter)
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemFactory.ConvertWktToEpsgCode", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystemFactory.ConvertWktToEpsgCode", __LINE__, __WFILE__, NULL, L"", \
NULL);  }
     STRING strEpsgCode=pConverter->WktToCode(MgCoordinateSystemWktFlavor::Unknown, \
wkt, MgCoordinateSystemCodeFormat::Epsg);  nEpsg = (INT32)wcstol(strEpsgCode.c_str(), \
NULL, 10); @@ -536,13 +536,13 @@
 
     if (!sm_pCatalog)
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemFactory.IsValid", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystemFactory.IsValid", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
     Ptr<MgCoordinateSystemFormatConverter> \
pConverter=sm_pCatalog->GetFormatConverter();  if (!pConverter)
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemFactory.IsValid", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgCoordinateSystemInitializationFailedException, \
L"MgCoordinateSystemFactory.IsValid", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
     try
@@ -592,7 +592,7 @@
             // Check the consistency of all these parameters.
             if (!gridSpecification->IsConsistent ())
             {
-                throw new \
MgInvalidArgumentException(L"MgCoordinateSystemFactory.GridSpecification", __LINE__, \
__WFILE__, NULL, L"", NULL); +                throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCoordinateSystemFactory.GridSpecification", __LINE__, __WFILE__, NULL, L"", \
NULL);  }
         }
     MG_CATCH_AND_THROW(L"MgCoordinateSystemFactory.GridSpecification")
@@ -666,7 +666,7 @@
     {
         if (bSetExceptionsOn)
         {
-            throw new MgOutOfMemoryException(L"MgCoordinateSystemFactory.GetMgrs", \
__LINE__, __WFILE__, NULL, L"", NULL); +            throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemFactory.GetMgrs", __LINE__, __WFILE__, NULL, L"", NULL);  }
         else
         {
@@ -695,7 +695,7 @@
     {
         if (bSetExceptionsOn)
         {
-            throw new \
MgOutOfMemoryException(L"MgCoordinateSystemFactory.GetMgrsEllipsoid", __LINE__, \
__WFILE__, NULL, L"", NULL); +            throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemFactory.GetMgrsEllipsoid", __LINE__, __WFILE__, NULL, L"", NULL); \
}  else
         {
@@ -724,7 +724,7 @@
     {
         if (bSetExceptionsOn)
         {
-            throw new \
MgOutOfMemoryException(L"MgCoordinateSystemFactory.GetMgrsDatum", __LINE__, \
__WFILE__, NULL, L"", NULL); +            throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemFactory.GetMgrsDatum", __LINE__, __WFILE__, NULL, L"", NULL);  }
         else
         {
@@ -768,7 +768,7 @@
         {
             if (bSetExceptionsOn)
             {
-                throw new \
MgOutOfMemoryException(L"MgCoordinateSystemFactory.GetMgrsDatum", __LINE__, \
__WFILE__, NULL, L"", NULL); +                throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemFactory.GetMgrsDatum", __LINE__, __WFILE__, NULL, L"", NULL);  }
             else
             {
@@ -818,7 +818,7 @@
         {
             if (bSetExceptionsOn)
             {
-                throw new \
MgOutOfMemoryException(L"MgCoordinateSystemFactory.GetMgrsDatum", __LINE__, \
__WFILE__, NULL, L"", NULL); +                throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, \
L"MgCoordinateSystemFactory.GetMgrsDatum", __LINE__, __WFILE__, NULL, L"", NULL);  }
             else
             {

Modified: trunk/MgDev/Common/Geometry/CurvePolygon.cpp
===================================================================
--- trunk/MgDev/Common/Geometry/CurvePolygon.cpp	2022-09-15 10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Geometry/CurvePolygon.cpp	2022-10-10 09:40:18 UTC (rev 9971)
@@ -60,7 +60,7 @@
 MgCurveRing* MgCurvePolygon::GetInteriorRing(INT32 index)
 {
     if (m_innerRings == NULL)
-        throw new MgArgumentOutOfRangeException(L"MgCurvePolygon.GetInteriorRing", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgArgumentOutOfRangeException, \
L"MgCurvePolygon.GetInteriorRing", __LINE__, __WFILE__, NULL, L"", NULL);  
     return m_innerRings->GetItem(index);
 }

Modified: trunk/MgDev/Common/Geometry/CurveRing.cpp
===================================================================
--- trunk/MgDev/Common/Geometry/CurveRing.cpp	2022-09-15 10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Geometry/CurveRing.cpp	2022-10-10 09:40:18 UTC (rev 9971)
@@ -147,7 +147,7 @@
 {
     //should not be called on geometry components
     //components are serialized by the containing geometries
-    throw new MgNotImplementedException(L"MgCurveRing.Serialize", __LINE__, \
__WFILE__, NULL, L"", NULL); +    throw new \
MgException(MgExceptionCodes::MgNotImplementedException, L"MgCurveRing.Serialize", \
__LINE__, __WFILE__, NULL, L"", NULL);  }
 
 //////////////////////////////////////////////////////////////////
@@ -157,7 +157,7 @@
 {
     //should not be called on geometry components
     //components are deserialized by the containing geometries
-    throw new MgNotImplementedException(L"MgCurveRing.Deserialize", __LINE__, \
__WFILE__, NULL, L"", NULL); +    throw new \
MgException(MgExceptionCodes::MgNotImplementedException, L"MgCurveRing.Deserialize", \
__LINE__, __WFILE__, NULL, L"", NULL);  }
 
 ///////////////////////////////////////////////////////////////////////////

Modified: trunk/MgDev/Common/Geometry/CurveString.cpp
===================================================================
--- trunk/MgDev/Common/Geometry/CurveString.cpp	2022-09-15 10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Geometry/CurveString.cpp	2022-10-10 09:40:18 UTC (rev 9971)
@@ -32,7 +32,7 @@
         arguments.Add(L"1");
         arguments.Add(L"0");
 
-        throw new MgInvalidArgumentException(L"MgCurveString.MgCurveString",
+        throw new MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgCurveString.MgCurveString",  __LINE__, __WFILE__, &arguments, L"MgGeometryEmpty", \
NULL);  }
 

Modified: trunk/MgDev/Common/Geometry/Envelope.cpp
===================================================================
--- trunk/MgDev/Common/Geometry/Envelope.cpp	2022-09-15 10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Geometry/Envelope.cpp	2022-10-10 09:40:18 UTC (rev 9971)
@@ -59,7 +59,7 @@
         arguments.Add(L"2");
         arguments.Add(buffer);
 
-        throw new MgInvalidArgumentException(L"MgEnvelope.MgEnvelope",
+        throw new MgException(MgExceptionCodes::MgInvalidArgumentException, \
                L"MgEnvelope.MgEnvelope",
             __LINE__, __WFILE__, &arguments, L"MgCoordinateDimensionDifferent", \
NULL);  }
 
@@ -78,7 +78,7 @@
             arguments.Add(L"2");
             arguments.Add(buffer);
 
-            throw new MgInvalidArgumentException(L"MgEnvelope.MgEnvelope",
+            throw new MgException(MgExceptionCodes::MgInvalidArgumentException, \
                L"MgEnvelope.MgEnvelope",
                 __LINE__, __WFILE__, &arguments, L"MgInvalidEnvelopeCoordinates", \
NULL);  }
 
@@ -100,7 +100,7 @@
             arguments.Add(L"2");
             arguments.Add(buffer);
 
-            throw new MgInvalidArgumentException(L"MgEnvelope.MgEnvelope",
+            throw new MgException(MgExceptionCodes::MgInvalidArgumentException, \
                L"MgEnvelope.MgEnvelope",
                 __LINE__, __WFILE__, &arguments, L"MgInvalidEnvelopeCoordinates", \
NULL);  }
 
@@ -139,7 +139,7 @@
         arguments.Add(L"2");
         arguments.Add(buffer);
 
-        throw new MgInvalidArgumentException(L"MgEnvelope.MgEnvelope",
+        throw new MgException(MgExceptionCodes::MgInvalidArgumentException, \
                L"MgEnvelope.MgEnvelope",
             __LINE__, __WFILE__, &arguments, L"MgInvalidEnvelopeCoordinates", NULL);
     }
 
@@ -155,7 +155,7 @@
         arguments.Add(L"2");
         arguments.Add(buffer);
 
-        throw new MgInvalidArgumentException(L"MgEnvelope.MgEnvelope",
+        throw new MgException(MgExceptionCodes::MgInvalidArgumentException, \
                L"MgEnvelope.MgEnvelope",
             __LINE__, __WFILE__, &arguments, L"MgInvalidEnvelopeCoordinates", NULL);
     }
 
@@ -273,11 +273,11 @@
 
         Ptr<MgCoordinateXY> ll = new MgCoordinateXY(llx, lly);
         if(ll == NULL)
-            throw new MgOutOfMemoryException(L"MgEnvelope.ExpandToInclude", \
__LINE__, __WFILE__, NULL, L"", NULL); +            throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, L"MgEnvelope.ExpandToInclude", \
__LINE__, __WFILE__, NULL, L"", NULL);  
         Ptr<MgCoordinateXY> ur = new MgCoordinateXY(urx, ury);
         if(ur == NULL)
-            throw new MgOutOfMemoryException(L"MgEnvelope.ExpandToInclude", \
__LINE__, __WFILE__, NULL, L"", NULL); +            throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, L"MgEnvelope.ExpandToInclude", \
__LINE__, __WFILE__, NULL, L"", NULL);  
         m_lowerLeft  = SAFE_ADDREF((MgCoordinate*)ll);
         m_upperRight = SAFE_ADDREF((MgCoordinate*)ur);
@@ -443,11 +443,11 @@
 
         Ptr<MgCoordinateXY> ll = new MgCoordinateXY(minX, minY);
         if (ll == NULL)
-            throw new MgOutOfMemoryException(L"MgEnvelope.Grow", __LINE__, \
__WFILE__, NULL, L"", NULL); +            throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, L"MgEnvelope.Grow", __LINE__, \
__WFILE__, NULL, L"", NULL);  
         Ptr<MgCoordinateXY> ur = new MgCoordinateXY(maxX, maxY);
         if (ur == NULL)
-            throw new MgOutOfMemoryException(L"MgEnvelope.Grow", __LINE__, \
__WFILE__, NULL, L"", NULL); +            throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, L"MgEnvelope.Grow", __LINE__, \
__WFILE__, NULL, L"", NULL);  
         m_lowerLeft  = SAFE_ADDREF((MgCoordinate*)ll);
         m_upperRight = SAFE_ADDREF((MgCoordinate*)ur);

Deleted: trunk/MgDev/Common/Geometry/Exception/CoordinateSystemComputationFailedException.cpp
 ===================================================================
--- trunk/MgDev/Common/Geometry/Exception/CoordinateSystemComputationFailedException.cpp	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Geometry/Exception/CoordinateSystemComputationFailedException.cpp	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -1,40 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgCoordinateSystemComputationFailedException, \
                MgApplicationException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgCoordinateSystemComputationFailedException object.
-///
-MgCoordinateSystemComputationFailedException::MgCoordinateSystemComputationFailedException(CREFSTRING \
                methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgApplicationException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgCoordinateSystemComputationFailedException::~MgCoordinateSystemComputationFailedException() \
                throw()
-{
-}

Deleted: trunk/MgDev/Common/Geometry/Exception/CoordinateSystemComputationFailedException.h
 ===================================================================
--- trunk/MgDev/Common/Geometry/Exception/CoordinateSystemComputationFailedException.h	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Geometry/Exception/CoordinateSystemComputationFailedException.h	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -1,69 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-/// \ingroup Exceptions_Module
-
-#ifndef MG_COORDINATE_SYSTEM_COMPUTATION_FAILED_EXCEPTION_H_
-#define MG_COORDINATE_SYSTEM_COMPUTATION_FAILED_EXCEPTION_H_
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when a coordinate system computation fails.
-///
-class MG_GEOMETRY_API MgCoordinateSystemComputationFailedException : public \
                MgApplicationException
-{
-    DECLARE_CLASSNAME(MgCoordinateSystemComputationFailedException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgCoordinateSystemComputationFailedException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the \
                exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the \
                exception occurs.
-    ///
-    MgCoordinateSystemComputationFailedException(CREFSTRING methodName, INT32 \
                lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgCoordinateSystemConversionFailedException object.
-    ///
-    virtual ~MgCoordinateSystemComputationFailedException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgCoordinateSystemComputationFailedException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = \
                Geometry_Exception_MgCoordinateSystemComputationFailedException;
-};
-
-#endif

Deleted: trunk/MgDev/Common/Geometry/Exception/CoordinateSystemConversionFailedException.cpp
 ===================================================================
--- trunk/MgDev/Common/Geometry/Exception/CoordinateSystemConversionFailedException.cpp	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Geometry/Exception/CoordinateSystemConversionFailedException.cpp	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -1,40 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgCoordinateSystemConversionFailedException, \
                MgApplicationException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgCoordinateSystemConversionFailedException object.
-///
-MgCoordinateSystemConversionFailedException::MgCoordinateSystemConversionFailedException(CREFSTRING \
                methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgApplicationException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgCoordinateSystemConversionFailedException::~MgCoordinateSystemConversionFailedException() \
                throw()
-{
-}

Deleted: trunk/MgDev/Common/Geometry/Exception/CoordinateSystemConversionFailedException.h
 ===================================================================
--- trunk/MgDev/Common/Geometry/Exception/CoordinateSystemConversionFailedException.h	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Geometry/Exception/CoordinateSystemConversionFailedException.h	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -1,69 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-/// \ingroup Exceptions_Module
-
-#ifndef MG_COORDINATE_SYSTEM_CONVERSION_FAILED_EXCEPTION_H_
-#define MG_COORDINATE_SYSTEM_CONVERSION_FAILED_EXCEPTION_H_
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when a coordinate system conversion fails.
-///
-class MG_GEOMETRY_API MgCoordinateSystemConversionFailedException : public \
                MgApplicationException
-{
-    DECLARE_CLASSNAME(MgCoordinateSystemConversionFailedException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgCoordinateSystemConversionFailedException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the \
                exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the \
                exception occurs.
-    ///
-    MgCoordinateSystemConversionFailedException(CREFSTRING methodName, INT32 \
                lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgCoordinateSystemConversionFailedException object.
-    ///
-    virtual ~MgCoordinateSystemConversionFailedException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgCoordinateSystemConversionFailedException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = \
                Geometry_Exception_MgCoordinateSystemConversionFailedException;
-};
-
-#endif

Deleted: trunk/MgDev/Common/Geometry/Exception/CoordinateSystemInitializationFailedException.cpp
 ===================================================================
--- trunk/MgDev/Common/Geometry/Exception/CoordinateSystemInitializationFailedException.cpp	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Geometry/Exception/CoordinateSystemInitializationFailedException.cpp	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -1,40 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgCoordinateSystemInitializationFailedException, \
                MgApplicationException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgCoordinateSystemInitializationFailedException object.
-///
-MgCoordinateSystemInitializationFailedException::MgCoordinateSystemInitializationFailedException(CREFSTRING \
                methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgApplicationException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgCoordinateSystemInitializationFailedException::~MgCoordinateSystemInitializationFailedException() \
                throw()
-{
-}

Deleted: trunk/MgDev/Common/Geometry/Exception/CoordinateSystemInitializationFailedException.h
 ===================================================================
--- trunk/MgDev/Common/Geometry/Exception/CoordinateSystemInitializationFailedException.h	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Geometry/Exception/CoordinateSystemInitializationFailedException.h	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -1,68 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#ifndef MG_COORDINATE_SYSTEM_INITIALIZATION_FAILED_EXCEPTION_H_
-#define MG_COORDINATE_SYSTEM_INITIALIZATION_FAILED_EXCEPTION_H_
-
-/// \ingroup Exceptions_Module
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// The exception is thrown when the coordinate system initialization fails.
-///
-class MG_GEOMETRY_API MgCoordinateSystemInitializationFailedException : public \
                MgApplicationException
-{
-    DECLARE_CLASSNAME(MgCoordinateSystemInitializationFailedException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgCoordinateSystemInitializationFailedException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the \
                exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the \
                exception occurs.
-    ///
-    MgCoordinateSystemInitializationFailedException(CREFSTRING methodName, INT32 \
                lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgCoordinateSystemInitializationFailedException object.
-    ///
-    virtual ~MgCoordinateSystemInitializationFailedException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgCoordinateSystemInitializationFailedException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = \
                Geometry_Exception_MgCoordinateSystemInitializationFailedException;
-};
-
-#endif

Deleted: trunk/MgDev/Common/Geometry/Exception/CoordinateSystemLoadFailedException.cpp
 ===================================================================
--- trunk/MgDev/Common/Geometry/Exception/CoordinateSystemLoadFailedException.cpp	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Geometry/Exception/CoordinateSystemLoadFailedException.cpp	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -1,40 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgCoordinateSystemLoadFailedException, \
                MgApplicationException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgCoordinateSystemLoadFailedException object.
-///
-MgCoordinateSystemLoadFailedException::MgCoordinateSystemLoadFailedException(CREFSTRING \
                methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgApplicationException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgCoordinateSystemLoadFailedException::~MgCoordinateSystemLoadFailedException() \
                throw()
-{
-}

Deleted: trunk/MgDev/Common/Geometry/Exception/CoordinateSystemLoadFailedException.h
===================================================================
--- trunk/MgDev/Common/Geometry/Exception/CoordinateSystemLoadFailedException.h	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Geometry/Exception/CoordinateSystemLoadFailedException.h	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -1,68 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#ifndef MG_COORDINATE_SYSTEM_LOAD_FAILED_EXCEPTION_H_
-#define MG_COORDINATE_SYSTEM_LOAD_FAILED_EXCEPTION_H_
-
-/// \ingroup Exceptions_Module
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// The exception is thrown when the coordinate system load fails.
-///
-class MG_GEOMETRY_API MgCoordinateSystemLoadFailedException : public \
                MgApplicationException
-{
-    DECLARE_CLASSNAME(MgCoordinateSystemLoadFailedException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgCoordinateSystemLoadFailedException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the \
                exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the \
                exception occurs.
-    ///
-    MgCoordinateSystemLoadFailedException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgCoordinateSystemLoadFailedException object.
-    ///
-    virtual ~MgCoordinateSystemLoadFailedException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgCoordinateSystemLoadFailedException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = \
                Geometry_Exception_MgCoordinateSystemLoadFailedException;
-};
-
-#endif

Deleted: trunk/MgDev/Common/Geometry/Exception/CoordinateSystemMeasureFailedException.cpp
 ===================================================================
--- trunk/MgDev/Common/Geometry/Exception/CoordinateSystemMeasureFailedException.cpp	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Geometry/Exception/CoordinateSystemMeasureFailedException.cpp	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -1,40 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgCoordinateSystemMeasureFailedException, \
                MgApplicationException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgCoordinateSystemMeasureFailedException object.
-///
-MgCoordinateSystemMeasureFailedException::MgCoordinateSystemMeasureFailedException(CREFSTRING \
                methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgApplicationException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgCoordinateSystemMeasureFailedException::~MgCoordinateSystemMeasureFailedException() \
                throw()
-{
-}

Deleted: trunk/MgDev/Common/Geometry/Exception/CoordinateSystemMeasureFailedException.h
 ===================================================================
--- trunk/MgDev/Common/Geometry/Exception/CoordinateSystemMeasureFailedException.h	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Geometry/Exception/CoordinateSystemMeasureFailedException.h	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -1,69 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-/// \ingroup Exceptions_Module
-
-#ifndef MG_COORDINATE_SYSTEM_MEASURE_FAILED_EXCEPTION_H_
-#define MG_COORDINATE_SYSTEM_MEASURE_FAILED_EXCEPTION_H_
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when a coordinate system measurement fails.
-///
-class MG_GEOMETRY_API MgCoordinateSystemMeasureFailedException : public \
                MgApplicationException
-{
-    DECLARE_CLASSNAME(MgCoordinateSystemMeasureFailedException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgCoordinateSystemMeasureFailedException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the \
                exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the \
                exception occurs.
-    ///
-    MgCoordinateSystemMeasureFailedException(CREFSTRING methodName, INT32 \
                lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgCoordinateSystemConversionFailedException object.
-    ///
-    virtual ~MgCoordinateSystemMeasureFailedException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgCoordinateSystemMeasureFailedException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = \
                Geometry_Exception_MgCoordinateSystemMeasureFailedException;
-};
-
-#endif

Deleted: trunk/MgDev/Common/Geometry/Exception/CoordinateSystemTransformFailedException.cpp
 ===================================================================
--- trunk/MgDev/Common/Geometry/Exception/CoordinateSystemTransformFailedException.cpp	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Geometry/Exception/CoordinateSystemTransformFailedException.cpp	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -1,40 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgCoordinateSystemTransformFailedException, \
                MgApplicationException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgCoordinateSystemTransformFailedException object.
-///
-MgCoordinateSystemTransformFailedException::MgCoordinateSystemTransformFailedException(CREFSTRING \
                methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgApplicationException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgCoordinateSystemTransformFailedException::~MgCoordinateSystemTransformFailedException() \
                throw()
-{
-}

Deleted: trunk/MgDev/Common/Geometry/Exception/CoordinateSystemTransformFailedException.h
 ===================================================================
--- trunk/MgDev/Common/Geometry/Exception/CoordinateSystemTransformFailedException.h	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Geometry/Exception/CoordinateSystemTransformFailedException.h	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -1,69 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-/// \ingroup Exceptions_Module
-
-#ifndef MG_COORDINATE_SYSTEM_TRANSFORM_FAILED_EXCEPTION_H_
-#define MG_COORDINATE_SYSTEM_TRANSFORM_FAILED_EXCEPTION_H_
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when a coordinate system transform fails.
-///
-class MG_GEOMETRY_API MgCoordinateSystemTransformFailedException : public \
                MgApplicationException
-{
-    DECLARE_CLASSNAME(MgCoordinateSystemTransformFailedException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgCoordinateSystemTransformFailedException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the \
                exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the \
                exception occurs.
-    ///
-    MgCoordinateSystemTransformFailedException(CREFSTRING methodName, INT32 \
                lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgCoordinateSystemTransformFailedException object.
-    ///
-    virtual ~MgCoordinateSystemTransformFailedException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgCoordinateSystemTransformFailedException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = \
                Geometry_Exception_MgCoordinateSystemTransformFailedException;
-};
-
-#endif

Deleted: trunk/MgDev/Common/Geometry/Exception/GeometryException.cpp
===================================================================
--- trunk/MgDev/Common/Geometry/Exception/GeometryException.cpp	2022-09-15 10:14:11 \
                UTC (rev 9970)
+++ trunk/MgDev/Common/Geometry/Exception/GeometryException.cpp	2022-10-10 09:40:18 \
UTC (rev 9971) @@ -1,40 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgGeometryException, MgThirdPartyException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgGeometryException object.
-///
-MgGeometryException::MgGeometryException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgThirdPartyException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgGeometryException::~MgGeometryException() throw()
-{
-}

Deleted: trunk/MgDev/Common/Geometry/Exception/GeometryException.h
===================================================================
--- trunk/MgDev/Common/Geometry/Exception/GeometryException.h	2022-09-15 10:14:11 UTC \
                (rev 9970)
+++ trunk/MgDev/Common/Geometry/Exception/GeometryException.h	2022-10-10 09:40:18 UTC \
(rev 9971) @@ -1,69 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#ifndef MG_GEOMETRY_EXCEPTION_H_
-#define MG_GEOMETRY_EXCEPTION_H_
-
-/// \ingroup Exceptions_Module
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when an error occurs calculating geometry.
-///
-class MG_GEOMETRY_API MgGeometryException : public MgThirdPartyException
-{
-    DECLARE_CLASSNAME(MgGeometryException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgGeometryException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the \
                exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the \
                exception occurs.
-    ///
-    MgGeometryException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgGeometryException object.
-    ///
-    virtual ~MgGeometryException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgGeometryException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Geometry_Exception_MgGeometryException;
-};
-
-#endif

Deleted: trunk/MgDev/Common/Geometry/Exception/InvalidCoordinateSystemException.cpp
===================================================================
--- trunk/MgDev/Common/Geometry/Exception/InvalidCoordinateSystemException.cpp	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Geometry/Exception/InvalidCoordinateSystemException.cpp	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -1,40 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgInvalidCoordinateSystemException, \
                MgApplicationException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgInvalidCoordinateSystemException object.
-///
-MgInvalidCoordinateSystemException::MgInvalidCoordinateSystemException(CREFSTRING \
                methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgApplicationException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgInvalidCoordinateSystemException::~MgInvalidCoordinateSystemException() throw()
-{
-}

Deleted: trunk/MgDev/Common/Geometry/Exception/InvalidCoordinateSystemException.h
===================================================================
--- trunk/MgDev/Common/Geometry/Exception/InvalidCoordinateSystemException.h	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Geometry/Exception/InvalidCoordinateSystemException.h	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -1,69 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#ifndef MG_INVALID_COORDINATE_SYSTEM_EXCEPTION_H_
-#define MG_INVALID_COORDINATE_SYSTEM_EXCEPTION_H_
-
-/// \ingroup Exceptions_Module
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when the Coordinate System API encounters a problem.
-///
-class MG_GEOMETRY_API MgInvalidCoordinateSystemException : public \
                MgApplicationException
-{
-    DECLARE_CLASSNAME(MgInvalidCoordinateSystemException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgInvalidCoordinateSystemException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the \
                exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the \
                exception occurs.
-    ///
-    MgInvalidCoordinateSystemException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgInvalidCoordinateSystemException object.
-    ///
-    virtual ~MgInvalidCoordinateSystemException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgInvalidCoordinateSystemException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = \
                Geometry_Exception_MgInvalidCoordinateSystemException;
-};
-
-#endif

Deleted: trunk/MgDev/Common/Geometry/Exception/InvalidCoordinateSystemTypeException.cpp
 ===================================================================
--- trunk/MgDev/Common/Geometry/Exception/InvalidCoordinateSystemTypeException.cpp	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Geometry/Exception/InvalidCoordinateSystemTypeException.cpp	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -1,40 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgInvalidCoordinateSystemTypeException, \
                MgApplicationException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgInvalidCoordinateSystemTypeException object.
-///
-MgInvalidCoordinateSystemTypeException::MgInvalidCoordinateSystemTypeException(CREFSTRING \
                methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgApplicationException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgInvalidCoordinateSystemTypeException::~MgInvalidCoordinateSystemTypeException() \
                throw()
-{
-}

Deleted: trunk/MgDev/Common/Geometry/Exception/InvalidCoordinateSystemTypeException.h
===================================================================
--- trunk/MgDev/Common/Geometry/Exception/InvalidCoordinateSystemTypeException.h	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Geometry/Exception/InvalidCoordinateSystemTypeException.h	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -1,69 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-/// \ingroup Exceptions_Module
-
-#ifndef MG_INVALID_COORDINATE_SYSTEM_TYPE_EXCEPTION_H_
-#define MG_INVALID_COORDINATE_SYSTEM_TYPE_EXCEPTION_H_
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when the coordinate system type is invalid.
-///
-class MG_GEOMETRY_API MgInvalidCoordinateSystemTypeException : public \
                MgApplicationException
-{
-    DECLARE_CLASSNAME(MgInvalidCoordinateSystemTypeException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgInvalidCoordinateSystemTypeException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the \
                exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the \
                exception occurs.
-    ///
-    MgInvalidCoordinateSystemTypeException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgInvalidCoordinateSystemTypeException object.
-    ///
-    virtual ~MgInvalidCoordinateSystemTypeException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgInvalidCoordinateSystemTypeException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = \
                Geometry_Exception_MgInvalidCoordinateSystemTypeException;
-};
-
-#endif

Deleted: trunk/MgDev/Common/Geometry/Exception/InvalidCoordinateSystemUnitsException.cpp
 ===================================================================
--- trunk/MgDev/Common/Geometry/Exception/InvalidCoordinateSystemUnitsException.cpp	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Geometry/Exception/InvalidCoordinateSystemUnitsException.cpp	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -1,40 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgInvalidCoordinateSystemUnitsException, \
                MgApplicationException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgInvalidCoordinateSystemUnitsException object.
-///
-MgInvalidCoordinateSystemUnitsException::MgInvalidCoordinateSystemUnitsException(CREFSTRING \
                methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgApplicationException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgInvalidCoordinateSystemUnitsException::~MgInvalidCoordinateSystemUnitsException() \
                throw()
-{
-}

Deleted: trunk/MgDev/Common/Geometry/Exception/InvalidCoordinateSystemUnitsException.h
 ===================================================================
--- trunk/MgDev/Common/Geometry/Exception/InvalidCoordinateSystemUnitsException.h	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Geometry/Exception/InvalidCoordinateSystemUnitsException.h	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -1,69 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-/// \ingroup Exceptions_Module
-
-#ifndef MG_INVALID_COORDINATE_SYSTEM_UNITS_EXCEPTION_H_
-#define MG_INVALID_COORDINATE_SYSTEM_UNITS_EXCEPTION_H_
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when the coordinate system units are invalid.
-///
-class MG_GEOMETRY_API MgInvalidCoordinateSystemUnitsException : public \
                MgApplicationException
-{
-    DECLARE_CLASSNAME(MgInvalidCoordinateSystemUnitsException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgInvalidCoordinateSystemUnitsException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the \
                exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the \
                exception occurs.
-    ///
-    MgInvalidCoordinateSystemUnitsException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgInvalidCoordinateSystemUnitsException object.
-    ///
-    virtual ~MgInvalidCoordinateSystemUnitsException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgInvalidCoordinateSystemUnitsException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = \
                Geometry_Exception_MgInvalidCoordinateSystemUnitsException;
-};
-
-#endif

Modified: trunk/MgDev/Common/Geometry/GeometricEntity.cpp
===================================================================
--- trunk/MgDev/Common/Geometry/GeometricEntity.cpp	2022-09-15 10:14:11 UTC (rev \
                9970)
+++ trunk/MgDev/Common/Geometry/GeometricEntity.cpp	2022-10-10 09:40:18 UTC (rev \
9971) @@ -31,7 +31,7 @@
 //
 MgGeometricPathIterator* MgGeometricEntity::GetPath()
 {
-    throw new MgNotImplementedException(L"MgGeometricEntityImpl.GetPath", __LINE__, \
__WFILE__, NULL, L"", NULL); +    throw new \
MgException(MgExceptionCodes::MgNotImplementedException, \
L"MgGeometricEntityImpl.GetPath", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
 //////////////////////////////////////////////////////////////////

Modified: trunk/MgDev/Common/Geometry/Geometry.cpp
===================================================================
--- trunk/MgDev/Common/Geometry/Geometry.cpp	2022-09-15 10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Geometry/Geometry.cpp	2022-10-10 09:40:18 UTC (rev 9971)
@@ -143,7 +143,7 @@
         arguments.Add(L"1");
         arguments.Add(buffer);
 
-        throw new MgInvalidArgumentException(L"MgGeometry.Buffer",
+        throw new MgException(MgExceptionCodes::MgInvalidArgumentException, \
                L"MgGeometry.Buffer",
             __LINE__, __WFILE__, &arguments, L"MgValueCannotBeZero", NULL);
     }
 

Modified: trunk/MgDev/Common/Geometry/Geometry.vcxproj
===================================================================
--- trunk/MgDev/Common/Geometry/Geometry.vcxproj	2022-09-15 10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Geometry/Geometry.vcxproj	2022-10-10 09:40:18 UTC (rev 9971)
@@ -390,66 +390,6 @@
       <ExcludedFromBuild \
                Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
                
       <ExcludedFromBuild \
Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>  \
                </ClCompile>
-    <ClCompile Include="Exception\CoordinateSystemComputationFailedException.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\CoordinateSystemConversionFailedException.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\CoordinateSystemInitializationFailedException.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\CoordinateSystemLoadFailedException.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\CoordinateSystemMeasureFailedException.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\CoordinateSystemTransformFailedException.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\GeometryException.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\InvalidCoordinateSystemException.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\InvalidCoordinateSystemTypeException.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\InvalidCoordinateSystemUnitsException.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="GeometrySimplifier.cpp">
       <ExcludedFromBuild \
                Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
                
       <ExcludedFromBuild \
Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild> @@ \
-894,16 +834,6 @@  <ClInclude Include="Buffer\wingedge.h" />
     <ClInclude Include="Buffer\worklist.h" />
     <ClInclude Include="Buffer\xordtree.h" />
-    <ClInclude Include="Exception\CoordinateSystemComputationFailedException.h" />
-    <ClInclude Include="Exception\CoordinateSystemConversionFailedException.h" />
-    <ClInclude Include="Exception\CoordinateSystemInitializationFailedException.h" \
                />
-    <ClInclude Include="Exception\CoordinateSystemLoadFailedException.h" />
-    <ClInclude Include="Exception\CoordinateSystemMeasureFailedException.h" />
-    <ClInclude Include="Exception\CoordinateSystemTransformFailedException.h" />
-    <ClInclude Include="Exception\GeometryException.h" />
-    <ClInclude Include="Exception\InvalidCoordinateSystemException.h" />
-    <ClInclude Include="Exception\InvalidCoordinateSystemTypeException.h" />
-    <ClInclude Include="Exception\InvalidCoordinateSystemUnitsException.h" />
     <ClInclude Include="GeometrySimplifier.h" />
     <ClInclude Include="GeometrySimplificationAlgorithmType.h" />
     <ClInclude Include="GeosInclude.h" />

Modified: trunk/MgDev/Common/Geometry/Geometry.vcxproj.filters
===================================================================
--- trunk/MgDev/Common/Geometry/Geometry.vcxproj.filters	2022-09-15 10:14:11 UTC (rev \
                9970)
+++ trunk/MgDev/Common/Geometry/Geometry.vcxproj.filters	2022-10-10 09:40:18 UTC (rev \
9971) @@ -4,9 +4,6 @@
     <Filter Include="Buffer">
       <UniqueIdentifier>{56bc0c4e-6931-49c4-97b5-fe957c164eba}</UniqueIdentifier>
     </Filter>
-    <Filter Include="Exception">
-      <UniqueIdentifier>{47d9650a-b1ea-478c-94f5-afbd136dda2b}</UniqueIdentifier>
-    </Filter>
     <Filter Include="Parse">
       <UniqueIdentifier>{9be50487-b080-45ca-9ee4-edd823e4210e}</UniqueIdentifier>
     </Filter>
@@ -120,36 +117,6 @@
     <ClCompile Include="Buffer\xordtree.cpp">
       <Filter>Buffer</Filter>
     </ClCompile>
-    <ClCompile Include="Exception\CoordinateSystemComputationFailedException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\CoordinateSystemConversionFailedException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\CoordinateSystemInitializationFailedException.cpp">
                
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\CoordinateSystemLoadFailedException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\CoordinateSystemMeasureFailedException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\CoordinateSystemTransformFailedException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\GeometryException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\InvalidCoordinateSystemException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\InvalidCoordinateSystemTypeException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\InvalidCoordinateSystemUnitsException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
     <ClCompile Include="Parse\ArrayHelper.cpp">
       <Filter>Parse</Filter>
     </ClCompile>
@@ -508,36 +475,6 @@
     <ClInclude Include="Buffer\xordtree.h">
       <Filter>Buffer</Filter>
     </ClInclude>
-    <ClInclude Include="Exception\CoordinateSystemComputationFailedException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\CoordinateSystemConversionFailedException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\CoordinateSystemInitializationFailedException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\CoordinateSystemLoadFailedException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\CoordinateSystemMeasureFailedException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\CoordinateSystemTransformFailedException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\GeometryException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\InvalidCoordinateSystemException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\InvalidCoordinateSystemTypeException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\InvalidCoordinateSystemUnitsException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
     <ClInclude Include="Parse\Array.h">
       <Filter>Parse</Filter>
     </ClInclude>

Modified: trunk/MgDev/Common/Geometry/GeometryBuild.cpp
===================================================================
--- trunk/MgDev/Common/Geometry/GeometryBuild.cpp	2022-09-15 10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Geometry/GeometryBuild.cpp	2022-10-10 09:40:18 UTC (rev 9971)
@@ -121,15 +121,4 @@
 #include "CoordinateSystem/CoordinateSystemCache.cpp"
 #include "CoordinateSystem/CoordinateSystemFactory.cpp"
 
-#include "Exception/CoordinateSystemComputationFailedException.cpp"
-#include "Exception/CoordinateSystemConversionFailedException.cpp"
-#include "Exception/CoordinateSystemInitializationFailedException.cpp"
-#include "Exception/CoordinateSystemLoadFailedException.cpp"
-#include "Exception/CoordinateSystemMeasureFailedException.cpp"
-#include "Exception/CoordinateSystemTransformFailedException.cpp"
-#include "Exception/GeometryException.cpp"
-#include "Exception/InvalidCoordinateSystemException.cpp"
-#include "Exception/InvalidCoordinateSystemTypeException.cpp"
-#include "Exception/InvalidCoordinateSystemUnitsException.cpp"
-
 #include "GeometryClassFactory.cpp"

Modified: trunk/MgDev/Common/Geometry/GeometryClassFactory.cpp
===================================================================
--- trunk/MgDev/Common/Geometry/GeometryClassFactory.cpp	2022-09-15 10:14:11 UTC (rev \
                9970)
+++ trunk/MgDev/Common/Geometry/GeometryClassFactory.cpp	2022-10-10 09:40:18 UTC (rev \
9971) @@ -48,17 +48,6 @@
     fact->Register(Geometry_CoordinateXYZM, MgCoordinateXYZM::CreateObject);
     fact->Register(Geometry_CoordinateXYM, MgCoordinateXYM::CreateObject);
 
-    EXCEPTION_CLASS_CREATOR(MgCoordinateSystemComputationFailedException)
-    EXCEPTION_CLASS_CREATOR(MgCoordinateSystemConversionFailedException)
-    EXCEPTION_CLASS_CREATOR(MgCoordinateSystemInitializationFailedException)
-    EXCEPTION_CLASS_CREATOR(MgCoordinateSystemLoadFailedException)
-    EXCEPTION_CLASS_CREATOR(MgCoordinateSystemMeasureFailedException)
-    EXCEPTION_CLASS_CREATOR(MgCoordinateSystemTransformFailedException)
-    EXCEPTION_CLASS_CREATOR(MgGeometryException)
-    EXCEPTION_CLASS_CREATOR(MgInvalidCoordinateSystemException)
-    EXCEPTION_CLASS_CREATOR(MgInvalidCoordinateSystemTypeException)
-    EXCEPTION_CLASS_CREATOR(MgInvalidCoordinateSystemUnitsException)
-
     return true;
 }
 

Modified: trunk/MgDev/Common/Geometry/GeometryClassId.h
===================================================================
--- trunk/MgDev/Common/Geometry/GeometryClassId.h	2022-09-15 10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Geometry/GeometryClassId.h	2022-10-10 09:40:18 UTC (rev 9971)
@@ -135,6 +135,9 @@
 #define CoordinateSystem_CoordinateSystemGeodeticStandaloneTransformDefParams        \
GEOMETRY_COORDINATE_SYSTEM_ID+46  
 // 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 Geometry_Exception_MgCoordinateSystemComputationFailedException     \
GEOMETRY_EXCEPTION_ID+0  #define \
Geometry_Exception_MgCoordinateSystemConversionFailedException      \
GEOMETRY_EXCEPTION_ID+1  #define \
Geometry_Exception_MgCoordinateSystemInitializationFailedException  \
GEOMETRY_EXCEPTION_ID+2

Modified: trunk/MgDev/Common/Geometry/GeometryCommon.h
===================================================================
--- trunk/MgDev/Common/Geometry/GeometryCommon.h	2022-09-15 10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Geometry/GeometryCommon.h	2022-10-10 09:40:18 UTC (rev 9971)
@@ -169,17 +169,6 @@
 #include "CoordinateSystem/CoordinateSystemMgrs.h"                          //for \
MgCoordinateSystemMgrs  #include "CoordinateSystem/CoordinateSystemFactory.h"
 
-#include "Exception/CoordinateSystemComputationFailedException.h"
-#include "Exception/CoordinateSystemConversionFailedException.h"
-#include "Exception/CoordinateSystemInitializationFailedException.h"
-#include "Exception/CoordinateSystemLoadFailedException.h"
-#include "Exception/CoordinateSystemMeasureFailedException.h"
-#include "Exception/CoordinateSystemTransformFailedException.h"
-#include "Exception/GeometryException.h"
-#include "Exception/InvalidCoordinateSystemException.h"
-#include "Exception/InvalidCoordinateSystemTypeException.h"
-#include "Exception/InvalidCoordinateSystemUnitsException.h"
-
 // Represent NAN for double
 #define DoubleNan std::numeric_limits<double>::quiet_NaN()
 

Modified: trunk/MgDev/Common/Geometry/GeometrySimplifier.cpp
===================================================================
--- trunk/MgDev/Common/Geometry/GeometrySimplifier.cpp	2022-09-15 10:14:11 UTC (rev \
                9970)
+++ trunk/MgDev/Common/Geometry/GeometrySimplifier.cpp	2022-10-10 09:40:18 UTC (rev \
9971) @@ -41,7 +41,7 @@
     if (algorithm != MgGeometrySimplificationAlgorithmType::DouglasPeucker &&
         algorithm != MgGeometrySimplificationAlgorithmType::TopologyPreserving)
     {
-        throw new MgInvalidArgumentException(L"MgGeometrySimplifier.Simplify", \
__LINE__, __WFILE__, NULL, L"MgInvalidGeometrySimplficationAlgorithm", NULL); +       \
throw new MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgGeometrySimplifier.Simplify", __LINE__, __WFILE__, NULL, \
L"MgInvalidGeometrySimplficationAlgorithm", NULL);  }
 
     STRING inputWKt = geom->ToAwkt(true);

Modified: trunk/MgDev/Common/Geometry/LineString.cpp
===================================================================
--- trunk/MgDev/Common/Geometry/LineString.cpp	2022-09-15 10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Geometry/LineString.cpp	2022-10-10 09:40:18 UTC (rev 9971)
@@ -35,7 +35,7 @@
         arguments.Add(L"1");
         arguments.Add(buffer);
 
-        throw new MgInvalidArgumentException(L"MgLineString.MgLineString",
+        throw new MgException(MgExceptionCodes::MgInvalidArgumentException, \
                L"MgLineString.MgLineString",
             __LINE__, __WFILE__, &arguments, L"MgInvalidGeometryTooFewCoordinates", \
NULL);  }
 

Modified: trunk/MgDev/Common/Geometry/LinearRing.cpp
===================================================================
--- trunk/MgDev/Common/Geometry/LinearRing.cpp	2022-09-15 10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Geometry/LinearRing.cpp	2022-10-10 09:40:18 UTC (rev 9971)
@@ -33,7 +33,7 @@
         arguments.Add(L"1");
         arguments.Add(buffer);
 
-        throw new MgInvalidArgumentException(L"MgLinearRing.MgLinearRing",
+        throw new MgException(MgExceptionCodes::MgInvalidArgumentException, \
                L"MgLinearRing.MgLinearRing",
             __LINE__, __WFILE__, &arguments, L"MgInvalidGeometryTooFewCoordinates", \
NULL);  }
 
@@ -161,7 +161,7 @@
 {
     //should not be called on geometry components
     //components are serialized by the containing geometries
-    throw new MgNotImplementedException(L"MgLinearRing.Serialize", __LINE__, \
__WFILE__, NULL, L"", NULL); +    throw new \
MgException(MgExceptionCodes::MgNotImplementedException, L"MgLinearRing.Serialize", \
__LINE__, __WFILE__, NULL, L"", NULL);  }
 
 //////////////////////////////////////////////////////////////////
@@ -171,7 +171,7 @@
 {
     //should not be called on geometry components
     //components are deserialized by the containing geometries
-    throw new MgNotImplementedException(L"MgLinearRing.Deserialize", __LINE__, \
__WFILE__, NULL, L"", NULL); +    throw new \
MgException(MgExceptionCodes::MgNotImplementedException, L"MgLinearRing.Deserialize", \
__LINE__, __WFILE__, NULL, L"", NULL);  }
 
 ///////////////////////////////////////////////////////////////////////////

Modified: trunk/MgDev/Common/Geometry/LinearSegment.cpp
===================================================================
--- trunk/MgDev/Common/Geometry/LinearSegment.cpp	2022-09-15 10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Geometry/LinearSegment.cpp	2022-10-10 09:40:18 UTC (rev 9971)
@@ -34,7 +34,7 @@
         arguments.Add(L"1");
         arguments.Add(buffer);
 
-        throw new MgInvalidArgumentException(L"MgLinearSegment.MgLinearSegment",
+        throw new MgException(MgExceptionCodes::MgInvalidArgumentException, \
                L"MgLinearSegment.MgLinearSegment",
             __LINE__, __WFILE__, &arguments, L"MgInvalidGeometryTooFewCoordinates", \
NULL);  }
 
@@ -152,7 +152,7 @@
 {
     //should not be called on geometry components
     //components are serialized by the containing geometries
-    throw new MgNotImplementedException(L"MgLinearSegment.Serialize", __LINE__, \
__WFILE__, NULL, L"", NULL); +    throw new \
MgException(MgExceptionCodes::MgNotImplementedException, \
L"MgLinearSegment.Serialize", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
 //////////////////////////////////////////////////////////////////
@@ -162,7 +162,7 @@
 {
     //should not be called on geometry components
     //components are deserialized by the containing geometries
-    throw new MgNotImplementedException(L"MgLinearSegment.Deserialize", __LINE__, \
__WFILE__, NULL, L"", NULL); +    throw new \
MgException(MgExceptionCodes::MgNotImplementedException, \
L"MgLinearSegment.Deserialize", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
 //////////////////////////////////////////////////////////////////

Modified: trunk/MgDev/Common/Geometry/Parse/Array.h
===================================================================
--- trunk/MgDev/Common/Geometry/Parse/Array.h	2022-09-15 10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Geometry/Parse/Array.h	2022-10-10 09:40:18 UTC (rev 9971)
@@ -324,7 +324,7 @@
 {
     if (i >= GetCount() || i < 0)
     {
-        throw new MgIndexOutOfRangeException(L"GisArray<T>.GetValue", __LINE__, \
__WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgIndexOutOfRangeException, L"GisArray<T>.GetValue", \
__LINE__, __WFILE__, NULL, L"", NULL);  }
 
     return *(this->GetData()+i);
@@ -335,7 +335,7 @@
 T& GisArray<T>::GetValue(INT32 i)
 {
     if (i >= GetCount() || i < 0)
-        throw new MgIndexOutOfRangeException(L"GisArray<T>.GetValue", __LINE__, \
__WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgIndexOutOfRangeException, L"GisArray<T>.GetValue", \
__LINE__, __WFILE__, NULL, L"", NULL);  
     return *(this->GetData()+i);
 }
@@ -345,7 +345,7 @@
 void GisArray<T>::SetValue(INT32 i, T newElement)
 {
     if (i >= GetCount() || i < 0)
-        throw new MgIndexOutOfRangeException(L"GisArray<T>.SetValue", __LINE__, \
__WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgIndexOutOfRangeException, L"GisArray<T>.SetValue", \
__LINE__, __WFILE__, NULL, L"", NULL);  
     *(this->GetData()+i) = newElement;
 }

Modified: trunk/MgDev/Common/Geometry/Parse/ArrayHelper.cpp
===================================================================
--- trunk/MgDev/Common/Geometry/Parse/ArrayHelper.cpp	2022-09-15 10:14:11 UTC (rev \
                9970)
+++ trunk/MgDev/Common/Geometry/Parse/ArrayHelper.cpp	2022-10-10 09:40:18 UTC (rev \
9971) @@ -27,7 +27,7 @@
 {
     // Disallow possible re-allocation if object is shared.
     if (array->m_metadata.refCount > 1)
-        throw new MgInvalidOperationException(L"GisArrayHelper.Append", __LINE__, \
__WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidOperationException, L"GisArrayHelper.Append", \
__LINE__, __WFILE__, NULL, L"", NULL);  
     if ( array->m_metadata.size + numElements > array->m_metadata.alloc )
         array = AllocMore(array, numElements, false /*exactly*/, elementSize);   // \
We could calculate the difference here, allocating less. @@ -44,7 +44,7 @@
 {
     // Disallow possible re-allocation if object is shared.
     if (array->m_metadata.refCount > 1)
-        throw new MgInvalidOperationException(L"GisArrayHelper.SetSize", __LINE__, \
__WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidOperationException, L"GisArrayHelper.SetSize", \
__LINE__, __WFILE__, NULL, L"", NULL);  
     if ( numElements > array->m_metadata.alloc )
     {
@@ -67,10 +67,10 @@
 {
     // Disallow possible re-allocation if object is shared.
     if (array->m_metadata.refCount > 1)
-        throw new MgInvalidOperationException(L"GisArrayHelper.SetAlloc", __LINE__, \
__WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidOperationException, \
L"GisArrayHelper.SetAlloc", __LINE__, __WFILE__, NULL, L"", NULL);  
     if (numElements < array->m_metadata.size || numElements < MIN_ALLOC)
-        throw new MgInvalidOperationException(L"GisArrayHelper.SetAlloc", __LINE__, \
__WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidOperationException, \
L"GisArrayHelper.SetAlloc", __LINE__, __WFILE__, NULL, L"", NULL);  
     if (array->m_metadata.alloc != numElements)
     {
@@ -131,7 +131,7 @@
 
     GenericArray* newArray = (GenericArray*) new unsigned char[newAllocBytes];
     if (0==newArray)
-        throw new MgOutOfMemoryException(L"GisArrayHelper.AllocMore", __LINE__, \
__WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, L"GisArrayHelper.AllocMore", \
__LINE__, __WFILE__, NULL, L"", NULL);  
     // Copy data from old array.
     if (0!=array)

Modified: trunk/MgDev/Common/Geometry/Parse/LexAwkt.cpp
===================================================================
--- trunk/MgDev/Common/Geometry/Parse/LexAwkt.cpp	2022-09-15 10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Geometry/Parse/LexAwkt.cpp	2022-10-10 09:40:18 UTC (rev 9971)
@@ -321,7 +321,7 @@
         if (!iswdigit(m_ch))
         {
             // Exponent shall contain digits
-            throw new MgNotFiniteNumberException(L"GisLexAwkt.getnumber", __LINE__, \
__WFILE__, NULL, L"", NULL); +            throw new \
MgException(MgExceptionCodes::MgNotFiniteNumberException, L"GisLexAwkt.getnumber", \
__LINE__, __WFILE__, NULL, L"", NULL);  }
         pstr = getdigits(pstr);
         *pstr = CHR_NULL;

Modified: trunk/MgDev/Common/Geometry/Parse/ParseAwkt.cpp
===================================================================
--- trunk/MgDev/Common/Geometry/Parse/ParseAwkt.cpp	2022-09-15 10:14:11 UTC (rev \
                9970)
+++ trunk/MgDev/Common/Geometry/Parse/ParseAwkt.cpp	2022-10-10 09:40:18 UTC (rev \
9971) @@ -94,7 +94,7 @@
         arguments.Add(L"1");
         arguments.Add(pwzAwkt);
 
-        throw new MgInvalidArgumentException(L"MgParseAwkt.ParseAwkt",
+        throw new MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgParseAwkt.ParseAwkt",  __LINE__, __WFILE__, &arguments, L"MgInvalidAgfText", \
NULL);  }
 
@@ -544,7 +544,7 @@
         m_types->GetCount() != m_dims->GetCount() ||
         m_types->GetCount() != m_starts->GetCount())
     {
-        throw new MgInvalidArgumentException(L"MgParseAwkt.ParseAwkt", __LINE__, \
__WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, L"MgParseAwkt.ParseAwkt", \
__LINE__, __WFILE__, NULL, L"", NULL);  }
 
     _types type = (_types) (*m_types)[0];
@@ -617,7 +617,7 @@
             arguments.Add(L"1");
             arguments.Add(buffer);
 
-            throw new MgInvalidArgumentException(L"MgParseAwkt.SetGeometryType",
+            throw new MgException(MgExceptionCodes::MgInvalidArgumentException, \
                L"MgParseAwkt.SetGeometryType",
                 __LINE__, __WFILE__, &arguments, L"MgInvalidAgfText", NULL);
         }
         break;
@@ -804,7 +804,7 @@
             arguments.Add(L"0");
             arguments.Add(buffer);
 
-            throw new MgInvalidArgumentException(L"MgParseAwkt.ParseAwkt",
+            throw new MgException(MgExceptionCodes::MgInvalidArgumentException, \
                L"MgParseAwkt.ParseAwkt",
                 __LINE__, __WFILE__, &arguments, L"MgInvalidAgfText", NULL);
         }
         break;

Modified: trunk/MgDev/Common/Geometry/Polygon.cpp
===================================================================
--- trunk/MgDev/Common/Geometry/Polygon.cpp	2022-09-15 10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Geometry/Polygon.cpp	2022-10-10 09:40:18 UTC (rev 9971)
@@ -60,7 +60,7 @@
 MgLinearRing* MgPolygon::GetInteriorRing(INT32 index)
 {
     if (m_innerRings == NULL)
-        throw new MgArgumentOutOfRangeException(L"MgPolygon.GetInteriorRing", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgArgumentOutOfRangeException, \
L"MgPolygon.GetInteriorRing", __LINE__, __WFILE__, NULL, L"", NULL);  
     return m_innerRings->GetItem(index);
 }

Modified: trunk/MgDev/Common/Geometry/Spatial/MathUtility.cpp
===================================================================
--- trunk/MgDev/Common/Geometry/Spatial/MathUtility.cpp	2022-09-15 10:14:11 UTC (rev \
                9970)
+++ trunk/MgDev/Common/Geometry/Spatial/MathUtility.cpp	2022-10-10 09:40:18 UTC (rev \
9971) @@ -87,7 +87,7 @@
         arguments.Add(L"1");
         arguments.Add(buffer);
 
-        throw new MgInvalidArgumentException(L"MgMathUtility.LUDecompose",
+        throw new MgException(MgExceptionCodes::MgInvalidArgumentException, \
                L"MgMathUtility.LUDecompose",
             __LINE__, __WFILE__, &arguments, L"MgInvalidGeometryNoDimension", NULL);
     }
 
@@ -182,7 +182,7 @@
             arguments.Add(L"3");
             arguments.Add(buffer);
 
-            throw new MgInvalidArgumentException(L"MgMathUtility.LUDecompose",
+            throw new MgException(MgExceptionCodes::MgInvalidArgumentException, \
                L"MgMathUtility.LUDecompose",
                 __LINE__, __WFILE__, &arguments, L"MgInvalidGeometryBadProportion", \
NULL);  }
 

Modified: trunk/MgDev/Common/Geometry/Spatial/SpatialUtility.cpp
===================================================================
--- trunk/MgDev/Common/Geometry/Spatial/SpatialUtility.cpp	2022-09-15 10:14:11 UTC \
                (rev 9970)
+++ trunk/MgDev/Common/Geometry/Spatial/SpatialUtility.cpp	2022-10-10 09:40:18 UTC \
(rev 9971) @@ -58,7 +58,7 @@
         arguments.Add(L"2");
         arguments.Add(buffer);
 
-        throw new MgInvalidArgumentException(L"MgSpatialUtility.ApproximateGeometryWithLineStrings",
 +        throw new MgException(MgExceptionCodes::MgInvalidArgumentException, \
                L"MgSpatialUtility.ApproximateGeometryWithLineStrings",
             __LINE__, __WFILE__, &arguments, L"MgValueCannotBeLessThanZero", NULL);
     }
 
@@ -71,7 +71,7 @@
         arguments.Add(L"3");
         arguments.Add(buffer);
 
-        throw new MgInvalidArgumentException(L"MgSpatialUtility.ApproximateGeometryWithLineStrings",
 +        throw new MgException(MgExceptionCodes::MgInvalidArgumentException, \
                L"MgSpatialUtility.ApproximateGeometryWithLineStrings",
             __LINE__, __WFILE__, &arguments, L"MgValueCannotBeLessThanZero", NULL);
     }
 
@@ -170,7 +170,7 @@
             arguments.Add(L"1");
             arguments.Add(buffer);
 
-            throw new \
MgInvalidArgumentException(L"MgSpatialUtility.ApproximateGeometryWithLineStrings", +  \
throw new MgException(MgExceptionCodes::MgInvalidArgumentException, \
                L"MgSpatialUtility.ApproximateGeometryWithLineStrings",
                 __LINE__, __WFILE__, &arguments, L"MgInvalidGeometryType", NULL);
         }
     }
@@ -247,7 +247,7 @@
                 arguments.Add(L"2");
                 arguments.Add(buffer);
 
-                throw new \
MgInvalidArgumentException(L"MgSpatialUtility.AppendLinearizedCurveSegmentsToDistinctCollection",
 +                throw new MgException(MgExceptionCodes::MgInvalidArgumentException, \
                L"MgSpatialUtility.AppendLinearizedCurveSegmentsToDistinctCollection",
                
                     __LINE__, __WFILE__, &arguments, \
L"MgInvalidGeometryComponentType", NULL);  }
         }
@@ -558,7 +558,7 @@
     CHECKARGUMENTNULL(seg2To, L"MgSpatialUtility.SegmentIntersection")
     if (magnitude < 1.0E-04)
     {
-        throw new MgInvalidArgumentException(L"MgSpatialUtility.SegmentIntersection", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgSpatialUtility.SegmentIntersection", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
     // Compute a tolerance which is appropriate for the data we are working

Modified: trunk/MgDev/Common/Geometry/Spatial/SpatialUtilityCircularArc.cpp
===================================================================
--- trunk/MgDev/Common/Geometry/Spatial/SpatialUtilityCircularArc.cpp	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/Geometry/Spatial/SpatialUtilityCircularArc.cpp	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -339,7 +339,7 @@
     if (MgMathUtility::LUDecompose(3, a, eindex ) == 0)
     {
         // Zero result means that points were collinear.
-        throw new MgInvalidArgumentException(L"MgSpatialUtilityCircularArc.ComputeCenterFromThreePositions", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgSpatialUtilityCircularArc.ComputeCenterFromThreePositions", __LINE__, __WFILE__, \
NULL, L"", NULL);  }
 
     /* Perform row exchanges for b */
@@ -388,7 +388,7 @@
         arguments.Add(L"2");
         arguments.Add(buffer);
 
-        throw new MgInvalidArgumentException(L"MgSpatialUtilityCircularArc.Linearize",
 +        throw new MgException(MgExceptionCodes::MgInvalidArgumentException, \
                L"MgSpatialUtilityCircularArc.Linearize",
             __LINE__, __WFILE__, &arguments, L"MgValueCannotBeLessThanZero", NULL);
     }
 
@@ -401,7 +401,7 @@
         arguments.Add(L"3");
         arguments.Add(buffer);
 
-        throw new MgInvalidArgumentException(L"MgSpatialUtilityCircularArc.Linearize",
 +        throw new MgException(MgExceptionCodes::MgInvalidArgumentException, \
                L"MgSpatialUtilityCircularArc.Linearize",
             __LINE__, __WFILE__, &arguments, L"MgValueCannotBeLessThanZero", NULL);
     }
 
@@ -540,7 +540,7 @@
 
         MgStringCollection arguments;
         arguments.Add(buffer);
-        throw new MgInvalidArgumentException(L"MgSpatialUtilityCircularArc.BestArcStep", \
__LINE__, __WFILE__, &arguments, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgSpatialUtilityCircularArc.BestArcStep", __LINE__, __WFILE__, &arguments, L"", \
NULL);  }
 
     if (MgMathUtility::SnapToZero(maximumError) <= 0.0)
@@ -550,7 +550,7 @@
 
         MgStringCollection arguments;
         arguments.Add(buffer);
-        throw new MgInvalidArgumentException(L"MgSpatialUtilityCircularArc.BestArcStep", \
__LINE__, __WFILE__, &arguments, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgSpatialUtilityCircularArc.BestArcStep", __LINE__, __WFILE__, &arguments, L"", \
NULL);  }
 
     double arcStep = 0.0;

Modified: trunk/MgDev/Common/MapGuideCommon/Controller/Controller.cpp
===================================================================
--- trunk/MgDev/Common/MapGuideCommon/Controller/Controller.cpp	2022-09-15 10:14:11 \
                UTC (rev 9970)
+++ trunk/MgDev/Common/MapGuideCommon/Controller/Controller.cpp	2022-10-10 09:40:18 \
UTC (rev 9971) @@ -78,7 +78,7 @@
             arguments.Add(m_mapCmdSetViewCenterX);
             arguments.Add(buffer);
 
-            throw new \
MgInvalidArgumentException(L"MgController.ApplyMapViewCommands", +            throw \
new MgException(MgExceptionCodes::MgInvalidArgumentException, \
                L"MgController.ApplyMapViewCommands",
                 __LINE__, __WFILE__, &arguments, L"MgInvalidPropertyTypeForCommand", \
NULL);  }
 
@@ -104,7 +104,7 @@
             arguments.Add(m_mapCmdSetViewCenterY);
             arguments.Add(buffer);
 
-            throw new \
MgInvalidArgumentException(L"MgController.ApplyMapViewCommands", +            throw \
new MgException(MgExceptionCodes::MgInvalidArgumentException, \
                L"MgController.ApplyMapViewCommands",
                 __LINE__, __WFILE__, &arguments, L"MgInvalidPropertyTypeForCommand", \
NULL);  }
 
@@ -130,7 +130,7 @@
             arguments.Add(m_mapCmdSetViewScale);
             arguments.Add(buffer);
 
-            throw new \
MgInvalidArgumentException(L"MgController.ApplyMapViewCommands", +            throw \
new MgException(MgExceptionCodes::MgInvalidArgumentException, \
                L"MgController.ApplyMapViewCommands",
                 __LINE__, __WFILE__, &arguments, L"MgInvalidPropertyTypeForCommand", \
NULL);  }
 
@@ -142,7 +142,7 @@
             arguments.Add(m_mapCmdSetViewScale);
             arguments.Add(sScale);
 
-            throw new \
MgInvalidArgumentException(L"MgController.ApplyMapViewCommands", +            throw \
new MgException(MgExceptionCodes::MgInvalidArgumentException, \
                L"MgController.ApplyMapViewCommands",
                 __LINE__, __WFILE__, &arguments, \
L"MgMapViewScaleCannotBeLessThanOrEqualToZero", NULL);  }
 
@@ -165,7 +165,7 @@
             arguments.Add(m_mapCmdSetDisplayDpi);
             arguments.Add(buffer);
 
-            throw new \
MgInvalidArgumentException(L"MgController.ApplyMapViewCommands", +            throw \
new MgException(MgExceptionCodes::MgInvalidArgumentException, \
                L"MgController.ApplyMapViewCommands",
                 __LINE__, __WFILE__, &arguments, L"MgInvalidPropertyTypeForCommand", \
NULL);  }
 
@@ -177,7 +177,7 @@
             arguments.Add(m_mapCmdSetDisplayDpi);
             arguments.Add(sDpi);
 
-            throw new \
MgInvalidArgumentException(L"MgController.ApplyMapViewCommands", +            throw \
new MgException(MgExceptionCodes::MgInvalidArgumentException, \
                L"MgController.ApplyMapViewCommands",
                 __LINE__, __WFILE__, &arguments, \
L"MgMapDisplayDpiCannotBeLessThanOrEqualToZero", NULL);  }
 
@@ -197,7 +197,7 @@
             arguments.Add(m_mapCmdSetDisplayWidth);
             arguments.Add(buffer);
 
-            throw new \
MgInvalidArgumentException(L"MgController.ApplyMapViewCommands", +            throw \
new MgException(MgExceptionCodes::MgInvalidArgumentException, \
                L"MgController.ApplyMapViewCommands",
                 __LINE__, __WFILE__, &arguments, L"MgInvalidPropertyTypeForCommand", \
NULL);  }
 
@@ -209,7 +209,7 @@
             arguments.Add(m_mapCmdSetDisplayWidth);
             arguments.Add(sWidth);
 
-            throw new \
MgInvalidArgumentException(L"MgController.ApplyMapViewCommands", +            throw \
new MgException(MgExceptionCodes::MgInvalidArgumentException, \
                L"MgController.ApplyMapViewCommands",
                 __LINE__, __WFILE__, &arguments, \
L"MgMapDisplayWidthCannotBeLessThanOrEqualToZero", NULL);  }
 
@@ -229,7 +229,7 @@
             arguments.Add(m_mapCmdSetDisplayHeight);
             arguments.Add(buffer);
 
-            throw new \
MgInvalidArgumentException(L"MgController.ApplyMapViewCommands", +            throw \
new MgException(MgExceptionCodes::MgInvalidArgumentException, \
                L"MgController.ApplyMapViewCommands",
                 __LINE__, __WFILE__, &arguments, L"MgInvalidPropertyTypeForCommand", \
NULL);  }
 
@@ -241,7 +241,7 @@
             arguments.Add(m_mapCmdSetDisplayHeight);
             arguments.Add(sHeight);
 
-            throw new \
MgInvalidArgumentException(L"MgController.ApplyMapViewCommands", +            throw \
new MgException(MgExceptionCodes::MgInvalidArgumentException, \
                L"MgController.ApplyMapViewCommands",
                 __LINE__, __WFILE__, &arguments, \
L"MgMapDisplayHeightCannotBeLessThanOrEqualToZero", NULL);  }
 
@@ -261,7 +261,7 @@
             arguments.Add(m_mapCmdShowLayers);
             arguments.Add(buffer);
 
-            throw new \
MgInvalidArgumentException(L"MgController.ApplyMapViewCommands", +            throw \
new MgException(MgExceptionCodes::MgInvalidArgumentException, \
                L"MgController.ApplyMapViewCommands",
                 __LINE__, __WFILE__, &arguments, L"MgInvalidPropertyTypeForCommand", \
NULL);  }
 
@@ -281,7 +281,7 @@
             arguments.Add(m_mapCmdHideLayers);
             arguments.Add(buffer);
 
-            throw new \
MgInvalidArgumentException(L"MgController.ApplyMapViewCommands", +            throw \
new MgException(MgExceptionCodes::MgInvalidArgumentException, \
                L"MgController.ApplyMapViewCommands",
                 __LINE__, __WFILE__, &arguments, L"MgInvalidPropertyTypeForCommand", \
NULL);  }
 
@@ -301,7 +301,7 @@
             arguments.Add(m_mapCmdShowGroups);
             arguments.Add(buffer);
 
-            throw new \
MgInvalidArgumentException(L"MgController.ApplyMapViewCommands", +            throw \
new MgException(MgExceptionCodes::MgInvalidArgumentException, \
                L"MgController.ApplyMapViewCommands",
                 __LINE__, __WFILE__, &arguments, L"MgInvalidPropertyTypeForCommand", \
NULL);  }
 
@@ -321,7 +321,7 @@
             arguments.Add(m_mapCmdHideGroups);
             arguments.Add(buffer);
 
-            throw new \
MgInvalidArgumentException(L"MgController.ApplyMapViewCommands", +            throw \
new MgException(MgExceptionCodes::MgInvalidArgumentException, \
                L"MgController.ApplyMapViewCommands",
                 __LINE__, __WFILE__, &arguments, L"MgInvalidPropertyTypeForCommand", \
NULL);  }
 
@@ -441,7 +441,7 @@
         arguments.Add(L"1");
         arguments.Add(strEnvelope);
 
-        throw new MgInvalidArgumentException(L"MgController.ParseEnvelope",
+        throw new MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgController.ParseEnvelope",  __LINE__, __WFILE__, &arguments, \
L"MgInvalidEnvelope", NULL);  }
 

Modified: trunk/MgDev/Common/MapGuideCommon/Controller/DwfController.cpp
===================================================================
--- trunk/MgDev/Common/MapGuideCommon/Controller/DwfController.cpp	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/MapGuideCommon/Controller/DwfController.cpp	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -96,7 +96,7 @@
                 arguments.Add(m_mapCmdSetDataExtent);
                 arguments.Add(buffer);
 
-                throw new \
MgInvalidArgumentException(L"MgDwfController.ApplyMapViewCommands", +                \
throw new MgException(MgExceptionCodes::MgInvalidArgumentException, \
                L"MgDwfController.ApplyMapViewCommands",
                     __LINE__, __WFILE__, &arguments, \
L"MgInvalidPropertyTypeForCommand", NULL);  }
 

Modified: trunk/MgDev/Common/MapGuideCommon/Controller/HtmlController.cpp
===================================================================
--- trunk/MgDev/Common/MapGuideCommon/Controller/HtmlController.cpp	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/MapGuideCommon/Controller/HtmlController.cpp	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -153,7 +153,7 @@
 //
 MgByteReader* MgHtmlController::GetLayerImageMap(CREFSTRING mapName, CREFSTRING \
layerName)  {
-    throw new MgNotImplementedException(L"MgHtmlController.GetLayerImageMap", \
__LINE__, __WFILE__, NULL, L"", NULL); +    throw new \
MgException(MgExceptionCodes::MgNotImplementedException, \
L"MgHtmlController.GetLayerImageMap", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
 //////////////////////////////////////////////////////////////////
@@ -825,7 +825,7 @@
 //
 STRING MgHtmlController::ScriptViewUpdate(bool forceFullRefresh)
 {
-    throw new MgNotImplementedException(L"MgHtmlController.ScriptViewUpdate", \
__LINE__, __WFILE__, NULL, L"", NULL); +    throw new \
MgException(MgExceptionCodes::MgNotImplementedException, \
L"MgHtmlController.ScriptViewUpdate", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
 //////////////////////////////////////////////////////////////////
@@ -836,7 +836,7 @@
 STRING MgHtmlController::ScriptViewUpdate(MgPoint* center, double scale,
     bool forceFullRefresh)
 {
-    throw new MgNotImplementedException(L"MgHtmlController.ScriptViewUpdate", \
__LINE__, __WFILE__, NULL, L"", NULL); +    throw new \
MgException(MgExceptionCodes::MgNotImplementedException, \
L"MgHtmlController.ScriptViewUpdate", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
 //////////////////////////////////////////////////////////////////

Modified: trunk/MgDev/Common/MapGuideCommon/MapGuideCommon.h
===================================================================
--- trunk/MgDev/Common/MapGuideCommon/MapGuideCommon.h	2022-09-15 10:14:11 UTC (rev \
                9970)
+++ trunk/MgDev/Common/MapGuideCommon/MapGuideCommon.h	2022-10-10 09:40:18 UTC (rev \
9971) @@ -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: trunk/MgDev/Common/MapGuideCommon/MapGuideCommon.vcxproj
===================================================================
--- trunk/MgDev/Common/MapGuideCommon/MapGuideCommon.vcxproj	2022-09-15 10:14:11 UTC \
                (rev 9970)
+++ trunk/MgDev/Common/MapGuideCommon/MapGuideCommon.vcxproj	2022-10-10 09:40:18 UTC \
(rev 9971) @@ -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: trunk/MgDev/Common/MapGuideCommon/MapGuideCommon.vcxproj.filters
===================================================================
--- trunk/MgDev/Common/MapGuideCommon/MapGuideCommon.vcxproj.filters	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/MapGuideCommon/MapGuideCommon.vcxproj.filters	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -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: trunk/MgDev/Common/MapGuideCommon/MapGuideCommonBuild.cpp
===================================================================
--- trunk/MgDev/Common/MapGuideCommon/MapGuideCommonBuild.cpp	2022-09-15 10:14:11 UTC \
                (rev 9970)
+++ trunk/MgDev/Common/MapGuideCommon/MapGuideCommonBuild.cpp	2022-10-10 09:40:18 UTC \
(rev 9971) @@ -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: trunk/MgDev/Common/MapGuideCommon/MapLayer/Layer.cpp
===================================================================
--- trunk/MgDev/Common/MapGuideCommon/MapLayer/Layer.cpp	2022-09-15 10:14:11 UTC (rev \
                9970)
+++ trunk/MgDev/Common/MapGuideCommon/MapLayer/Layer.cpp	2022-10-10 09:40:18 UTC (rev \
9971) @@ -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);  }
 
     unique_ptr<MdfModel::FeatureSource> featureSource;
@@ -389,7 +389,7 @@
 
         if (string::npos == endIndex)
         {
-            throw new MgXmlParserException(L"MgLayer.UpdateFeatures",
+            throw new MgException(MgExceptionCodes::MgXmlParserException, \
L"MgLayer.UpdateFeatures",  __LINE__, __WFILE__, NULL, L"", NULL);
         }
         else
@@ -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: trunk/MgDev/Common/MapGuideCommon/MapLayer/Map.cpp
===================================================================
--- trunk/MgDev/Common/MapGuideCommon/MapLayer/Map.cpp	2022-09-15 10:14:11 UTC (rev \
                9970)
+++ trunk/MgDev/Common/MapGuideCommon/MapLayer/Map.cpp	2022-10-10 09:40:18 UTC (rev \
9971) @@ -118,7 +118,7 @@
     else if (resource->GetResourceType() == MgResourceType::TileSetDefinition)
         CreateFromTileSet(resourceService, resource, mapName);
     else
-        throw new MgInvalidResourceTypeException(L"MgMap.Create", __LINE__, \
__WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidResourceTypeException, L"MgMap.Create", \
__LINE__, __WFILE__, NULL, L"", NULL);  
     MG_CATCH_AND_THROW(L"MgMap.Create")
 }
@@ -176,7 +176,7 @@
         STRING errorMsg = parser.GetErrorMessage();
         MgStringCollection arguments;
         arguments.Add(errorMsg);
-        throw new MgInvalidMapDefinitionException(L"MgMap.Create", __LINE__, \
__WFILE__, &arguments, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidMapDefinitionException, L"MgMap.Create", \
__LINE__, __WFILE__, &arguments, L"", NULL);  }
 
     // build the runtime map object from the parsed definition
@@ -205,7 +205,7 @@
             STRING errorMsg = parser.GetErrorMessage();
             MgStringCollection arguments;
             arguments.Add(errorMsg);
-            throw new MgInvalidMapDefinitionException(L"MgMap.Create", __LINE__, \
__WFILE__, &arguments, L"", NULL); +            throw new \
MgException(MgExceptionCodes::MgInvalidMapDefinitionException, L"MgMap.Create", \
__LINE__, __WFILE__, &arguments, L"", NULL);  }
 
         tdef.reset(parser.DetachTileSetDefinition());
@@ -445,7 +445,7 @@
                 //attach the layer to its group
                 itKg = knownGroups.find(groupName);
                 if(itKg == knownGroups.end())
-                    throw new MgInvalidMapDefinitionException(L"MgMap.Create", \
__LINE__, __WFILE__, NULL, L"", NULL); +                    throw new \
MgException(MgExceptionCodes::MgInvalidMapDefinitionException, L"MgMap.Create", \
__LINE__, __WFILE__, NULL, L"", NULL);  
                 rtLayer->SetGroup(itKg->second);
             }
@@ -628,7 +628,7 @@
         STRING errorMsg = parser.GetErrorMessage();
         MgStringCollection arguments;
         arguments.Add(errorMsg);
-        throw new MgInvalidMapDefinitionException(L"MgMap.Create", __LINE__, \
__WFILE__, &arguments, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidMapDefinitionException, L"MgMap.Create", \
__LINE__, __WFILE__, &arguments, L"", NULL);  }
 
     // build the runtime map object from the parsed definition
@@ -923,7 +923,7 @@
         arguments.Add(L"0");
         arguments.Add(MgResources::BlankArgument);
 
-        throw new MgInvalidArgumentException(L"MgMap.Open",
+        throw new MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgMap.Open",  __LINE__, __WFILE__, &arguments, L"MgStringEmpty", NULL);
     }
 
@@ -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
@@ -1114,7 +1114,7 @@
         {
             // If this exception is thrown then the calling code should probably \
initialize the  // resource service using SetDelayedLoadResourceService()
-            throw new MgInvalidOperationException(L"MgMap.UnpackLayersAndGroups", \
__LINE__, __WFILE__, NULL, L"", NULL); +            throw new \
MgException(MgExceptionCodes::MgInvalidOperationException, \
L"MgMap.UnpackLayersAndGroups", __LINE__, __WFILE__, NULL, L"", NULL);  }
     }
 
@@ -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: trunk/MgDev/Common/MapGuideCommon/MapLayer/Selection.cpp
===================================================================
--- trunk/MgDev/Common/MapGuideCommon/MapLayer/Selection.cpp	2022-09-15 10:14:11 UTC \
                (rev 9970)
+++ trunk/MgDev/Common/MapGuideCommon/MapLayer/Selection.cpp	2022-10-10 09:40:18 UTC \
(rev 9971) @@ -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: trunk/MgDev/Common/MapGuideCommon/Services/Command.cpp
===================================================================
--- trunk/MgDev/Common/MapGuideCommon/Services/Command.cpp	2022-09-15 10:14:11 UTC \
                (rev 9970)
+++ trunk/MgDev/Common/MapGuideCommon/Services/Command.cpp	2022-10-10 09:40:18 UTC \
(rev 9971) @@ -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);
     }
 
@@ -342,7 +342,7 @@
             arguments.Add(L"1");
             arguments.Add(buffer);
 
-            throw new MgInvalidArgumentException(L"MgCommand.GetResponseResult",
+            throw new MgException(MgExceptionCodes::MgInvalidArgumentException, \
                L"MgCommand.GetResponseResult",
                 __LINE__, __WFILE__, &arguments, L"MgInvalidDataType", NULL);
         }
     }

Modified: trunk/MgDev/Common/MapGuideCommon/Services/MapPlot.cpp
===================================================================
--- trunk/MgDev/Common/MapGuideCommon/Services/MapPlot.cpp	2022-09-15 10:14:11 UTC \
                (rev 9970)
+++ trunk/MgDev/Common/MapGuideCommon/Services/MapPlot.cpp	2022-10-10 09:40:18 UTC \
(rev 9971) @@ -237,7 +237,7 @@
 // Serialize data to TCP/IP stream
 void MgMapPlot::Serialize(MgStream* stream)
 {
-    throw new MgNotImplementedException(L"MgMapPlot.Serialize", __LINE__, __WFILE__, \
NULL, L"", NULL); +    throw new \
MgException(MgExceptionCodes::MgNotImplementedException, L"MgMapPlot.Serialize", \
__LINE__, __WFILE__, NULL, L"", NULL);  }
 
 
@@ -245,7 +245,7 @@
 // Deserialize data from TCP/IP stream
 void MgMapPlot::Deserialize(MgStream* stream)
 {
-    throw new MgNotImplementedException(L"MgMapPlot.Deserialize", __LINE__, \
__WFILE__, NULL, L"", NULL); +    throw new \
MgException(MgExceptionCodes::MgNotImplementedException, L"MgMapPlot.Deserialize", \
__LINE__, __WFILE__, NULL, L"", NULL);  }
 
 

Modified: trunk/MgDev/Common/MapGuideCommon/Services/PackageStatusInformation.cpp
===================================================================
--- trunk/MgDev/Common/MapGuideCommon/Services/PackageStatusInformation.cpp	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/MapGuideCommon/Services/PackageStatusInformation.cpp	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -197,7 +197,7 @@
      && MgPackageApiName::LoadPackage != m_apiName
      && MgPackageApiName::MakePackage != m_apiName)
     {
-        throw new MgInvalidOperationException(
+        throw new MgException(MgExceptionCodes::MgInvalidOperationException, 
             L"MgPackageStatusInformation.GetStatusMessage",
             __LINE__, __WFILE__, NULL, L"", NULL);
     }
@@ -275,7 +275,7 @@
     if (MgPackageApiName::LoadPackage != apiName &&
         MgPackageApiName::MakePackage != apiName)
     {
-        throw new MgInvalidOperationException(
+        throw new MgException(MgExceptionCodes::MgInvalidOperationException, 
             L"MgPackageStatusInformation.SetApiName",
             __LINE__, __WFILE__, NULL, L"", NULL);
     }

Modified: trunk/MgDev/Common/MapGuideCommon/Services/PrintLayout.cpp
===================================================================
--- trunk/MgDev/Common/MapGuideCommon/Services/PrintLayout.cpp	2022-09-15 10:14:11 \
                UTC (rev 9970)
+++ trunk/MgDev/Common/MapGuideCommon/Services/PrintLayout.cpp	2022-10-10 09:40:18 \
UTC (rev 9971) @@ -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: trunk/MgDev/Common/MapGuideCommon/Services/ProxyDataReader.cpp
===================================================================
--- trunk/MgDev/Common/MapGuideCommon/Services/ProxyDataReader.cpp	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/MapGuideCommon/Services/ProxyDataReader.cpp	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -811,7 +811,7 @@
         MgStringCollection arguments;
         arguments.Add(propertyName);
 
-        throw new MgNullPropertyValueException(L"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 MgNullPropertyValueException(L"MgProxyDataReader.GetProperty",
+        throw new MgException(MgExceptionCodes::MgNullPropertyValueException, \
L"MgProxyDataReader.GetProperty",  __LINE__, __WFILE__, &arguments, L"", NULL);
     }
 

Modified: trunk/MgDev/Common/MapGuideCommon/Services/ProxyFeatureReader.cpp
===================================================================
--- trunk/MgDev/Common/MapGuideCommon/Services/ProxyFeatureReader.cpp	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/MapGuideCommon/Services/ProxyFeatureReader.cpp	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -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 MgNullPropertyValueException(L"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 MgNullPropertyValueException(L"MgProxyFeatureReader.GetProperty",
+        throw new MgException(MgExceptionCodes::MgNullPropertyValueException, \
L"MgProxyFeatureReader.GetProperty",  __LINE__, __WFILE__, &arguments, L"", NULL);
     }
 
@@ -990,7 +990,7 @@
 /// <returns>Returns a ByteReader object</returns>
 BYTE_ARRAY_OUT MgProxyFeatureReader::GetGeometry(CREFSTRING propertyName, INT32& \
length)  {
-    throw new MgNotImplementedException(L"MgProxyFeatureReader.GetGeometry",
+    throw new MgException(MgExceptionCodes::MgNotImplementedException, \
L"MgProxyFeatureReader.GetGeometry",  __LINE__, __WFILE__, NULL, L"", NULL);
 }
 
@@ -1003,7 +1003,7 @@
 /// <returns>Returns a ByteReader object</returns>
 BYTE_ARRAY_OUT MgProxyFeatureReader::GetGeometry(INT32 index, INT32& length)
 {
-    throw new MgNotImplementedException(L"MgProxyFeatureReader.GetGeometry",
+    throw new MgException(MgExceptionCodes::MgNotImplementedException, \
L"MgProxyFeatureReader.GetGeometry",  __LINE__, __WFILE__, NULL, L"", NULL);
 }
 
@@ -1069,7 +1069,7 @@
 
 MgFeatureSet* MgProxyFeatureReader::GetFeatures(INT32 count)
 {
-    throw new MgNotImplementedException(L"MgProxyFeatureReader.GetFeatures",
+    throw new MgException(MgExceptionCodes::MgNotImplementedException, \
L"MgProxyFeatureReader.GetFeatures",  __LINE__, __WFILE__, NULL, L"", NULL);
 }
 

Modified: trunk/MgDev/Common/MapGuideCommon/Services/ProxyFeatureService.cpp
===================================================================
--- trunk/MgDev/Common/MapGuideCommon/Services/ProxyFeatureService.cpp	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/MapGuideCommon/Services/ProxyFeatureService.cpp	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -835,7 +835,7 @@
                                                           CREFSTRING className,
                                                           MgFeatureQueryOptions* \
options)  {
-    throw new MgNotImplementedException(
+    throw new MgException(MgExceptionCodes::MgNotImplementedException, 
         L"MgProxyFeatureService::GetLockedFeatures",
         __LINE__, __WFILE__, NULL, L"", NULL);
 

Modified: trunk/MgDev/Common/MapGuideCommon/Services/ProxyGwsFeatureReader.cpp
===================================================================
--- trunk/MgDev/Common/MapGuideCommon/Services/ProxyGwsFeatureReader.cpp	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/MapGuideCommon/Services/ProxyGwsFeatureReader.cpp	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -623,7 +623,7 @@
         MgStringCollection arguments;
         arguments.Add(propertyName);
 
-        throw new MgNullPropertyValueException(L"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 MgNullPropertyValueException(L"MgProxyGwsFeatureReader.GetProperty",
 +        throw new MgException(MgExceptionCodes::MgNullPropertyValueException, \
L"MgProxyGwsFeatureReader.GetProperty",  __LINE__, __WFILE__, &arguments, L"", NULL);
     }
 
@@ -933,7 +933,7 @@
 /// <returns>Returns a ByteReader object</returns>
 BYTE_ARRAY_OUT MgProxyGwsFeatureReader::GetGeometry(CREFSTRING propertyName, INT32& \
length)  {
-    throw new MgNotImplementedException(L"MgProxyGwsFeatureReader.GetGeometry",
+    throw new MgException(MgExceptionCodes::MgNotImplementedException, \
L"MgProxyGwsFeatureReader.GetGeometry",  __LINE__, __WFILE__, NULL, L"", NULL);
 }
 
@@ -946,7 +946,7 @@
 /// <returns>Returns a ByteReader object</returns>
 BYTE_ARRAY_OUT MgProxyGwsFeatureReader::GetGeometry(INT32 index, INT32& length)
 {
-    throw new MgNotImplementedException(L"MgProxyGwsFeatureReader.GetGeometry",
+    throw new MgException(MgExceptionCodes::MgNotImplementedException, \
L"MgProxyGwsFeatureReader.GetGeometry",  __LINE__, __WFILE__, NULL, L"", NULL);
 }
 
@@ -1012,6 +1012,6 @@
 
 MgFeatureSet* MgProxyGwsFeatureReader::GetFeatures(INT32 count)
 {
-    throw new MgNotImplementedException(L"MgProxyGwsFeatureReader.GetFeatures",
+    throw new MgException(MgExceptionCodes::MgNotImplementedException, \
L"MgProxyGwsFeatureReader.GetFeatures",  __LINE__, __WFILE__, NULL, L"", NULL);
 }

Modified: trunk/MgDev/Common/MapGuideCommon/Services/ProxySqlDataReader.cpp
===================================================================
--- trunk/MgDev/Common/MapGuideCommon/Services/ProxySqlDataReader.cpp	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/MapGuideCommon/Services/ProxySqlDataReader.cpp	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -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); \
 }
 
@@ -626,7 +626,7 @@
 
 void MgProxySqlDataReader::Serialize(MgStream* stream)
 {
-    throw new MgInvalidOperationException(L"MgProxySqlDataReader.Serialize", \
__LINE__, __WFILE__, NULL, L"", NULL); +    throw new \
MgException(MgExceptionCodes::MgInvalidOperationException, \
L"MgProxySqlDataReader.Serialize", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
 //////////////////////////////////////////////////////////////////
@@ -807,7 +807,7 @@
         MgStringCollection arguments;
         arguments.Add(propertyName);
 
-        throw new MgNullPropertyValueException(L"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 MgNullPropertyValueException(L"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: trunk/MgDev/Common/MapGuideCommon/Services/ServerConnection.cpp
===================================================================
--- trunk/MgDev/Common/MapGuideCommon/Services/ServerConnection.cpp	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/MapGuideCommon/Services/ServerConnection.cpp	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -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: trunk/MgDev/Common/MapGuideCommon/Services/ServerConnectionStack.cpp
===================================================================
--- trunk/MgDev/Common/MapGuideCommon/Services/ServerConnectionStack.cpp	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/MapGuideCommon/Services/ServerConnectionStack.cpp	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -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: trunk/MgDev/Common/MapGuideCommon/Services/ServerInformation.cpp
===================================================================
--- trunk/MgDev/Common/MapGuideCommon/Services/ServerInformation.cpp	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/MapGuideCommon/Services/ServerInformation.cpp	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -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);
     }
@@ -246,7 +246,7 @@
         MgStringCollection whyArguments;
         whyArguments.Add(L"[]=");
 
-        throw new MgInvalidArgumentException(L"MgServerInformation.CheckDescription",
 +        throw new MgException(MgExceptionCodes::MgInvalidArgumentException, \
                L"MgServerInformation.CheckDescription",
             __LINE__, __WFILE__, &arguments, L"MgStringContainsReservedCharacters", \
&whyArguments);  }
 }
@@ -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);
     }
@@ -302,7 +302,7 @@
         arguments.Add(L"1");
         arguments.Add(serviceName);
 
-        throw new MgInvalidArgumentException(L"MgServerInformation.ToServiceType",
+        throw new MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgServerInformation.ToServiceType",  __LINE__, __WFILE__, &arguments, \
L"MgNameNotFound", NULL);  }
 
@@ -336,7 +336,7 @@
         arguments.Add(L"1");
         arguments.Add(buffer);
 
-        throw new MgInvalidArgumentException(L"MgServerInformation.ToServiceName",
+        throw new MgException(MgExceptionCodes::MgInvalidArgumentException, \
                L"MgServerInformation.ToServiceName",
             __LINE__, __WFILE__, &arguments, L"MgInvalidServiceType", NULL);
     }
 
@@ -370,7 +370,7 @@
         arguments.Add(L"1");
         arguments.Add(buffer);
 
-        throw new MgInvalidArgumentException(L"MgServerInformation.ToServiceFlag",
+        throw new MgException(MgExceptionCodes::MgInvalidArgumentException, \
                L"MgServerInformation.ToServiceFlag",
             __LINE__, __WFILE__, &arguments, L"MgInvalidServiceType", 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);  }
 
@@ -590,7 +590,7 @@
         arguments.Add(L"1");
         arguments.Add(buffer);
 
-        throw new MgInvalidArgumentException(L"MgServerInformation.IsServiceEnabled",
 +        throw new MgException(MgExceptionCodes::MgInvalidArgumentException, \
                L"MgServerInformation.IsServiceEnabled",
             __LINE__, __WFILE__, &arguments, L"MgInvalidServiceType", NULL);
     }
 
@@ -640,7 +640,7 @@
         if (m_address != serverInfo.m_address &&
             0 != MgIpUtil::CompareAddresses(m_address, serverInfo.m_address))
         {
-            throw new MgInvalidOperationException(L"MgServerInformation.CopyFrom",
+            throw new MgException(MgExceptionCodes::MgInvalidOperationException, \
L"MgServerInformation.CopyFrom",  __LINE__, __WFILE__, NULL, L"", NULL);
         }
 

Modified: trunk/MgDev/Common/MapGuideCommon/Services/Site.h
===================================================================
--- trunk/MgDev/Common/MapGuideCommon/Services/Site.h	2022-09-15 10:14:11 UTC (rev \
                9970)
+++ trunk/MgDev/Common/MapGuideCommon/Services/Site.h	2022-10-10 09:40:18 UTC (rev \
9971) @@ -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())                                            \
@@ -43,7 +43,7 @@
         MgStringCollection arguments;                                         \
         arguments.Add(L"1");                                                  \
         arguments.Add(MgResources::BlankArgument);                            \
-        throw new MgInvalidArgumentException(methodName, __LINE__, __WFILE__, \
&arguments, L"MgStringEmpty", NULL); \ +        throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, methodName, __LINE__, \
                __WFILE__, &arguments, L"MgStringEmpty", NULL); \
     }                                                                         \
 
 /// \defgroup MgSite MgSite

Modified: trunk/MgDev/Common/MapGuideCommon/Services/SiteConnection.cpp
===================================================================
--- trunk/MgDev/Common/MapGuideCommon/Services/SiteConnection.cpp	2022-09-15 10:14:11 \
                UTC (rev 9970)
+++ trunk/MgDev/Common/MapGuideCommon/Services/SiteConnection.cpp	2022-10-10 09:40:18 \
UTC (rev 9971) @@ -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);
     }
 
@@ -210,7 +210,7 @@
 
     if (service == NULL)
     {
-        throw new MgServiceNotSupportedException(L"CreateService",
+        throw new MgException(MgExceptionCodes::MgServiceNotSupportedException, \
L"CreateService",  __LINE__, __WFILE__, NULL, L"", NULL);
     }
 
@@ -439,7 +439,7 @@
 
     // Send HTTP request to the URL specified for authentication.
 
-    throw new MgNotImplementedException(L"MgSiteConnection.AuthenticateWithHttpServer",
 +    throw new MgException(MgExceptionCodes::MgNotImplementedException, \
L"MgSiteConnection.AuthenticateWithHttpServer",  __LINE__, __WFILE__, NULL, L"", \
NULL);  }
 
@@ -473,7 +473,7 @@
         // THIS SHOULD NEVER BE CALLED!!
         // Servers should be going through the service manager and not \
MgSiteConnection  // to get their services.
-        throw new MgNotImplementedException(L"MgSiteConnection.GetConnectionProperties", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgNotImplementedException, \
L"MgSiteConnection.GetConnectionProperties", __LINE__, __WFILE__, NULL, L"", NULL);  \
}  
     return connProp.Detach();
@@ -491,7 +491,7 @@
 
     if (m_connProp->IsLocal())
     {
-        throw new MgInvalidOperationException(
+        throw new MgException(MgExceptionCodes::MgInvalidOperationException, 
             L"MgSiteConnection.GetConnectionPropertiesFromSiteServer",
             __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: trunk/MgDev/Common/MapGuideCommon/Services/SiteManager.cpp
===================================================================
--- trunk/MgDev/Common/MapGuideCommon/Services/SiteManager.cpp	2022-09-15 10:14:11 \
                UTC (rev 9970)
+++ trunk/MgDev/Common/MapGuideCommon/Services/SiteManager.cpp	2022-10-10 09:40:18 \
UTC (rev 9971) @@ -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: trunk/MgDev/Common/MapGuideCommon/System/CryptographyManager.h
===================================================================
--- trunk/MgDev/Common/MapGuideCommon/System/CryptographyManager.h	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/MapGuideCommon/System/CryptographyManager.h	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -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: trunk/MgDev/Common/MapGuideCommon/System/MapGuideCommonClassId.h
===================================================================
--- trunk/MgDev/Common/MapGuideCommon/System/MapGuideCommonClassId.h	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/MapGuideCommon/System/MapGuideCommonClassId.h	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -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: trunk/MgDev/Common/MapGuideCommon/System/MapGuideCommonFactory.cpp
===================================================================
--- trunk/MgDev/Common/MapGuideCommon/System/MapGuideCommonFactory.cpp	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/MapGuideCommon/System/MapGuideCommonFactory.cpp	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -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: trunk/MgDev/Common/MapGuideCommon/System/UserInformation.cpp
===================================================================
--- trunk/MgDev/Common/MapGuideCommon/System/UserInformation.cpp	2022-09-15 10:14:11 \
                UTC (rev 9970)
+++ trunk/MgDev/Common/MapGuideCommon/System/UserInformation.cpp	2022-10-10 09:40:18 \
UTC (rev 9971) @@ -208,7 +208,7 @@
         arguments.Add(L"1");
         arguments.Add(sessionId);
 
-        throw new MgInvalidArgumentException(L"MgUserInformation.SetMgSessionId",
+        throw new MgException(MgExceptionCodes::MgInvalidArgumentException, \
                L"MgUserInformation.SetMgSessionId",
             __LINE__, __WFILE__, &arguments, L"MgInvalidSessionsId", NULL);
     }
 }
@@ -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
@@ -301,7 +301,7 @@
         {
             MgStringCollection args;
             args.Add(m_locale);
-            throw new \
MgInvalidArgumentException(L"MgUserInformation.CreateMgSessionId", __LINE__, \
__WFILE__, NULL, L"MgInvalidLocale", &args); +            throw new \
MgException(MgExceptionCodes::MgInvalidArgumentException, \
L"MgUserInformation.CreateMgSessionId", __LINE__, __WFILE__, NULL, \
L"MgInvalidLocale", &args);  }
         locale = m_locale;
     }
@@ -369,7 +369,7 @@
 
 MgByteReader* MgUserInformation::GetReader()
 {
-    throw new MgNotImplementedException(L"MgUserInformation.GetReader", __LINE__, \
__WFILE__, NULL, L"", NULL); +    throw new \
MgException(MgExceptionCodes::MgNotImplementedException, \
L"MgUserInformation.GetReader", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
 ///////////////////////////////
@@ -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: trunk/MgDev/Common/MapGuideCommon/Util/IpUtil.cpp
===================================================================
--- trunk/MgDev/Common/MapGuideCommon/Util/IpUtil.cpp	2022-09-15 10:14:11 UTC (rev \
                9970)
+++ trunk/MgDev/Common/MapGuideCommon/Util/IpUtil.cpp	2022-10-10 09:40:18 UTC (rev \
9971) @@ -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: trunk/MgDev/Common/MapGuideCommon/Util/TimerUtil.cpp
===================================================================
--- trunk/MgDev/Common/MapGuideCommon/Util/TimerUtil.cpp	2022-09-15 10:14:11 UTC (rev \
                9970)
+++ trunk/MgDev/Common/MapGuideCommon/Util/TimerUtil.cpp	2022-10-10 09:40:18 UTC (rev \
9971) @@ -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: trunk/MgDev/Common/PlatformBase/Data/IntCollection.cpp
===================================================================
--- trunk/MgDev/Common/PlatformBase/Data/IntCollection.cpp	2022-09-15 10:14:11 UTC \
                (rev 9970)
+++ trunk/MgDev/Common/PlatformBase/Data/IntCollection.cpp	2022-10-10 09:40:18 UTC \
(rev 9971) @@ -309,7 +309,7 @@
         arguments.Add(L"1");
         arguments.Add(buffer);
 
-        throw new MgInvalidArgumentException(L"MgIntCollection.ValidateIndex",
+        throw new MgException(MgExceptionCodes::MgInvalidArgumentException, \
                L"MgIntCollection.ValidateIndex",
             __LINE__, __WFILE__, &arguments, L"MgInvalidValueTooBig", NULL);
     }
     else if (index < 0)
@@ -321,7 +321,7 @@
         arguments.Add(L"1");
         arguments.Add(buffer);
 
-        throw new MgInvalidArgumentException(L"MgIntCollection.ValidateIndex",
+        throw new MgException(MgExceptionCodes::MgInvalidArgumentException, \
                L"MgIntCollection.ValidateIndex",
             __LINE__, __WFILE__, &arguments, L"MgInvalidValueTooSmall", NULL);
     }
 }

Modified: trunk/MgDev/Common/PlatformBase/Data/SerializableCollection.cpp
===================================================================
--- trunk/MgDev/Common/PlatformBase/Data/SerializableCollection.cpp	2022-09-15 \
                10:14:11 UTC (rev 9970)
+++ trunk/MgDev/Common/PlatformBase/Data/SerializableCollection.cpp	2022-10-10 \
09:40:18 UTC (rev 9971) @@ -215,7 +215,7 @@
 /// </returns>
 MgByteReader* MgSerializableCollection::ToXml()
 {
-    throw new MgNotImplementedException(L"MgSerializableCollection.ToXml", __LINE__, \
__WFILE__, NULL, L"", NULL); +    throw new \
MgException(MgExceptionCodes::MgNotImplementedException, \
L"MgSerializableCollection.ToXml", __LINE__, __WFILE__, NULL, L"", NULL);  
     return NULL;
 }

Modified: trunk/MgDev/Common/PlatformBase/MapLayer/ChangeList.cpp
===================================================================
--- trunk/MgDev/Common/PlatformBase/MapLayer/ChangeList.cpp	2022-09-15 10:14:11 UTC \
                (rev 9970)
+++ trunk/MgDev/Common/PlatformBase/MapLayer/ChangeList.cpp	2022-10-10 09:40:18 UTC \
(rev 9971) @@ -110,7 +110,7 @@
 //
 void MgChangeList::Serialize(MgStream* stream)
 {
-    throw new MgNotImplementedException(L"MgChangeList.Serialize", __LINE__, \
__WFILE__, NULL, L"", NULL); +    throw new \
MgException(MgExceptionCodes::MgNotImplementedException, L"MgChangeList.Serialize", \
__LINE__, __WFILE__, NULL, L"", NULL);  }
 
 //////////////////////////////////////////////////////////////////
@@ -118,7 +118,7 @@
 //
 void MgChangeList::Deserialize(MgStream* stream)
 {
-    throw new MgNotImplementedException(L"MgChangeList.Deserialize", __LINE__, \
__WFILE__, NULL, L"", NULL); +    throw new \
MgException(MgExceptionCodes::MgNotImplementedException, L"MgChangeList.Deserialize", \
__LINE__, __WFILE__, NULL, L"", NULL);  }
 
 //////////////////////////////////////////////////////////////////

Modified: trunk/MgDev/Common/PlatformBase/MapLayer/LayerBase.cpp
===================================================================
--- trunk/MgDev/Common/PlatformBase/MapLayer/LayerBase.cpp	2022-09-15 10:14:11 UTC \
                (rev 9970)
+++ trunk/MgDev/Common/PlatformBase/MapLayer/LayerBase.cpp	2022-10-10 09:40:18 UTC \
(rev 9971) @@ -211,7 +211,7 @@
 {
     if (m_type == MgLayerType::BaseMap)
     {
-        throw new MgInvalidOperationException(L"MgLayerBase.SetVisible",
+        throw new MgException(MgExceptionCodes::MgInvalidOperationException, \
L"MgLayerBase.SetVisible",  __LINE__, __WFILE__, NULL, L"", NULL);
     }
 
@@ -432,7 +432,7 @@
 void MgLayerBase::Serialize(MgStream* stream)
 {
     MG_TRY()
-    throw new MgNotImplementedException(L"MgLayerBase.Serialize", __LINE__, \
__WFILE__, NULL, L"", NULL); +    throw new \
MgException(MgExceptionCodes::MgNotImplementedException, L"MgLayerBase.Serialize", \
__LINE__, __WFILE__, NULL, L"", NULL);  MG_CATCH_AND_THROW(L"MgLayerBase.Serialize");
 }
 
@@ -443,7 +443,7 @@
 void MgLayerBase::Deserialize(MgStream* stream)
 {
     MG_TRY()
-    throw new MgNotImplementedException(L"MgLayerBase.Deserialize", __LINE__, \
__WFILE__, NULL, L"", NULL); +    throw new \
MgException(MgExceptionCodes::MgNotImplementedException, L"MgLayerBase.Deserialize", \
__LINE__, __WFILE__, NULL, L"", NULL);  \
MG_CATCH_AND_THROW(L"MgLayerBase.Deserialize");  }
 
@@ -577,7 +577,7 @@
         STRING errorMsg = parser.GetErrorMessage();
         MgStringCollection arguments;
         arguments.Add(errorMsg);
-        throw new MgInvalidLayerDefinitionException(L"MgLayerBase::GetLayerDefinition", \
__LINE__, __WFILE__, &arguments, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidLayerDefinitionException, \
L"MgLayerBase::GetLayerDefinition", __LINE__, __WFILE__, &arguments, L"", NULL);  }
 
     // detach the feature layer definition from the parser - it's
@@ -600,7 +600,7 @@
         STRING errorMsg = parser.GetErrorMessage();
         MgStringCollection arguments;
         arguments.Add(errorMsg);
-        throw new MgInvalidLayerDefinitionException(L"MgLayerBase::GetLayerDefinition", \
__LINE__, __WFILE__, &arguments, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidLayerDefinitionException, \
L"MgLayerBase::GetLayerDefinition", __LINE__, __WFILE__, &arguments, L"", NULL);  }
 
     // detach the feature layer definition from the parser - it's
@@ -648,7 +648,7 @@
             STRING errorMsg = parser.GetErrorMessage();
             MgStringCollection arguments;
             arguments.Add(errorMsg);
-            throw new \
MgInvalidLayerDefinitionException(L"MgLayerBase::GetLayerDefinition", __LINE__, \
__WFILE__, &arguments, L"", NULL); +            throw new \
MgException(MgExceptionCodes::MgInvalidLayerDefinitionException, \
L"MgLayerBase::GetLayerDefinition", __LINE__, __WFILE__, &arguments, L"", NULL);  }
 
         MdfModel::LayerDefinition* ldef = parser.DetachLayerDefinition();
@@ -755,7 +755,7 @@
 ///
 MgClassDefinition* MgLayerBase::GetClassDefinition()
 {
-    throw new MgNotImplementedException(L"MgLayerBase.GetClassDefinition",
+    throw new MgException(MgExceptionCodes::MgNotImplementedException, \
L"MgLayerBase.GetClassDefinition",  __LINE__, __WFILE__, NULL, L"", NULL);
 }
 
@@ -769,7 +769,7 @@
 ///
 MgFeatureReader* MgLayerBase::SelectFeatures(MgFeatureQueryOptions* options)
 {
-    throw new MgNotImplementedException(L"MgLayerBase.SelectFeatures",
+    throw new MgException(MgExceptionCodes::MgNotImplementedException, \
L"MgLayerBase.SelectFeatures",  __LINE__, __WFILE__, NULL, L"", NULL);
 }
 
@@ -783,7 +783,7 @@
 ///
 MgFeatureReader* MgLayerBase::SelectFeatures(MgFeatureQueryOptions* options, \
CREFSTRING coordinateSystem)  {
-    throw new MgNotImplementedException(L"MgLayerBase.SelectFeatures",
+    throw new MgException(MgExceptionCodes::MgNotImplementedException, \
L"MgLayerBase.SelectFeatures",  __LINE__, __WFILE__, NULL, L"", NULL);
 }
 
@@ -797,7 +797,7 @@
 ///
 MgDataReader* MgLayerBase::SelectAggregate(MgFeatureAggregateOptions* options)
 {
-    throw new MgNotImplementedException(L"MgLayerBase.SelectAggregate",
+    throw new MgException(MgExceptionCodes::MgNotImplementedException, \
L"MgLayerBase.SelectAggregate",  __LINE__, __WFILE__, NULL, L"", NULL);
 }
 
@@ -809,49 +809,49 @@
 ///
 MgPropertyCollection* MgLayerBase::UpdateFeatures(MgFeatureCommandCollection* \
commands)  {
-    throw new MgNotImplementedException(L"MgLayerBase.UpdateFeatures",
+    throw new MgException(MgExceptionCodes::MgNotImplementedException, \
L"MgLayerBase.UpdateFeatures",  __LINE__, __WFILE__, NULL, L"", NULL);
 }
 
 MgPropertyCollection* MgLayerBase::UpdateFeatures(MgFeatureCommandCollection* \
commands, MgTransaction* transaction)  {
-    throw new MgNotImplementedException(L"MgLayerBase.UpdateFeatures",
+    throw new MgException(MgExceptionCodes::MgNotImplementedException, \
L"MgLayerBase.UpdateFeatures",  __LINE__, __WFILE__, NULL, L"", NULL);
 }
 
 MgTransaction* MgLayerBase::BeginTransaction()
 {
-    throw new MgNotImplementedException(L"MgLayerBase.BeginTransaction",
+    throw new MgException(MgExceptionCodes::MgNotImplementedException, \
L"MgLayerBase.BeginTransaction",  __LINE__, __WFILE__, NULL, L"", NULL);
 }
 
 MgFeatureReader* MgLayerBase::InsertFeatures(MgPropertyCollection* properties, \
MgTransaction* transaction)  {
-    throw new MgNotImplementedException(L"MgLayerBase.InsertFeatures",
+    throw new MgException(MgExceptionCodes::MgNotImplementedException, \
L"MgLayerBase.InsertFeatures",  __LINE__, __WFILE__, NULL, L"", NULL);
 }
 
 MgFeatureReader* MgLayerBase::InsertFeatures(MgBatchPropertyCollection* properties, \
MgTransaction* transaction)  {
-    throw new MgNotImplementedException(L"MgLayerBase.InsertFeatures",
+    throw new MgException(MgExceptionCodes::MgNotImplementedException, \
L"MgLayerBase.InsertFeatures",  __LINE__, __WFILE__, NULL, L"", NULL);
 }
 
 INT32 MgLayerBase::UpdateMatchingFeatures(MgPropertyCollection* properties, \
CREFSTRING filter, MgTransaction* transaction)  {
-    throw new MgNotImplementedException(L"MgLayerBase.UpdateMatchingFeatures",
+    throw new MgException(MgExceptionCodes::MgNotImplementedException, \
L"MgLayerBase.UpdateMatchingFeatures",  __LINE__, __WFILE__, NULL, L"", NULL);
 }
 
 INT32 MgLayerBase::DeleteFeatures(CREFSTRING filter, MgTransaction* transaction)
 {
-    throw new MgNotImplementedException(L"MgLayerBase.DeleteFeatures",
+    throw new MgException(MgExceptionCodes::MgNotImplementedException, \
L"MgLayerBase.DeleteFeatures",  __LINE__, __WFILE__, NULL, L"", NULL);
 }
 
 MgSpatialContextReader* MgLayerBase::GetSpatialContexts(bool bActiveOnly)
 {
-    throw new MgNotImplementedException(L"MgLayerBase.GetSpatialContexts",
+    throw new MgException(MgExceptionCodes::MgNotImplementedException, \
L"MgLayerBase.GetSpatialContexts",  __LINE__, __WFILE__, NULL, L"", NULL);
 }
 

Modified: trunk/MgDev/Common/PlatformBase/MapLayer/MapBase.cpp
===================================================================
--- trunk/MgDev/Common/PlatformBase/MapLayer/MapBase.cpp	2022-09-15 10:14:11 UTC (rev \
                9970)
+++ trunk/MgDev/Common/PlatformBase/MapLayer/MapBase.cpp	2022-10-10 09:40:18 UTC (rev \
9971) @@ -137,7 +137,7 @@
 void MgMapBase::Create(MgResourceService* resourceService, MgResourceIdentifier* \
mapDefinition, CREFSTRING mapName)  {
     MG_TRY()
-    throw new MgNotImplementedException(L"MgMapBase.Create", __LINE__, __WFILE__, \
NULL, L"", NULL); +    throw new \
MgException(MgExceptionCodes::MgNotImplementedException, L"MgMapBase.Create", \
__LINE__, __WFILE__, NULL, L"", NULL);  MG_CATCH_AND_THROW(L"MgMapBase.Create")
 }
 
@@ -201,7 +201,7 @@
 void MgMapBase::Open(MgResourceService* resourceService, CREFSTRING mapName)
 {
     MG_TRY()
-    throw new MgNotImplementedException(L"MgMapBase.Open", __LINE__, __WFILE__, \
NULL, L"", NULL); +    throw new \
MgException(MgExceptionCodes::MgNotImplementedException, L"MgMapBase.Open", __LINE__, \
__WFILE__, NULL, L"", NULL);  MG_CATCH_AND_THROW(L"MgMapBase.Open")
 }
 
@@ -279,7 +279,7 @@
 
     if (index >= scaleCount || index < 0)
     {
-        throw new MgIndexOutOfRangeException(L"MgMapBase.GetFiniteDisplayScaleAt",
+        throw new MgException(MgExceptionCodes::MgIndexOutOfRangeException, \
L"MgMapBase.GetFiniteDisplayScaleAt",  __LINE__, __WFILE__, NULL, L"", NULL);
     }
 
@@ -396,7 +396,7 @@
 void MgMapBase::Serialize(MgStream* stream)
 {
     MG_TRY()
-    throw new MgNotImplementedException(L"MgMapBase.Serialize", __LINE__, __WFILE__, \
NULL, L"", NULL); +    throw new \
MgException(MgExceptionCodes::MgNotImplementedException, L"MgMapBase.Serialize", \
__LINE__, __WFILE__, NULL, L"", NULL);  MG_CATCH_AND_THROW(L"MgMapBase.Serialize")
 }
 
@@ -407,7 +407,7 @@
 void MgMapBase::Deserialize(MgStream* stream)
 {
     MG_TRY()
-    throw new MgNotImplementedException(L"MgMapBase.Deserialize", __LINE__, \
__WFILE__, NULL, L"", NULL); +    throw new \
MgException(MgExceptionCodes::MgNotImplementedException, L"MgMapBase.Deserialize", \
__LINE__, __WFILE__, NULL, L"", NULL);  MG_CATCH_AND_THROW(L"MgMapBase.Deserialize")
 }
 
@@ -672,7 +672,7 @@
     {
         changeList = new MgChangeList(objectId, layer);
         if(changeList == NULL)
-            throw new MgOutOfMemoryException(L"MgMapBase.TrackChange", __LINE__, \
__WFILE__, NULL, L"", NULL); +            throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, L"MgMapBase.TrackChange", \
__LINE__, __WFILE__, NULL, L"", NULL);  
         m_changeLists->Add(changeList);
     }
@@ -680,7 +680,7 @@
     //create a change record and adds it to the change list
     Ptr<MgObjectChange> change = new MgObjectChange(type);
     if(change == NULL)
-        throw new MgOutOfMemoryException(L"MgMapBase.TrackChange", __LINE__, \
__WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgOutOfMemoryException, L"MgMapBase.TrackChange", \
__LINE__, __WFILE__, NULL, L"", NULL);  
     change->SetParam(param);
 
@@ -773,7 +773,7 @@
 ///
 MgService* MgMapBase::GetService(INT32 serviceType)
 {
-    throw new MgNotImplementedException(L"MgMapBase.GetService",
+    throw new MgException(MgExceptionCodes::MgNotImplementedException, \
L"MgMapBase.GetService",  __LINE__, __WFILE__, NULL, L"", NULL);
 }
 
@@ -795,7 +795,7 @@
         STRING errorMsg = parser.GetErrorMessage();
         MgStringCollection arguments;
         arguments.Add(errorMsg);
-        throw new MgInvalidMapDefinitionException(L"MgMapBase::GetMapDefinition", \
__LINE__, __WFILE__, &arguments, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidMapDefinitionException, \
L"MgMapBase::GetMapDefinition", __LINE__, __WFILE__, &arguments, L"", NULL);  }
 
     // detach the map definition from the parser - it's
@@ -818,7 +818,7 @@
         STRING errorMsg = parser.GetErrorMessage();
         MgStringCollection arguments;
         arguments.Add(errorMsg);
-        throw new MgInvalidMapDefinitionException(L"MgMapBase::GetMapDefinition", \
__LINE__, __WFILE__, &arguments, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidMapDefinitionException, \
L"MgMapBase::GetMapDefinition", __LINE__, __WFILE__, &arguments, L"", NULL);  }
 
     // detach the map definition from the parser - it's

Modified: trunk/MgDev/Common/PlatformBase/MapLayer/SelectionBase.cpp
===================================================================
--- trunk/MgDev/Common/PlatformBase/MapLayer/SelectionBase.cpp	2022-09-15 10:14:11 \
                UTC (rev 9970)
+++ trunk/MgDev/Common/PlatformBase/MapLayer/SelectionBase.cpp	2022-10-10 09:40:18 \
UTC (rev 9971) @@ -92,12 +92,12 @@
 
 MgFeatureReader* MgSelectionBase::GetSelectedFeatures(MgLayerBase* layer, CREFSTRING \
className, bool mappedOnly)  {
-    throw new MgNotImplementedException(L"MgSelectionBase.GetSelectedFeatures", \
__LINE__, __WFILE__, NULL, L"", NULL); +    throw new \
MgException(MgExceptionCodes::MgNotImplementedException, \
L"MgSelectionBase.GetSelectedFeatures", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
 MgFeatureReader* MgSelectionBase::GetSelectedFeatures(MgLayerBase* layer, CREFSTRING \
className, MgStringCollection* propertyNames)  {
-    throw new MgNotImplementedException(L"MgSelectionBase.GetSelectedFeatures", \
__LINE__, __WFILE__, NULL, L"", NULL); +    throw new \
MgException(MgExceptionCodes::MgNotImplementedException, \
L"MgSelectionBase.GetSelectedFeatures", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
 // Read selection from XML document.  Previous selection is cleared.
@@ -438,7 +438,7 @@
 {
     if (0 == (MgMapBase*)m_map)
     {
-        throw new MgInvalidMapDefinitionException(L"MgSelectionBase.GetLayers", \
__LINE__, __WFILE__, NULL, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidMapDefinitionException, \
L"MgSelectionBase.GetLayers", __LINE__, __WFILE__, NULL, L"", NULL);  }
 
     Ptr<MgReadOnlyLayerCollection> selLayers = new MgReadOnlyLayerCollection();
@@ -673,7 +673,7 @@
                     }
                     break;
                 default:
-                    throw new \
MgNotImplementedException(L"MgSelectionBase.GenerateFilters", __LINE__, __WFILE__, \
NULL, L"", NULL); +                    throw new \
MgException(MgExceptionCodes::MgNotImplementedException, \
L"MgSelectionBase.GenerateFilters", __LINE__, __WFILE__, NULL, L"", NULL);  break;
                 }
 
@@ -1033,7 +1033,7 @@
 //
 void MgSelectionBase::Open(MgResourceService* resourceService, CREFSTRING mapName)
 {
-    throw new MgNotImplementedException(L"MgSelectionBase.Save", __LINE__, \
__WFILE__, NULL, L"", NULL); +    throw new \
MgException(MgExceptionCodes::MgNotImplementedException, L"MgSelectionBase.Save", \
__LINE__, __WFILE__, NULL, L"", NULL);  }
 
 
@@ -1042,7 +1042,7 @@
 //
 void MgSelectionBase::Save(MgResourceService* resourceService, CREFSTRING mapName)
 {
-    throw new MgNotImplementedException(L"MgSelectionBase.Save", __LINE__, \
__WFILE__, NULL, L"", NULL); +    throw new \
MgException(MgExceptionCodes::MgNotImplementedException, L"MgSelectionBase.Save", \
__LINE__, __WFILE__, NULL, L"", NULL);  }
 
 

Modified: trunk/MgDev/Common/PlatformBase/MapLayer/Watermark.cpp
===================================================================
--- trunk/MgDev/Common/PlatformBase/MapLayer/Watermark.cpp	2022-09-15 10:14:11 UTC \
                (rev 9970)
+++ trunk/MgDev/Common/PlatformBase/MapLayer/Watermark.cpp	2022-10-10 09:40:18 UTC \
(rev 9971) @@ -39,7 +39,7 @@
         STRING errorMsg = parser.GetErrorMessage();
         MgStringCollection arguments;
         arguments.Add(errorMsg);
-        throw new MgInvalidWatermarkDefinitionException(L"MgWatermark::GetWatermarkDefinition", \
__LINE__, __WFILE__, &arguments, L"", NULL); +        throw new \
MgException(MgExceptionCodes::MgInvalidWatermarkDefinitionException, \
L"MgWatermark::GetWatermarkDefinition", __LINE__, __WFILE__, &arguments, L"", NULL);  \
}  
     // detach the watermark definition from the parser - it's
@@ -62,7 +62,7 @@
         STRING errorMsg = parser.GetErrorMessage();
         MgStringCollection arguments


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic