<div dir="ltr">Ok,<div style>We have a majority for the Exception, so go! go! go! for the runtime Exception , shall I create a new Exception in ag-security ? Suggestions for the name ?</div><div style>Seb</div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Fri, Jan 11, 2013 at 5:57 PM, Douglas Campos <span dir="ltr">&lt;<a href="mailto:qmx@qmx.me" target="_blank">qmx@qmx.me</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im"><br>
On 11/01/2013, at 13:01, Sebastien Blanc &lt;<a href="mailto:scm.blanc@gmail.com">scm.blanc@gmail.com</a>&gt; wrote:<br>
<br>
&gt; Hi All,<br>
&gt; In the scope of <a href="https://issues.jboss.org/browse/AEROGEAR-803" target="_blank">https://issues.jboss.org/browse/AEROGEAR-803</a> , we have a method to retrieve an user (based on its id). If the user don&#39;t exist it returns null.<br>

&gt;<br>
&gt; There were some suggestions to change that into :<br>
&gt; - throwing a runtime exception (seems a bit brutal)<br>
</div>+1<br>
<div class="im">&gt; - or returning an empty user (can be confusing)<br>
</div>-1<br>
<div class="im HOEnZb">&gt;<br>
&gt; What is your opinion about this ?<br>
&gt;<br>
&gt; Seb<br>
&gt;<br>
&gt; ps: the method <a href="https://gist.github.com/4510879" target="_blank">https://gist.github.com/4510879</a><br>
&gt;<br>
&gt;<br>
</div><div class="HOEnZb"><div class="h5">&gt; _______________________________________________<br>
&gt; aerogear-dev mailing list<br>
&gt; <a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br>
<br>
<br>
_______________________________________________<br>
aerogear-dev mailing list<br>
<a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br>
</div></div></blockquote></div><br></div>