On Mon, Jul 30, 2012 at 4:56 PM, Carsten Ziegeler <[email protected]> wrote:
> With ResourceResolver#create/remove we throw
> UnsupportedOperationException and PersistenceException.
> The first one if the underlying resource provider does not allow
> resource modifications, the second if anything goes wrong.
> Although there is a slight difference in the reason, I'm wondering if
> we need to distinguish here and just throw PersistenceException in
> both cases?...

I would keep the UnsupportedOperationException and
PersistenceException distinction, makes things clearer: there's no
point in retrying an UnsupportedOperationException, while
PersistenceException might be a temporary condition.

-Bertrand

Reply via email to