net.sourceforge.hivetranse.exception
Class DataIntegrityException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.apache.hivemind.ApplicationRuntimeException
                  extended by net.sourceforge.hivetranse.exception.DataAccessException
                      extended by net.sourceforge.hivetranse.exception.DataIntegrityException
All Implemented Interfaces:
java.io.Serializable, org.apache.hivemind.Locatable
Direct Known Subclasses:
DuplicateKeyException, ReferentialIntegrityException

public class DataIntegrityException
extends DataAccessException

Exception class thrown when a statement (insert, update or delete) could not be executed because it would have caused the violation of a datastore constraint (any kind of constraint such as null not allowed, string too long, referred row does not exist, duplicate key...)

This exception has various subclasses specific to given constraints.

Author:
Jean-Francois Poilpret
See Also:
Serialized Form

Constructor Summary
DataIntegrityException(java.lang.String message, java.lang.Throwable rootCause)
           
 
Method Summary
 
Methods inherited from class org.apache.hivemind.ApplicationRuntimeException
getCause, getComponent, getLocation, getRootCause, toString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, 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

DataIntegrityException

public DataIntegrityException(java.lang.String message,
                              java.lang.Throwable rootCause)