[aerogear-dev] Client Paging Strawman

Matthias Wessendorf matzew at apache.org
Wed Jan 16 08:52:25 EST 2013


On Wed, Jan 16, 2013 at 2:48 PM, Kris Borchers <kris at redhat.com> wrote:

> I would say returning the current page would be confusing. I would be fine
> with an exception or returning null as both can be handled pretty easily by
> a dev. I would say an exception may be more useful since it will tell the
> dev exactly what was wrong instead of their app choking in a null return
> but I am open to both.
>
>
> For offset > totalNbPages :
> - throwing an exception ?
> - returning null ?
> - returning last page ?
>
>
> I would say same as above. Returning last page may be confusing but others
> are acceptable with a preference toward an exception.
>


+1 on an exception

-M



-- 
Matthias Wessendorf

blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
twitter: http://twitter.com/mwessendorf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20130116/9f5da50a/attachment.html 


More information about the aerogear-dev mailing list