Berkeley DB: DbEnv.set_errcall
ee,hash,hashing,transaction,transactions,locking,logging,access method,access me
thods,java,C,C++">
DbEnv.set_errcall
import com.sleepycat.db.*;
public interface DbErrcall
{
public abstract void errcall(String prefix, String buffer);
}
public class DbEnv
{
public void set_errcall(DbErrcall errcall);
...
}
Description
The DbEnv.set_errcall method can be used to replace the mechanism for
reporting error messages to the user. By default, DB native methods write
error messages using the C library's stderr, which are often not visible
in the Java environment. To allow alternative styles of error reporting,
set_errcall can be called with a single object argument. The object's
class must implement the DbErrcall interface. When an error occurs, the
object's errcall() method is invoked with two arguments; the first is the
prefix string (set by set_errpfx), the second will be the error message
string. It is up to this method 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_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,
and
DbEnv.set_verbose.
|