The following methods will return a status code:
database.execute()
database.beginTransaction()
database.commitTransaction()
database.rollbackTransaction()
cursor.insertRow()
cursor.updateRow()
cursor.deleteRow()
The status codes are summarized in the table:
Code | Meaning |
00 | No error |
01 | Out of memory |
02 | Object was never initialized |
03 | Type conversion error |
04 | Database not registered |
05 | Error reported by database engine |
06 | Message from database engine |
07 | Error from database vendor's library |
08 | Lost connection |
09 | End of fetch |
10 | Invalid use of object |
11 | Column does not exist |
12 | Bounds error - invalid positioning within object |
13 | Unsupported feature |
14 | Null reference parameter |
15 | Database object not found |
16 | Required information missing |
17 | Object cannot support multiple readers |
18 | Object cannot support deletes |
19 | Object cannot support inserts |
20 | Object cannot support updates (1) |
21 | Object cannot support updates (2) |
22 | Object cannot support indices |
23 | Object cannot be dropped |
24 | Incorrect connection supplied |
25 | Object cannot support privileges |
26 | Object cannot support cursors |
27 | Unable to open |
Status codes 5 and 7 are significant. It depends on the database being used as to which is important.
Status code 5 is important for Oracle and ODBC.
Status code 7 is important for Informix and Sybase.
If these values are detected, then the major and minor error codes and messages can be inspected for further help in diagnosing the problems.
Prev | Home | Next |
status | Up | Status line |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |