DbEnv::err()

#include <db_cxx.h>

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

DbEnv::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 constructs an error message consisting of the following elements:

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 a explanatory string.

fmt

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

Class

DbEnv

See Also

Database Environments and Related Methods