[aerogear-dev] Question about retrieving an AeroGearUser ?
Lucas Holmquist
lholmqui at redhat.com
Fri Jan 11 10:55:11 EST 2013
On Jan 11, 2013, at 10:01 AM, Sebastien Blanc <scm.blanc at gmail.com> wrote:
> Hi All,
> In the scope of https://issues.jboss.org/browse/AEROGEAR-803 , we have a method to retrieve an user (based on its id). If the user don't exist it returns null.
>
> There were some suggestions to change that into :
> - throwing a runtime exception (seems a bit brutal)
This does seem brutal, unless there is some security issues with not doing this
i think it should be the client dev's responsibility to check if the return value exists.
> - or returning an empty user (can be confusing)
>
> What is your opinion about this ?
>
> Seb
>
> ps: the method https://gist.github.com/4510879
>
>
> _______________________________________________
> aerogear-dev mailing list
> aerogear-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/aerogear-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20130111/18e508e3/attachment.html
More information about the aerogear-dev
mailing list