<br><div class="gmail_quote">On Wed, Jan 16, 2013 at 2:48 PM, Kris Borchers <span dir="ltr">&lt;<a href="mailto:kris@redhat.com" target="_blank">kris@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>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.</div>
<div><div class="im"><br><blockquote type="cite"><div class="gmail_quote"><div><br></div><div>For offset &gt; totalNbPages :</div><div>- throwing an exception ?</div><div>- returning null ?</div>
<div>- returning last page ?</div></div></blockquote><div><br></div></div>I would say same as above. Returning last page may be confusing but others are acceptable with a preference toward an exception.</div></blockquote>
</div><div><br></div><div><br></div>+1 on an exception<div><br></div><div>-M<br><br><br clear="all"><div><br></div>-- <br>Matthias Wessendorf <br><br>blog: <a href="http://matthiaswessendorf.wordpress.com/" target="_blank">http://matthiaswessendorf.wordpress.com/</a><br>
sessions: <a href="http://www.slideshare.net/mwessendorf" target="_blank">http://www.slideshare.net/mwessendorf</a><br>twitter: <a href="http://twitter.com/mwessendorf" target="_blank">http://twitter.com/mwessendorf</a>
</div>