On Mon, Jul 30, 2012 at 12:53 PM, Carsten Ziegeler <cziege...@apache.org> wrote:
> 2012/7/30 Felix Meschberger <fmesc...@adobe.com>:
...
>>   * Any persistence exceptions are wrapped into one of the defined
>>     runtime exceptions (e.g. ValueFormatException wrapped into 
>> ClassCastException)
...

> ...I really
> feel uneasy with throwing a runtime exception on a put call. While
> this is allowed, it is very unexpected from a user pov....

You could make it less surprising by throwing a SlingCrudException (or
whatever name fits), which extends IllegalStateException.

-Bertrand

Reply via email to