org.apache.ojb.broker
Class KeyConstraintViolatedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.apache.commons.lang.exception.NestableRuntimeException
                  extended by org.apache.ojb.broker.OJBRuntimeException
                      extended by org.apache.ojb.broker.PersistenceBrokerException
                          extended by org.apache.ojb.broker.PersistenceBrokerSQLException
                              extended by org.apache.ojb.broker.KeyConstraintViolatedException
All Implemented Interfaces:
java.io.Serializable, org.apache.commons.lang.exception.Nestable

public class KeyConstraintViolatedException
extends PersistenceBrokerSQLException

Exception indicate an SQL key contraint violation.

Version:
$Id: KeyConstraintViolatedException.java 365242 2005-12-22 21:15:36Z tomdz $
Author:
Matthew Baird
See Also:
Serialized Form

Constructor Summary
KeyConstraintViolatedException()
          Creates a new exception instance.
KeyConstraintViolatedException(java.sql.SQLException base)
          Creates a new exception instance.
KeyConstraintViolatedException(java.lang.String msg)
          Creates a new exception instance.
KeyConstraintViolatedException(java.lang.String msg, java.sql.SQLException base)
          Creates a new exception instance.
 
Method Summary
 
Methods inherited from class org.apache.ojb.broker.PersistenceBrokerSQLException
getSQLState
 
Methods inherited from class org.apache.ojb.broker.PersistenceBrokerException
getSourceException
 
Methods inherited from class org.apache.commons.lang.exception.NestableRuntimeException
getCause, getMessage, getMessage, getMessages, getThrowable, getThrowableCount, getThrowables, indexOfThrowable, indexOfThrowable, printPartialStackTrace, printStackTrace, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

KeyConstraintViolatedException

public KeyConstraintViolatedException()
Creates a new exception instance.


KeyConstraintViolatedException

public KeyConstraintViolatedException(java.sql.SQLException base)
Creates a new exception instance.

Parameters:
base - The wrapped exception

KeyConstraintViolatedException

public KeyConstraintViolatedException(java.lang.String msg)
Creates a new exception instance.

Parameters:
msg - The exception message

KeyConstraintViolatedException

public KeyConstraintViolatedException(java.lang.String msg,
                                      java.sql.SQLException base)
Creates a new exception instance.

Parameters:
msg - The exception message
base - The wrapped exception


(C) 2002 - 2006 Apache Software Foundation
All rights reserved. Published under the Apache License 2.0.
http://db.apache.org/ojb
Version: 1.0.4, 2005-12-30