org.genericdao
Class DuplicateKeyException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.genericdao.RollbackException
org.genericdao.DuplicateKeyException
- All Implemented Interfaces:
- Serializable
public class DuplicateKeyException
- extends RollbackException
The exception thrown by a CRUD method (typically from the create() method)
to signal an attempt to create a new bean in a table that has the same primary key as an
existing bean. (The attempt has failed.)
The DuplicateKeyException this a subclass of RollbackException.
As with RollbackException, the work done by the transaction that was active when this
exception is thrown is rolled back.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
DuplicateKeyException
public DuplicateKeyException(String message)
Copyright © 2012 Jeffrey L. Eppinger. All rights reserved. Permission granted for educational use only.