Library Version 18.1.40

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

## 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
Db class for C++ and Java | Home | additional Java changes