butler.sql.record
Class DuplicateKeyException
java.lang.Object
java.lang.Throwable
java.lang.Exception
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
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 |
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()
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