[fdo-commits] r668 - branches/3.2.x/Utilities/SchemaMgr/Src/Sm/Lp

svn_fdo at osgeo.org svn_fdo at osgeo.org
Wed Jan 24 17:24:23 EST 2007


Author: thomasknoell
Date: 2007-01-24 17:24:22 -0500 (Wed, 24 Jan 2007)
New Revision: 668

Modified:
   branches/3.2.x/Utilities/SchemaMgr/Src/Sm/Lp/ClassDefinition.cpp
Log:
With this code drop, the Schema Manager issues a specific exception if an attempt is made to add a raster property to a class definition in a provider not supporting raster properties. 

Modified: branches/3.2.x/Utilities/SchemaMgr/Src/Sm/Lp/ClassDefinition.cpp
===================================================================
--- branches/3.2.x/Utilities/SchemaMgr/Src/Sm/Lp/ClassDefinition.cpp	2007-01-24 22:22:49 UTC (rev 667)
+++ branches/3.2.x/Utilities/SchemaMgr/Src/Sm/Lp/ClassDefinition.cpp	2007-01-24 22:24:22 UTC (rev 668)
@@ -3542,6 +3542,14 @@
             this
         );
         break;
+
+    case FdoPropertyType_RasterProperty:
+        throw FdoSchemaException::Create(FdoSmError::NLSGetMessage(FDO_NLSID(FDOSM_421)));
+        break;
+
+    default:
+        throw FdoSchemaException::Create(FdoSmError::NLSGetMessage(FDO_NLSID(FDOSM_422)));
+        break;
     }
 
     lpProp->Update( pFdoProp, elementState, pClassOverrides, bIgnoreStates );



More information about the fdo-commits mailing list