#include <NdbError.hpp>
A NdbError consists of five parts:
Error status is usually used for programming against errors. If more detailed error control is needed, it is possible to use the error classification.
It is not recommended to write application programs dependent on specific error codes.
The error messages and error details may change without notice.
For example of use, see ndbapi_retries.cpp.
Type of error
enum NdbError::Status |
Status categorizes error codes into status values reflecting what the application should do when encountering errors
Success |
The error code indicate success (Includes classification: NdbError::NoError) |
TemporaryError |
The error code indicates a temporary error. The application should typically retry. (Includes classifications: NdbError::InsufficientSpace, NdbError::TemporaryResourceError, NdbError::NodeRecoveryError, NdbError::OverloadError, NdbError::NodeShutdown and NdbError::TimeoutExpired.) |
PermanentError |
The error code indicates a permanent error. (Includes classificatons: NdbError::PermanentError, NdbError::ApplicationError, NdbError::NoDataFound, NdbError::ConstraintViolation, NdbError::SchemaError, NdbError::UserDefinedError, NdbError::InternalError, and, NdbError::FunctionNotImplemented.) |
UnknownResult |
The result/status is unknown. (Includes classifications: NdbError::UnknownResultError, and NdbError::UnknownErrorCode.) |
Error type
int NdbError::code |
Error code
char* NdbError::details |
The detailed description. This is extra information regarding the error which is not included in the error message.
const char* NdbError::message |
Error message
Error status.