You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by Emmanuel Lecharny <el...@gmail.com> on 2011/06/09 19:39:04 UTC
Exception and cause
Hi guys,
while fixing and closing issues on DIRSERVER, I saw
https://issues.apache.org/jira/browse/DIRSERVER-1299
Seems to me to be a valid point : when throwing a new exception, it's
probably a good idea to rethrow the initial exception as a Cause. I have
done that in the server, and I'm currently running tests.
Do you have any objection about this suggestion ?
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com
Re: Exception and cause
Posted by Pierre-Arnaud Marcelot <pa...@marcelot.net>.
On 9 juin 2011, at 19:39, Emmanuel Lecharny wrote:
> Hi guys,
>
> while fixing and closing issues on DIRSERVER, I saw https://issues.apache.org/jira/browse/DIRSERVER-1299
>
> Seems to me to be a valid point : when throwing a new exception, it's probably a good idea to rethrow the initial exception as a Cause. I have done that in the server, and I'm currently running tests.
>
> Do you have any objection about this suggestion ?
None. On the contrary, it's a good idea.
+1
Regards,
Pierre-Arnaud
Re: Exception and cause
Posted by Kiran Ayyagari <ka...@apache.org>.
On Thu, Jun 9, 2011 at 11:09 PM, Emmanuel Lecharny <el...@gmail.com> wrote:
> Hi guys,
>
> while fixing and closing issues on DIRSERVER, I saw
> https://issues.apache.org/jira/browse/DIRSERVER-1299
>
> Seems to me to be a valid point : when throwing a new exception, it's
> probably a good idea to rethrow the initial exception as a Cause. I have
> done that in the server, and I'm currently running tests.
>
> Do you have any objection about this suggestion ?
>
nope, it indeed helps to have the root cause, saves a ton of time on a
bad Saturday night bug chase :)
> --
> Regards,
> Cordialement,
> Emmanuel Lécharny
> www.iktek.com
>
>
--
Kiran Ayyagari