Database Error Codes
The following table lists errors that are returned from calls to the method PDBGetLastError. Note that some of these “errors” are, in reality, simply status codes and not true errors that are reported after unsuccessful database operations.
|
Constant |
Value |
Description |
|---|---|---|
|
|
0 |
No errors have occurred. |
|
|
-1 |
A memory error occurred. |
|
|
-2 |
The designated index is out of range. |
|
|
-3 |
The parameter specified is not valid. |
|
|
-4 |
An attempt has been made to modify a database that is in read-only mode. |
|
|
-5 |
The previous action could not be performed, and the database is open. |
|
|
-6 |
The database could not be opened. |
|
|
-7 |
Can’t find the desired resource. |
|
|
-8 |
An attempt to attach a record has been made when the database and record reside on different memory cards. |
|
|
-9 |
The database is corrupted. |
|
|
-10 |
The specified record has been deleted. |
|
|
-11 |
The record being acted on is an archived record, and the action requires a non-archived record. |
|
|
-12 |
A record function has been attempted on a resource database. |
|
|
-13 |
There was an attempt to modify a ROM-based database. |
|
|
-14 |
The record being acted on is busy. |
|
|
-15 |
No databases are currently open. |
|
|
-16 |
The specified category ... |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access