When you attempt to get a write lock on an item, the following exceptions may arise:
If you get a deadlock when you call
getItem
orgetItemForUpdate
, aRepositoryException
is thrown.If you are using
isolationLevel="repeatableRead"
and you are unable to convert a read lock to a write lock (presumably because another transaction was trying to do the same thing at the same time), aConcurrentUpdateException
is thrown.If you are calling a method, such as
setPropertyValue
, which does not throw aRepositoryException
, you get anIllegalArgumentException
instead.