head 1.2; access; symbols RPM_4_2_1:1.1.1.5 RPM_4_2:1.1.1.5 RPM_4_1_1:1.1.1.5 RPM_4_1:1.1.1.4 RPM_4_0_5:1.1.1.3 RPM_4_0_4:1.1.1.2 RPM_4_0_3:1.1.1.1 RPM:1.1.1; locks; strict; comment @# @; 1.2 date 2008.01.02.09.53.59; author rse; state dead; branches; next 1.1; commitid z4cpSiAhOCXk5PLs; 1.1 date 2001.07.23.20.45.37; author rse; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2001.07.23.20.45.37; author rse; state Exp; branches; next 1.1.1.2; 1.1.1.2 date 2002.01.08.00.30.10; author rse; state Exp; branches; next 1.1.1.3; 1.1.1.3 date 2003.01.18.13.49.00; author rse; state Exp; branches; next 1.1.1.4; 1.1.1.4 date 2001.10.15.03.47.33; author rse; state Exp; branches; next 1.1.1.5; 1.1.1.5 date 2003.01.18.14.04.58; author rse; state Exp; branches; next ; desc @@ 1.2 log @remove the ancient RPM 4.2.1 source tree copy @ text @ Berkeley DB: DbException

DbException

APIRef

import com.sleepycat.db.*;

public class DbException extends Exception { ... }

Description

This manual page describes the DbException class and how it is used by the various Berkeley DB classes.

Most methods in the Berkeley DB classes throw an exception when an error occurs. A DbException object contains an informational string and an errno. The errno can be obtained using DbException.get_errno. Since DbException inherits from the java.Exception, the string portion is available using toString().

Some methods may return non-zero values without issuing an exception. This occurs in situations that are not normally considered an error, but when some informational status is returned. For example, Db.get returns DB_NOTFOUND when a requested key does not appear in the database.

Class

DbException

See Also

DbException.get_errno, DbDeadlockException, DbMemoryException, and DbRunRecoveryException.

APIRef

Copyright Sleepycat Software @ 1.1 log @Initial revision @ text @d1 1 a1 1 @ 1.1.1.1 log @Import: RPM 4.0.3 @ text @@ 1.1.1.2 log @Import: RPM 4.0.4 @ text @d1 1 a1 1 d17 1 a17 1 APIRef d48 1 a48 1 APIRef @ 1.1.1.3 log @Import: RPM 4.0.5 @ text @d1 2 a2 2 a3 1 d24 1 a24 5 public class DbException extends Exception { public int get_errno(); public DbException(String s); public DbException(String s, int errno); } d27 2 a28 2

This manual page describes the DbException class and how it is used by the various Berkeley DB classes. d31 2 a32 2 errno can be obtained using DbException.get_errno. Since DbException inherits from java.lang.Exception, the string portion is available using d38 8 @ 1.1.1.4 log @Import: RPM 4.1 @ text @d1 2 a2 2 d4 1 d25 5 a29 1 public class DbException extends Exception { ... } d32 2 a33 2

This manual page describes the DbException class and how it is used by the various Berkeley DB classes. d36 2 a37 2 errno can be obtained using DbException.get_errno. Since DbException inherits from the java.Exception, the string portion is available using a42 8

Class

DbException

See Also

DbException.get_errno, DbDeadlockException, DbMemoryException, and DbRunRecoveryException. @ 1.1.1.5 log @Import: RPM 4.1.1 @ text @d1 2 a2 2 a3 1 d24 1 a24 5 public class DbException extends Exception { public int get_errno(); public DbException(String s); public DbException(String s, int errno); } d27 2 a28 2

This manual page describes the DbException class and how it is used by the various Berkeley DB classes. d31 2 a32 2 errno can be obtained using DbException.get_errno. Since DbException inherits from java.lang.Exception, the string portion is available using d38 8 @