2I.Berkeley DB: DbEnv::set_errcall[P

DbEnv::set_errcall





#include <db_cxx.h>

<typedef void (*DbEnv::db_errcall_fcn)(const char *, char *);(void DbEnv::set_errcall(db_errcall_fcn);





Description

BThe DbEnv::set_errcall method is used to replace the mechanism forBreporting error messages to the user. By default, DB writes errorFmessages using the C library's stderr. To allow alternative styles ofIerror reporting, set_errcall can be called with a single function pointerJargument. The function must be defined with two arguments; the first willFbe the prefix string (set by set_errpfx), the second will be the errorGmessage string. It is up to this function to display the message in anappropriate manner.



Class

2DbEnv



See Also

>DbEnv::appinit,>DbEnv::appexit,>DbEnv::version,FDbEnv::get_lg_info,FDbEnv::get_lk_info,FDbEnv::get_mp_info,FDbEnv::get_tx_info,dbenv_set_data_dir,DbEnv::set_errcall,FDbEnv::set_errfile,NDbEnv::set_error_model,PDbEnv::set_error_stream,DDbEnv::set_errpfx,DDbEnv::set_lg_max,PDbEnv::set_lk_conflicts,JDbEnv::set_lk_detect,HDbEnv::set_lk_modes,DDbEnv::set_lorder,NDbEnv::set_mp_mmapsize,FDbEnv::set_mp_size,DDbEnv::set_tx_max,KDbEnv::set_tx_recoverandFDbEnv::set_verbose.
ÿÿ