Package net.sf.basedb.core
Class ItemAlreadyExistsException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
net.sf.basedb.core.BaseException
net.sf.basedb.core.InvalidDataException
net.sf.basedb.core.ItemAlreadyExistsException
- All Implemented Interfaces:
Serializable
This exception is thrown when trying to save an object
and another object with the same ID already exists.
- Version:
- 2.0
- Author:
- Nicklas
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionCreates a newItemAlreadyExistsException
. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
ItemAlreadyExistsException
Creates a newItemAlreadyExistsException
. The error message produced will look like:Item already exists: User[Login=peter]
- Parameters:
what
- A description of what already exists, for example User[Login=peter]
-