[jsr339-experts] Re: Unify WebTarget and UriBuilder exceptions?

From: Sergey Beryozkin <sberyozkin_at_talend.com>
Date: Wed, 13 Feb 2013 21:34:23 +0000

On 13/02/13 17:42, Marek Potociar wrote:
> Hello experts,
> IIRC, we touched on this topic once, but I cannot recall a strong
> decision being made:
> http://java.net/jira/browse/JAX_RS_SPEC-354
> Both UriBuilderand WebTargethave similar methods (e.g. resolveTemplates,
> resolveTemplateFromEncoded) but the declared exceptions are different -
> NPE (WebTarget) vs IAE (UriBuilder). Should we unify this?

The only concern is that UriBuilder IAE exceptions are checked by TCK
1.1 and guess with newer TCK too, if so than having most of UriBuilder
methods throwing IAE and two NPE might not be ideal, that is the only

Cheers, Sergey
> Please let us know,
> Marek