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:

Note

The total length of the message written by this method, including the prefix string, can be no longer than 4096.

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