users@jax-rs-spec.java.net

[jax-rs-spec users] [jsr339-experts] Re: ProcessingException vs IOException from providers

From: Sergey Beryozkin <sberyozkin_at_talend.com>
Date: Wed, 3 Apr 2013 09:56:51 +0300

On 02/04/13 22:22, Sergey Beryozkin wrote:
> Hi
>
> ProcessingException docs mention "propagated IO exceptions thrown by
> entity readers and writers during entity serialization and
> de-serialization."

Well, "propagated" may mean that the runtime catches IO exceptions if
any thrown by the providers and wraps them in ProcessingException -
which is possible too - though this will effectively prevent the users
from writing IOException exception mappers - and I know there are
definitely some IOException exception mappers have been written bby CXF
users, so I guess a bit more guidance would help

Cheers, Sergey

>
> When should MBR or MBW throw ProcessingException instead of IOException
> (except for an empty payload + NoContentException case) ?
>
> Thanks, Sergey