com.sleepycat.je
Class SecondaryConstraintException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.sleepycat.je.DatabaseException
                  extended by com.sleepycat.je.OperationFailureException
                      extended by com.sleepycat.je.SecondaryReferenceException
                          extended by com.sleepycat.je.SecondaryConstraintException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
DeleteConstraintException, ForeignConstraintException, UniqueConstraintException

public abstract class SecondaryConstraintException
extends SecondaryReferenceException

Base class for exceptions thrown when a write operation fails because of a secondary constraint. See subclasses for more information.

The Transaction handle is invalidated as a result of this exception.

Since:
4.0
See Also:
Special considerations for using Secondary Databases with and without Transactions, Serialized Form

Constructor Summary
SecondaryConstraintException(Locker locker, String message, String secDbName, DatabaseEntry secKey, DatabaseEntry priKey)
          For internal use only.
SecondaryConstraintException(String message, SecondaryReferenceException cause)
          For internal use only.
 
Method Summary
 
Methods inherited from class com.sleepycat.je.SecondaryReferenceException
getPrimaryKey, getSecondaryDatabaseName, getSecondaryKey
 
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

SecondaryConstraintException

public SecondaryConstraintException(Locker locker,
                                    String message,
                                    String secDbName,
                                    DatabaseEntry secKey,
                                    DatabaseEntry priKey)
For internal use only.


SecondaryConstraintException

SecondaryConstraintException(String message,
                             SecondaryReferenceException cause)
For internal use only.



Copyright (c) 2004-2012 Oracle. All rights reserved.