Release 3.0: additional C++ changes
Prev | Chapter 33. Upgrading Berkeley DB 2.X applications to Berkeley DB 3.0 | Next

## Release 3.0: additional C++ changes

The Db::set_error_model method is gone. The way to change the C++ API to return errors rather than throw exceptions is via a flag on the DbEnv or Db constructor. For example:

    int dberr;
    DbEnv *dbenv = new DbEnv(DB_CXX_NO_EXCEPTIONS);

creates an environment that will never throw exceptions, and method returns should be checked instead.

There are a number of smaller changes to the API that bring the C, C++ and Java APIs much closer in terms of functionality and usage. Please refer to the pages for upgrading C applications for further details.

Prev | Up | Next
Release 3.0: the Db class for C++ and Java | Home | Release 3.0: additional Java changes