butler.sql.record
Class DuplicateKeyException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by butler.sql.record.DuplicateKeyException
All Implemented Interfaces:
java.io.Serializable

public class DuplicateKeyException
extends java.lang.Exception

Exception when (primary) key value already exists.

Author:
Fredrik Bertilsson
See Also:
Serialized Form

Constructor Summary
DuplicateKeyException()
           
DuplicateKeyException(Record rec)
           
DuplicateKeyException(Table tab, butler.util.Tuple key)
           
 
Method Summary
 java.lang.String getMessage()
           
 void setKey(butler.util.Tuple key)
           
 void setTable(Table tab)
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, 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

DuplicateKeyException

public DuplicateKeyException(Table tab,
                             butler.util.Tuple key)
                      throws java.lang.Exception
Throws:
java.lang.Exception

DuplicateKeyException

public DuplicateKeyException(Record rec)
                      throws java.lang.Exception
Throws:
java.lang.Exception

DuplicateKeyException

public DuplicateKeyException()
Method Detail

setTable

public void setTable(Table tab)
              throws java.lang.Exception
Throws:
java.lang.Exception

setKey

public void setKey(butler.util.Tuple key)

getMessage

public java.lang.String getMessage()
Overrides:
getMessage in class java.lang.Throwable