users@jax-rs-spec.java.net

[jax-rs-spec users] [jsr339-experts] Re: Re: No error conditions defined for get() in javadoc

From: Santiago Pericas-Geertsen <Santiago.PericasGeertsen_at_oracle.com>
Date: Thu, 26 Jan 2012 09:34:58 -0500

On Jan 26, 2012, at 4:45 AM, Sergey Beryozkin wrote:

> On 25/01/12 23:42, Bill Burke wrote:
>> For methods like
>>
>> SyncInvoker
>>
>> <T> T get(Class<T> responseType) throws InvocationException;
>>
>>
>> There is no javadoc specifying what happens if the response code is
>> other than 200. An InvocationException should thrown for anything other
>> than 200, but what about 204? I was thinking a null value should be
>> returned in that case.
>
> +1

 Makes sense. It appears the javadoc for InvocationException needs to updated.

-- Santiago