|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
com.sleepycat.db.DbException
com.sleepycat.db.DbMemoryException
public class DbMemoryException
This information describes the DbMemoryException class and how it is used by the various Db* classes.
A DbMemoryException is thrown when there is insufficient memory to
complete an operation, and there is the possibility of recovering.
An example is during a Db.get
or
Dbc.get
operation with the Dbt
flags set to Db.DB_DBT_USERMEM
.
In a Java Virtual Machine, there are usually separate heaps for memory allocated by native code and for objects allocated in Java code. If the Java heap is exhausted, the JVM will throw an OutOfMemoryError, so you may see that exception rather than DbMemoryException.
Constructor Summary | |
---|---|
protected |
DbMemoryException(java.lang.String s,
Dbt dbt,
int errno,
DbEnv dbenv)
Constructor for the DbMemoryException object |
Method Summary | |
---|---|
Dbt |
get_dbt()
Deprecated. As of Berkeley DB 4.2, replaced by getDbt() |
Dbt |
getDbt()
The getDbt method returns the Dbt with insufficient memory to complete
the operation, causing the DbMemoryException to be thrown. |
java.lang.String |
toString()
Override of DbException.toString(): the extra verbage that comes from DbEnv.strerror(ENOMEM) is not helpful. |
Methods inherited from class com.sleepycat.db.DbException |
---|
get_errno, getDbEnv, getErrno |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected DbMemoryException(java.lang.String s, Dbt dbt, int errno, DbEnv dbenv)
Method Detail |
---|
public Dbt getDbt()
Dbt
with insufficient memory to complete
the operation, causing the DbMemoryException to be thrown.
Dbt
with insufficient memory to
complete the operation, causing the DbMemoryException to
be thrown.public Dbt get_dbt()
getDbt()
public java.lang.String toString()
toString
in class DbException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |