|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.sleepycat.je.DatabaseException
com.sleepycat.je.OperationFailureException
com.sleepycat.je.SecondaryReferenceException
public abstract class SecondaryReferenceException
Base class for exceptions thrown when a read or write operation fails because of a secondary constraint or integrity problem. Provides accessors for getting further information about the database and keys involved in the failure. See subclasses for more information.
The Transaction
handle is invalidated as a result of this
exception.
Constructor Summary | |
---|---|
SecondaryReferenceException(Locker locker,
String message,
String secDbName,
DatabaseEntry secKey,
DatabaseEntry priKey)
For internal use only. |
|
SecondaryReferenceException(String message,
SecondaryReferenceException cause)
For internal use only. |
Method Summary | |
---|---|
DatabaseEntry |
getPrimaryKey()
Returns the primary key being access during the failure. |
String |
getSecondaryDatabaseName()
Returns the name of the secondary database being access during the failure. |
DatabaseEntry |
getSecondaryKey()
Returns the secondary key being access during the failure. |
Methods inherited from class com.sleepycat.je.OperationFailureException |
---|
wrapSelf |
Methods inherited from class com.sleepycat.je.DatabaseException |
---|
addErrorMessage, getMessage, getVersionHeader |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SecondaryReferenceException(Locker locker, String message, String secDbName, DatabaseEntry secKey, DatabaseEntry priKey)
SecondaryReferenceException(String message, SecondaryReferenceException cause)
Method Detail |
---|
public String getSecondaryDatabaseName()
public DatabaseEntry getSecondaryKey()
public DatabaseEntry getPrimaryKey()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |