users@jax-rs-spec.java.net

[jax-rs-spec users] [jsr339-experts] Re: Re: Exception unification proposal

From: Marek Potociar <marek.potociar_at_oracle.com>
Date: Mon, 14 Jan 2013 21:00:15 +0100

Not sure. I was just told by other EE spec leads that it's not the best practice and I should consider removing... I can raise it officially with overall Java EE spec leads if you want me to.

Others any opinions on that?

Marek

On Jan 11, 2013, at 7:26 PM, Bill Burke <bburke_at_redhat.com> wrote:

> What is wrong with declaring runtime exceptions in throws clause? This is a good thing, especially when doing "surround with" in your IDE.
>
> On 1/11/2013 11:57 AM, Marek Potociar wrote:
>> Hello experts,
>>
>> I've just committed my proposal resolving the issue
>> http://java.net/jira/browse/JAX_RS_SPEC-257.
>>
>> Here's the change outline:
>>
>> - separate ClientException & MessageProcessingException removed & replaced with common ProcessingException
>> - added client-side ResponseProcessingException (extends ProcessingException)
>> - updated client-side javadoc
>> - fixed API method signatures to not declare runtime exceptions in throws clause, only in javadoc (as perhttp://www.oracle.com/technetwork/java/javase/documentation/index-137868.html#throwstag )
>>
>> Please, let me know if you have any comments.
>>
>> Marek
>
> --
> Bill Burke
> JBoss, a division of Red Hat
> http://bill.burkecentral.com