Db::err()

#include <db_cxx.h>

Db::err(int error, const char *fmt, ...);

Db::errx(const char *fmt, ...);

The DbEnv::err(), DbEnv::errx(), Db::err() and Db::errx() methods provide error-messaging functionality for applications written using the Berkeley DB library.

The Db::err() and DbEnv::err() methods construct an error message consisting of the following elements:

The Db::errx() and DbEnv::errx() methods are the same as the Db::err() and DbEnv::err() methods, except they do not append the final separator characters and standard error string to the error message.

This constructed error message is then handled as follows:

Parameters

error

The error parameter is the error value for which the DbEnv::err() and Db::err() methods will display an explanatory string.

fmt

The fmt parameter is an optional printf-style message to display.

Class

Db

See Also

Database and Related Methods