public class ItemModifiedException extends PermissionDeniedException
Modifier and Type | Field and Description |
---|---|
private static java.util.regex.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(java.lang.String what)
Creates a new
ItemModifiedException . |
Modifier and Type | Method and Description |
---|---|
private static java.lang.String |
findWhat(StaleStateException ex) |
private static final long serialVersionUID
private static final java.util.regex.Pattern FIND_WHAT
Xxxx
and id
parts
from a string containing [net.sf.basedb.core.data.XxxxData#id]
.public ItemModifiedException(java.lang.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 java.lang.String findWhat(StaleStateException ex)