# Db.set_errpfx

`

###

    import com.sleepycat.db.*;

    public void set_errpfx(String errpfx);

# Description

Set the prefix string that appears before error messages issued by Berkeley DB.

For Db handles opened inside of Berkeley DB environments, calling the Db.set_errpfx method affects the entire environment and is equivalent to calling the DbEnv.set_errpfx method.

The Db.set_errpfx interface may be used to configure Berkeley DB at any time during the life of the application.

### Class

DbEnv

# See Also

DbEnv.close, DbEnv.open, DbEnv.remove, DbEnv.strerror, DbEnv.get_version_string DbEnv.set_cachesize, DbEnv.set_errcall, DbEnv.set_error_stream, DbEnv.set_errpfx, DbEnv.set_flags, DbEnv.set_mutexlocks, and DbEnv.set_verbose.`

Copyright Sleepycat Software