System.Data.SQLite
Check-in [4163cb2680]
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Refinements to error code / HRESULT mappings.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 4163cb2680a31085d630246a804029d3e5579081
User & Date: mistachkin 2018-02-27 14:08:46
Context
2018-02-27
15:53
Further enhancement to the 'data-1.95' test. check-in: 48783a7499 user: mistachkin tags: trunk
14:08
Refinements to error code / HRESULT mappings. check-in: 4163cb2680 user: mistachkin tags: trunk
00:44
Another correction to the 'data-1.95' test: make sure it still works properly when there are pre-registered functions. check-in: b2ebc6c99d user: mistachkin tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to System.Data.SQLite/SQLiteException.cs.

   240    240           {
   241    241               case SQLiteErrorCode.Ok:
   242    242                   {
   243    243                       return 0; /* S_OK */
   244    244                   }
   245    245               case SQLiteErrorCode.Error:
   246    246                   {
   247         -                    return MakeHResult(0x0057, false); /* E_INVALIDARG */
          247  +                    return MakeHResult(0x001F, false); /* ERROR_GEN_FAILURE */
   248    248                   }
   249    249               case SQLiteErrorCode.Internal:
   250    250                   {
   251    251                       return unchecked((int)0x8000FFFF); /* E_UNEXPECTED */
   252    252                   }
   253    253               case SQLiteErrorCode.Perm:
   254    254                   {
   255         -                    return MakeHResult(0x0005, false); /* E_ACCESSDENIED */
          255  +                    return MakeHResult(0x0005, false); /* ERROR_ACCESS_DENIED */
   256    256                   }
   257    257               case SQLiteErrorCode.Abort:
   258    258                   {
   259    259                       return unchecked((int)0x80004004); /* E_ABORT */
   260    260                   }
   261    261               case SQLiteErrorCode.Busy:
   262    262                   {
................................................................................
   264    264                   }
   265    265               case SQLiteErrorCode.Locked:
   266    266                   {
   267    267                       return MakeHResult(0x00D4, false); /* ERROR_LOCKED */
   268    268                   }
   269    269               case SQLiteErrorCode.NoMem:
   270    270                   {
   271         -                    return MakeHResult(0x000E, false); /* E_OUTOFMEMORY */
          271  +                    return MakeHResult(0x000E, false); /* ERROR_OUTOFMEMORY */
   272    272                   }
   273    273               case SQLiteErrorCode.ReadOnly:
   274    274                   {
   275    275                       return MakeHResult(0x1779, false); /* ERROR_FILE_READ_ONLY */
   276    276                   }
   277    277               case SQLiteErrorCode.Interrupt:
   278    278                   {