Package net.sf.basedb.core
Class ItemModifiedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
net.sf.basedb.core.BaseException
net.sf.basedb.core.PermissionDeniedException
net.sf.basedb.core.ItemModifiedException
- All Implemented Interfaces:
Serializable
This exception is thrown when trying to save an item to the database
that has been updated (or deleted) by another process in the meantime.
- Version:
- 2.0
- Author:
- Nicklas
- See Also:
- Last modified
- $Date: 2009-04-06 14:52:39 +0200 (må, 06 apr 2009) $
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final Pattern
A pattern to extract theXxxx
andid
parts from a string containing[net.sf.basedb.core.data.XxxxData#id]
.private static final long
-
Constructor Summary
ConstructorDescriptionItemModifiedException
(String what) Creates a newItemModifiedException
.Create a newItemModifiedException
trying to find the item information from the Hibernate exception. -
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:
-
FIND_WHAT
A pattern to extract theXxxx
andid
parts from a string containing[net.sf.basedb.core.data.XxxxData#id]
.
-
-
Constructor Details
-
ItemModifiedException
Creates a newItemModifiedException
. The error message produced will look like:The item User[id=325] was modified by another transaction.
- Parameters:
what
- A description of what was modified, for example User[Id=325]
-
ItemModifiedException
Create a newItemModifiedException
trying to find the item information from the Hibernate exception. Normally the item is specified in the message like:[net.sf.basedb.core.data.XxxxData#id]
.- Parameters:
ex
- Exception generated by Hibernate.
-
-
Method Details
-
findWhat
-