org.springframework.dao
Class DataIntegrityViolationException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--org.springframework.core.NestedRuntimeException
                          |
                          +--org.springframework.dao.DataAccessException
                                |
                                +--org.springframework.dao.DataIntegrityViolationException

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.

Author:
Rod Johnson
Version: $Id: DataIntegrityViolationException.java,v 1.2 2003/11/02 12:53:06 johnsonr Exp $

Constructor Summary
DataIntegrityViolationException(String msg, Throwable ex)
          Constructor for DataIntegrityViolationException.

Methods inherited from class org.springframework.core.NestedRuntimeException
getCause, getMessage, printStackTrace, printStackTrace

Methods inherited from class java.lang.Throwable
printStackTrace, getStackTrace, setStackTrace, getLocalizedMessage, toString, fillInStackTrace, initCause

Methods inherited from class java.lang.Object
hashCode, notify, notifyAll, wait, wait, wait, getClass, equals

Constructor Detail

DataIntegrityViolationException

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