Package com.sleepycat.db
Class MemoryException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.sleepycat.db.DatabaseException
com.sleepycat.db.MemoryException
- All Implemented Interfaces:
Serializable
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:
-
Method Summary
Modifier and TypeMethodDescriptionReturns theDatabaseEntryobject with insufficient memory to complete the operation to complete the operation.toString()Methods inherited from class com.sleepycat.db.DatabaseException
getEnvironment, getErrnoMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Method Details
-
getDatabaseEntry
Returns theDatabaseEntryobject with insufficient memory to complete the operation to complete the operation. -
toString
- Overrides:
toStringin classDatabaseException
-