You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Richard S. Hall" <he...@ungoverned.org> on 2006/07/25 10:44:45 UTC
ClassNotFoundException diagnostic messages
I had a good idea, I think, about how to deal with Felix' diagnostic
messages when ClassNotFoundExceptions occur. Rather than log them, we
should use the diagnostic message as the message of the thrown CNF
exception.
The benefit of this approach is that the message is only printed when
the exception is not handled (or when it is logged), but not in cases
where it is handled. Thus, the developer should only see the diagnostic
messages when it matters and not when it doesn't.
I think this will work correctly and have committed the changes.
However, I need people to pay attention during their development to see
if they are still seeing the diagnostic messages when they need them
(and not when they don't).
Let me know what happens. Thanks.
-> richard
Re: ClassNotFoundException diagnostic messages
Posted by "Richard S. Hall" <he...@ungoverned.org>.
Marcel Offermans wrote:
> I just tested this update and as far as I can tell, everything works
> fine.
Excellent. Thanks for checking.
-> richard
Re: ClassNotFoundException diagnostic messages
Posted by Marcel Offermans <ma...@luminis.nl>.
Hi Richard,
On Jul 25, 2006, at 10:44 , Richard S. Hall wrote:
> I had a good idea, I think, about how to deal with Felix'
> diagnostic messages when ClassNotFoundExceptions occur. Rather than
> log them, we should use the diagnostic message as the message of
> the thrown CNF exception.
> The benefit of this approach is that the message is only printed
> when the exception is not handled (or when it is logged), but not
> in cases where it is handled. Thus, the developer should only see
> the diagnostic messages when it matters and not when it doesn't.
I agree that this is a better way than logging these messages.
> I think this will work correctly and have committed the changes.
> However, I need people to pay attention during their development to
> see if they are still seeing the diagnostic messages when they need
> them (and not when they don't).
I just tested this update and as far as I can tell, everything works
fine.
Greetings, Marcel