Changes between Version 1 and Version 2 of FDORfc37
- Timestamp:
- 06/09/09 19:48:10 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
FDORfc37
v1 v2 9 9 ||RFC Template Version||(1.0)|| 10 10 ||Submission Date|| June 08, 2009 || 11 ||Last Modified|| Leaf Li [[Timestamp]]||11 ||Last Modified|| Leaf Li [[Timestamp]]|| 12 12 ||Author||Leaf Li|| 13 13 ||RFC Status||draft|| … … 30 30 However, it is impossible for FDO exception classes to cover all exception type. For some FDO data sources such as Oracle and SQL Server, they already return their native error code to FDO provider when encountering errors. If FDO can return the native error code to users, users may be able to handle it properly. For exmaple, 31 31 32 {{{ 33 try 34 { 35 . . . . . . 36 } 37 catch (FdoException* e) 38 { 39 FdoInt64 errorCode = e->GetNativeErrorCode(); 40 e->Release(); 41 // Take some measures according to native error code 42 . . . . . . 43 } 44 }}} 45 32 46 == Proposed Solution == 33 47