directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pierre-Arnaud Marcelot (JIRA)" <>
Subject [jira] [Reopened] (DIRSHARED-116) throwing Exception may be a little expensive
Date Wed, 10 Oct 2012 13:11:03 GMT


Pierre-Arnaud Marcelot reopened DIRSHARED-116:

The point was not to make it any faster, but "simpler" to use.
At most, we could throw an LdapException, as I still think throwing Exception is too much.
APIs rarely throw Exception and tend to have a dedicated root exception that makes it easy
to know which part of the code thrown it (especially in the case where you have a giant try-catch-exception
> throwing Exception may be a little expensive
> ----------------------------------------------------------
>                 Key: DIRSHARED-116
>                 URL:
>             Project: Directory Shared
>          Issue Type: Bug
>            Reporter: Pierre-Arnaud Marcelot
>             Fix For: 1.0.1
> throwing Exception may be a little expensive.
> I feel that it would be better to throw a lower level exception in that case.
> Thoughts?

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message