public class ItemModifiedException extends PermissionDeniedException
Modifier and Type | Field and Description |
---|---|
private static Pattern |
FIND_WHAT
A pattern to extract the
Xxxx and id parts
from a string containing [net.sf.basedb.core.data.XxxxData#id] . |
private static long |
serialVersionUID |
Constructor and Description |
---|
ItemModifiedException(StaleStateException ex)
Create a new
ItemModifiedException trying to find the item
information from the Hibernate exception. |
ItemModifiedException(String what)
Creates a new
ItemModifiedException . |
Modifier and Type | Method and Description |
---|---|
private static String |
findWhat(StaleStateException ex) |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
private static final long serialVersionUID
private static final Pattern FIND_WHAT
Xxxx
and id
parts
from a string containing [net.sf.basedb.core.data.XxxxData#id]
.public ItemModifiedException(String what)
ItemModifiedException
. The error
message produced will look like:
The item User[id=325] was modified by another transaction.
what
- A description of what was modified, for
example User[Id=325]public ItemModifiedException(StaleStateException ex)
ItemModifiedException
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]
.ex
- Exception generated by Hibernate.private static String findWhat(StaleStateException ex)