head 1.4; access; symbols RPM_4_2_1:1.1.1.1 RPM_4_2:1.1.1.1 RPM_4_1_1:1.1.1.1 RPM_4_0_5:1.1.1.1 RPM:1.1.1; locks; strict; comment @# @; 1.4 date 2008.01.02.09.53.57; author rse; state dead; branches; next 1.3; commitid z4cpSiAhOCXk5PLs; 1.3 date 2003.08.24.12.43.13; author rse; state Exp; branches; next 1.2; 1.2 date 2003.08.24.12.33.48; author rse; state dead; branches; next 1.1; 1.1 date 2002.09.19.20.34.05; author rse; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2002.09.19.20.34.05; author rse; state Exp; branches; next ; desc @@ 1.4 log @remove the ancient RPM 4.2.1 source tree copy @ text @
DbEnv.err |
![]() ![]() |
import com.sleepycat.db.*;public void err(int errcode, String message)
public void errx(String message)
The DbEnv.err, DbEnv.errx, Db.err and Db.errx methods provide error-messaging functionality for applications written using the Berkeley DB library.
The DbEnv.err method constructs an error message consisting of the following elements:
- An optional prefix string
- If no error callback method has been set using the DbEnv.set_errcall method, any prefix string specified using the DbEnv.set_errpfx method, followed by two separating characters: a colon and a <space> character.
- The supplied message string message.
- A separator
- Two separating characters: a colon and a <space> character.
- A standard error string
- The standard system or Berkeley DB library error string associated with the error value, as returned by the DbEnv.strerror method.
This constructed error message is then handled as follows:
If an error callback method has been set (see Db.set_errcall and DbEnv.set_errcall), that method is called with two arguments: any prefix string specified (see Db.set_errpfx and DbEnv.set_errpfx) and the error message.
If an OutputStream has been set (see DbEnv.set_error_stream and Db.set_error_stream), the error message is written to that stream.
If none of these output options has been configured, the error message is written to System.err, the standard error output stream.
The DbEnv.errx and Db.errx methods perform identically to the DbEnv.err and Db.err methods, except that they do not append the final separator characters and standard error string to the error message.
![]() ![]() |
Copyright Sleepycat Software @ 1.3 log @Resolve: RPM 4.1 -> RPM 4.1.1 @ text @@ 1.2 log @Resolve: RPM 4.0.5 -> RPM 4.1 @ text @@ 1.1 log @Initial revision @ text @@ 1.1.1.1 log @Import: RPM 4.0.5 @ text @@