Berkeley DB
version 4.3.29

com.sleepycat.db
Class MemoryException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bycom.sleepycat.db.DatabaseException
              extended bycom.sleepycat.db.MemoryException
All Implemented Interfaces:
Serializable

public class MemoryException
extends DatabaseException

This exception is thrown when a DatabaseEntry passed to a Database or Cursor method is not large enough to hold a value being returned. This only applies to DatabaseEntry objects configured with the DatabaseEntry.setUserBuffer method. 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 this one.

See Also:
Serialized Form

Method Summary
 DatabaseEntry getDatabaseEntry()
          Returns the DatabaseEntry object with insufficient memory to complete the operation to complete the operation.
 
Methods inherited from class com.sleepycat.db.DatabaseException
getEnvironment, getErrno
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getDatabaseEntry

public DatabaseEntry getDatabaseEntry()
Returns the DatabaseEntry object with insufficient memory to complete the operation to complete the operation.


Berkeley DB
version 4.3.29

Copyright (c) 1996-2004 Sleepycat Software, Inc. - All rights reserved.