Berkeley DB: DbEnv::set_errcall
ee,hash,hashing,transaction,transactions,locking,logging,access method,access me
thods,java,C,C++">
DbEnv::set_errcall
#include <db_cxx.h>
typedef void (*DbEnv::db_errcall_fcn)(const char *, char *);
void DbEnv::set_errcall(db_errcall_fcn);
Description
The DbEnv::set_errcall method is used to replace the mechanism for
reporting error messages to the user. By default, DB writes error
messages using the C library's stderr. To allow alternative styles of
error reporting, set_errcall can be called with a single function pointer
argument. The function must be defined with two arguments; the first will
be the prefix string (set by set_errpfx), the second will be the error
message string. It is up to this function to display the message in an
appropriate manner.
Class
DbEnv
See Also
DbEnv::appinit,
DbEnv::appexit,
DbEnv::version,
DbEnv::get_lg_info,
DbEnv::get_lk_info,
DbEnv::get_mp_info,
DbEnv::get_tx_info,
dbenv_set_data_dir,
DbEnv::set_errcall,
DbEnv::set_errfile,
DbEnv::set_error_model,
DbEnv::set_error_stream,
DbEnv::set_errpfx,
DbEnv::set_lg_max,
DbEnv::set_lk_conflicts,
DbEnv::set_lk_detect,
DbEnv::set_lk_modes,
DbEnv::set_lorder,
DbEnv::set_mp_mmapsize,
DbEnv::set_mp_size,
DbEnv::set_tx_max,
DbEnv::set_tx_recover
and
DbEnv::set_verbose.
|