void DB->set_errpfx(DB *db, const char *errpfx);
Set the prefix string that appears before error messages issued by Berkeley DB.
The DB->set_errpfx and DB_ENV->set_errpfx functions do not copy the memory to which the errpfx argument refers; rather, they maintain a reference to it. Although this allows applications to modify the error message prefix at any time (without repeatedly calling the interfaces), it means the memory must be maintained until the handle is closed.
For DB handles opened inside of Berkeley DB environments, calling the DB->set_errpfx function affects the entire environment and is equivalent to calling the DB_ENV->set_errpfx function.
The DB->set_errpfx interface may be used to configure Berkeley DB at any time during the life of the application.
Copyright Sleepycat Software