Expresso 5-6

com.jcorporate.expresso.core.dataobjects
Class DuplicateKeyException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bycom.jcorporate.expresso.kernel.exception.ChainedException
              extended bycom.jcorporate.expresso.core.db.DBException
                  extended bycom.jcorporate.expresso.core.dataobjects.DataException
                      extended bycom.jcorporate.expresso.core.dataobjects.DuplicateKeyException
All Implemented Interfaces:
Serializable

public class DuplicateKeyException
extends DataException

Exception that gets thrown when there's a duplicate key in the table.

Author:
Michael Rimov
See Also:
Serialized Form

Constructor Summary
DuplicateKeyException()
          Default Constructor
DuplicateKeyException(String s)
          Constructs a DataException using a message
DuplicateKeyException(String s, String newDatasourceMessage)
           
DuplicateKeyException(String s, Throwable t)
          Constructs a DataException using a message
DuplicateKeyException(Throwable t)
          Constructs a DataException embedding an Exception within it.
 
Methods inherited from class com.jcorporate.expresso.core.db.DBException
getDBMessage, getMessage
 
Methods inherited from class com.jcorporate.expresso.kernel.exception.ChainedException
getErrorNumber, getNested, omitPackages, printStackTrace, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DuplicateKeyException

public DuplicateKeyException()
Default Constructor


DuplicateKeyException

public DuplicateKeyException(String s)
Constructs a DataException using a message

Parameters:
s - The message String

DuplicateKeyException

public DuplicateKeyException(String s,
                             String newDatasourceMessage)
Parameters:
s - The message String
newDatasourceMessage - The message retrieved from the JDBC driver

DuplicateKeyException

public DuplicateKeyException(String s,
                             Throwable t)
Constructs a DataException using a message

Parameters:
s - The message String
t - java.lang.Throwable, presumably an exception you've already caught in another block of code.

DuplicateKeyException

public DuplicateKeyException(Throwable t)
Constructs a DataException embedding an Exception within it.

Parameters:
t - java.lang.Throwable, presumably an exception you've already caught in another block of code.

Expresso 5-6

Please see www.jcorporate.com for information about new Expresso releases.