org.apache.ojb.broker
Class KeyConstraintViolatedException

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

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.
 
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 - 2005 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