head 1.2; access; symbols RPM_4_2_1:1.1.1.5 RPM_4_2:1.1.1.5 RPM_4_1_1:1.1.1.5 RPM_4_1:1.1.1.4 RPM_4_0_5:1.1.1.3 RPM_4_0_4:1.1.1.2 RPM_4_0_3:1.1.1.1 RPM:1.1.1; locks; strict; comment @# @; 1.2 date 2008.01.02.09.53.57; author rse; state dead; branches; next 1.1; commitid z4cpSiAhOCXk5PLs; 1.1 date 2001.07.23.20.45.37; author rse; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2001.07.23.20.45.37; author rse; state Exp; branches; next 1.1.1.2; 1.1.1.2 date 2002.01.08.00.30.10; author rse; state Exp; branches; next 1.1.1.3; 1.1.1.3 date 2003.01.18.13.49.00; author rse; state Exp; branches; next 1.1.1.4; 1.1.1.4 date 2001.12.06.00.08.10; author rse; state Exp; branches; next 1.1.1.5; 1.1.1.5 date 2003.01.18.14.04.58; author rse; state Exp; branches; next ; desc @@ 1.2 log @remove the ancient RPM 4.2.1 source tree copy @ text @
DbEnv.set_errcall |
![]() ![]() |
import com.sleepycat.db.*;public interface DbErrcall { public abstract void errcall(String errpfx, String msg); } public class DbEnv { public void set_errcall(DbErrcall errcall); ... }
The DbEnv.set_errcall and Db.set_errcall methods are used to enhance the mechanism for reporting error messages to the application. The DbEnv.set_errcall and Db.set_errcall methods must be called with a single object argument. The object's class must implement the DbErrcall interface. In some cases, when an error occurs, Berkeley DB will invoke the object's errcall() method with two arguments; the first is the prefix string (as previously set by Db.set_errpfx or DbEnv.set_errpfx), the second will be an error message string. It is up to this method to display the message in an appropriate manner.
Alternatively, you can use the DbEnv.set_error_stream method to display the additional information via an output stream. You should not mix these approaches.
This error-logging enhancement does not slow performance or significantly increase application size, and may be run during normal operation as well as during application debugging.
The DbEnv.set_errcall interface may be used to configure Berkeley DB at any time during the life of the application.
![]() ![]() |
Copyright Sleepycat Software
@
1.1
log
@Initial revision
@
text
@d1 1
a1 1
@
1.1.1.1
log
@Import: RPM 4.0.3
@
text
@@
1.1.1.2
log
@Import: RPM 4.0.4
@
text
@d1 1
a1 1
d17 1
a17 1
d26 1
a26 1
public abstract void errcall(String errpfx, String msg);
d30 2
a31 2
public void set_errcall(DbErrcall errcall);
...
d71 3
d76 1
a79 1
DbEnv.set_timeout,
d84 1
a84 1
@
1.1.1.3
log
@Import: RPM 4.0.5
@
text
@d1 2
a2 2
a3 1
d49 3
a51 3
Alternatively, you can use the DbEnv.set_error_stream and Db.set_error_stream methods to display the additional information via an output stream. You should not mix these approaches. d55 2 a56 2
The DbEnv.set_errcall interface may be called at any time during the life of the application. d58 1 a58 1 DbEnv d60 19 a78 1 Database Environments and Related Methods @ 1.1.1.4 log @Import: RPM 4.1 @ text @d1 2 a2 2 d4 1 d50 3 a52 3
Alternatively, you can use the DbEnv.set_error_stream method to display the additional information via an output stream. You should not mix these approaches. d56 2 a57 2
The DbEnv.set_errcall interface may be used to configure Berkeley DB at any time during the life of the application. d59 1 a59 1 DbEnv d61 1 a61 19 DbEnv.close, DbEnv.get_version_string, DbEnv.open, DbEnv.remove, DbEnv.set_cachesize, DbEnv.set_data_dir, DbEnv.set_errcall, DbEnv.set_error_stream, DbEnv.set_errpfx, DbEnv.set_feedback, DbEnv.set_flags, DbEnv.set_recovery_init, DbEnv.set_rpc_server, DbEnv.set_shm_key, DbEnv.set_tas_spins, DbEnv.set_tmp_dir, DbEnv.set_timeout, DbEnv.set_verbose, and DbEnv.strerror. @ 1.1.1.5 log @Import: RPM 4.1.1 @ text @d1 2 a2 2 a3 1 d49 3 a51 3
Alternatively, you can use the DbEnv.set_error_stream and Db.set_error_stream methods to display the additional information via an output stream. You should not mix these approaches. d55 2 a56 2
The DbEnv.set_errcall interface may be called at any time during the life of the application. d58 1 a58 1 DbEnv d60 19 a78 1 Database Environments and Related Methods @