org.midao.jdbc.spring.exception
Class DataIntegrityViolationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.sql.SQLException
              extended by org.midao.jdbc.core.exception.MidaoSQLException
                  extended by org.midao.jdbc.spring.exception.DataIntegrityViolationException
All Implemented Interfaces:
java.io.Serializable, java.lang.Iterable<java.lang.Throwable>

public class DataIntegrityViolationException
extends MidaoSQLException

Exception is 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.

Above description was taken from Spring JDBC documentation

See Also:
Serialized Form

Constructor Summary
DataIntegrityViolationException(java.lang.String reason, java.lang.String SQLState, int vendorCode)
          Creates new DataIntegrityViolationException instance
 
Method Summary
 
Methods inherited from class java.sql.SQLException
getErrorCode, getNextException, getSQLState, iterator, setNextException
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, 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

DataIntegrityViolationException

public DataIntegrityViolationException(java.lang.String reason,
                                       java.lang.String SQLState,
                                       int vendorCode)
Creates new DataIntegrityViolationException instance

Parameters:
reason - a description of the exception
SQLState - an XOPEN or SQL:2003 code identifying the exception
vendorCode - a database vendor-specific exception code


Copyright © 2013. All Rights Reserved.