Re: Counting number of exceptions in a Java class
- From: Eric Sosman <eric.sosman@xxxxxxx>
- Date: Tue, 10 Jan 2006 13:00:02 -0500
Manu Mahendru wrote On 01/10/06 12:48,:
> Hmmmm.... I should have put it better.
>
> What I meant was that I need to count the total number of exceptions
> thrown by the methods in all classes in a project - they may be caught
> some place else... but if they are being thrown... I need to count
> them.
>
> I was thinking of javadocs... but thot checkstyle would be better. Will
> have a look at both.
>
> As for the usefullness of the metric... in my case it does seem to be a
> worthwhile figure to have.
I think you still have a specification issue.
For example, in
void foo()
throws SocketException, ProtocolException
{ ... }
void bar()
throws IOException
{ ... }
how many exceptions do you want to count for each method?
(Note that bar() can throw anything foo() can, and more.)
--
Eric.Sosman@xxxxxxx
.
- Follow-Ups:
- Re: Counting number of exceptions in a Java class
- From: Oliver Wong
- Re: Counting number of exceptions in a Java class
- References:
- Counting number of exceptions in a Java class
- From: Manu Mahendru
- Re: Counting number of exceptions in a Java class
- From: Roedy Green
- Re: Counting number of exceptions in a Java class
- From: Manu Mahendru
- Counting number of exceptions in a Java class
- Prev by Date: Re: Applet problem
- Next by Date: Re: UTC time in millisecond
- Previous by thread: Re: Counting number of exceptions in a Java class
- Next by thread: Re: Counting number of exceptions in a Java class
- Index(es):
Relevant Pages
|