com.interface21.dao
Class DataIntegrityViolationException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--com.interface21.core.NestedRuntimeException
                          |
                          +--com.interface21.dao.DataAccessException
                                |
                                +--com.interface21.dao.DataIntegrityViolationException
All Implemented Interfaces:
HasRootCause, java.io.Serializable

public class DataIntegrityViolationException
extends DataAccessException

Exception thrown when an attempt to insert or update data results in violation of an integrity constraint. Note that this is not purely a relational concept; unique primary keys are required by most database types.

Version:
$Id: DataIntegrityViolationException.java,v 1.1.1.1 2003/02/11 08:10:18 johnsonr Exp $
Author:
Rod Johnson
See Also:
Serialized Form

Constructor Summary
DataIntegrityViolationException(java.lang.String s, java.lang.Throwable ex)
          Constructor for DataIntegrityViolationException.
 
Methods inherited from class com.interface21.core.NestedRuntimeException
getMessage, getRootCause, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, printStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DataIntegrityViolationException

public DataIntegrityViolationException(java.lang.String s,
                                       java.lang.Throwable ex)
Constructor for DataIntegrityViolationException.
Parameters:
s - mesg
ex - root cause


Rod Johnson and Spring contributors 2001-2003.