This section discusses the
structure, which contains status and other information about
errors, including error codes, classifications, and messages.
NdbError consists of six parts, listed here,
of which one is deprecated:
The error status is described by a value of the
Statustype. See Section 126.96.36.199, “NdbError::Status”, for possible
Statusvalues and how they should be interpreted.
The error classification is described by a value of the
Classificationtype. See Section 188.8.131.52, “NdbError::Classification”, for possible classifications and their interpretation. Additional information is provided in Section 2.4.4, “NDB Error Classifications”.
It is not recommended to write application programs which are dependent on specific error codes. Instead, applications should check error status and classification. More information about errors can also be obtained by checking error messages and (when available) error detail messages. However—like error codes—these error messages and error detail messages are subject to change.
A listing of current error codes, broken down by classification, is provided in Section 2.4.2, “NDB Error Codes: by Type”. This listing is updated with new NDB Cluster releases. You can also check the file
storage/ndb/src/ndbapi/ndberror.cin the NDB Cluster sources.
MySQL Error code: This is the corresponding MySQL Server error code. MySQL error codes are not discussed in this document; please see Server Error Codes and Messages, in the MySQL Manual, for information about these.
Error details: This can often provide additional information (not found in the error message) about an error, specific to the circumstances under which the error is encountered. However, it is not available in all cases.
Where not specified, the error detail message is
This property is deprecated and scheduled for eventual removal. For obtaining error details, you should use the
Specific NDB API error codes, messages, and detail messages are subject to change without notice.
Definition. The NdbError structure contains the following members, whose types are as shown here:
Status status: The error status.
Classification classification: The error type (classification).
int code: The NDB API error code.
int mysql_code: The MySQL error code.
const char* message: The error message.
char* details: The error detail message.Note
detailsis deprecated and scheduled for eventual removal. You should use the
Ndb::getNdbErrorDetail()method instead. (Bug #48851)
See the Description for more information about these members and their types.
NdbError defines the two data types listed