|
Functions | |
| RDM_RETCODE | rdm_dbSetErrorHandler (RDM_DB db, RDM_ERROR_FCN errorFunction, void *userData) |
| Replace default error reporting with a custom function. More... | |
Error handling API for a database. All the functions here are located in RDM DB Engine Library. Linker option:
-lrdmrdm | RDM_RETCODE rdm_dbSetErrorHandler | ( | RDM_DB | db, |
| RDM_ERROR_FCN | errorFunction, | ||
| void * | userData | ||
| ) |
#include <rdmdbapi.h>
Replace default error reporting with a custom function.
This function accepts a pointer to a function that will be called when RDM detects an error. The provided function supersedes the internal errorFunction function. The error reporting function must be a void function with the correct prototype, as shown below.
In the function prototype
| sOKAY | Normal, successful return. |