# DbEnv |

`

###

    #include <db_cxx.h>

    class DbEnv {
    public:
    	DbEnv(u_int32 flags);
    	~DbEnv();
    	...
    };

# Description

This manual page describes the specific details of the DbEnv class, which is the center of the Berkeley DB environment.

The following flags value may be specified:

DB_CXX_NO_EXCEPTIONS
  The Berkeley DB C++ API supports two different error behaviors. By default, whenever an error occurs an exception is thrown that encapsulates the error information. This generally allows for cleaner logic for transaction processing, as a try block can surround a single transaction. However, if DB_CXX_NO_EXCEPTIONS is specified, exceptions are not thrown, instead each individual function returns an error code.

### Class

DbEnv

# See Also

DbEnv::close, DbEnv::open, DbEnv::remove, DbEnv::err, DbEnv::strerror, DbEnv::version, DbEnv::set_cachesize, DbEnv::set_errcall, DbEnv::set_errfile, DbEnv::set_error_stream, DbEnv::set_errpfx, DbEnv::set_paniccall, DbEnv::set_region_init and DbEnv::set_verbose.`

Copyright Sleepycat Software