Changes between Version 3 and Version 4 of MapGuideRfc79


Ignore:
Timestamp:
Jul 16, 2009, 7:59:30 PM (15 years ago)
Author:
Aleck
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • MapGuideRfc79

    v3 v4  
    1616
    1717||RFC Template Version||(1.0)||
    18 ||Submission Date||July 17th, 2009||
     18||Submission Date||July 16th, 2009||
    1919||Last Modified||Aleck Sun [[Timestamp]]||
    2020||Author||Aleck Sun||
     
    3636== Motivation ==
    3737
    38 As per FDO RFC37 FdoException is going to provide a GetNativeErrorCode method, MgFdoException should also provide such a method, so that users can get the native error code of FDO exception directly, and then do some specific process regarding the native error code .
    39 Also, in GIS Platform API, the MgApplicationException does not have enough subclasses to indicate the actual error. Hence more specific exception classes will be added into GIS Platform.
     38As per FDO RFC37 !FdoException is going to provide a !GetNativeErrorCode method, !MgFdoException should also provide such a method, so that users can get the native error code of FDO exception directly, and then do some specific process regarding the native error code .
     39Also, in GIS Platform API, the !MgApplicationException does not have enough subclasses to indicate the actual error. Hence more specific exception classes will be added into GIS Platform.
    4040
    4141
    4242== Proposed Solution ==
    4343
    44 The following methods will be added to class MgFdoException to return native error code. Code that creates an MgFdoException should be updated to assign it a native error code it possible
     44The following methods will be added to class !MgFdoException to return native error code. Code that creates an !MgFdoException should be updated to assign it a native error code it possible
    4545
    4646{{{
     
    8787The description of new exception classes above are as follows.
    8888
    89 
     89[[Image(Diagram.JPG, 600)]][[BR]]
    9090
    9191The description of new exception classes above are as follows.[[BR]]
    92 !MgNotConnectedException: Thrown when executing an operation that require feature source connection is connected.[[BR]]
    93 !MgWrongConnectionParamValueException: Thrown when connecting datastore with invalid connection parameters. [[BR]]
    94 !MgInsufficentPrivilegesException: Thrown when connecting a FDO data source without sufficient privileges.[[BR]]
    95 !MgInvalidSQLStatementException: Thrown when executing an invalid SQL statement.[[BR]]
    96 !MgOutOfRangePropertyValueException: Thrown when setting the property value to one which violates constraint !FdoPropertyValueConstraintRange.[[BR]]
    97 !MgNotUniquePropertyValueException: Thrown when setting the property value to one which isn’t unique.[[BR]]
    98 !MgNotInListPropertyValueException: Thrown when setting the property value to one which violates constraint !FdoPropertyValueConstraintList.[[BR]]
    99 !MgSchemaDoesNotExistException: Thrown when the specified schema doesn’t exist.[[BR]]
    100 !MgSchemaAlreadyExistsException: Thrown when creating a schema that already exists.[[BR]]
    101 !MgClassDoesNotExistException: Thrown when the specified class doesn’t exist.[[BR]]
    102 !MgClassAlreadyExistsException: Thrown when creating a class that already exists.[[BR]]
    103 !MgPropertyDoesNotExistException: Thrown when the specified class doesn’t exist.[[BR]]
    104 !MgPropertyAlreadyExistsException: Thrown when creating a class that already exists.[[BR]]
     92    -!MgNotConnectedException: Thrown when executing an operation that require feature source connection is connected.[[BR]]
     93    -!MgWrongConnectionParamValueException: Thrown when connecting datastore with invalid connection parameters. [[BR]]
     94    -!MgInsufficentPrivilegesException: Thrown when connecting a FDO data source without sufficient privileges.[[BR]]
     95    -!MgInvalidSQLStatementException: Thrown when executing an invalid SQL statement.[[BR]]
     96    -!MgOutOfRangePropertyValueException: Thrown when setting the property value to one which violates constraint !FdoPropertyValueConstraintRange.[[BR]]
     97    -!MgNotUniquePropertyValueException: Thrown when setting the property value to one which isn’t unique.[[BR]]
     98    -!MgNotInListPropertyValueException: Thrown when setting the property value to one which violates constraint !FdoPropertyValueConstraintList.[[BR]]
     99    -!MgSchemaDoesNotExistException: Thrown when the specified schema doesn’t exist.[[BR]]
     100    -!MgSchemaAlreadyExistsException: Thrown when creating a schema that already exists.[[BR]]
     101    -!MgClassDoesNotExistException: Thrown when the specified class doesn’t exist.[[BR]]
     102    -!MgClassAlreadyExistsException: Thrown when creating a class that already exists.[[BR]]
     103    -!MgPropertyDoesNotExistException: Thrown when the specified class doesn’t exist.[[BR]]
     104    -!MgPropertyAlreadyExistsException: Thrown when creating a class that already exists.[[BR]]
    105105
    106106