DB_ENV->err()

#include <db.h>

void
DB_ENV->err(DB_ENV *dbenv, int error, const char *fmt, ...); 

void
DB_ENV->errx(DB_ENV *dbenv, const char *fmt, ...);  

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

The DB->err() and DB_ENV->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 DB_ENV->err() and DB->err() methods will display a explanatory string.

fmt

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

Class

DB_ENV

See Also

Database Environments and Related Methods