Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [stellation-res] Use of AspectJ

Go for it.

The reason that I delayed starting to use it was because it was in
the middle of a large transition, and it just didn't seem to be a good
time to start using it. Since then, the project was transferred from
PARC to Eclipse.org, and the new version has stabilized. So it's a good
time to start using it.

I'm also very in favor of cleaning up the exception handling. It's been
in our todo list for what seems like forever, but no one has ever
taken the time to actually take care of it.

	-Mark


On Sat, 2003-01-11 at 13:55, Jonathan Gossage wrote:
> Some time ago Mark floated a suggestion about using AspectJ. I would like to
> start making use of it, and in particular I would like to use it to ensure
> that we have consistent handling for all exceptions that we throw.
> 
> As I see it, we have the following major classes of exceptions.
> 
> 1. Programming errors
> These derive from "impossible" paths that became possible or from warranted
> paranoid checking that turns out to be needed. For these exceptions, I would
> like to ensure that we do the following:
> 
>    a) Log the exception.
>    b) Produce a stack trace
> 
> 2. User errors
> These derive directly or indirectly from bad user input. I would like to
> ensure that we do the following:
>    a) Log the exception
>    b) For command line programs, tell the user what is wrong. It may be
> possihble to handle user error reporting for GUI programs as well, but it
> will take some careful analysis to determine if this can be clearly enough
> codified.
> 
> 3. Data corruption errors
> Again make sure that we do the following:
> 
>    a) Log the exception.
>    b) Produce a stack trace
> 
> 4. Non-local transfer of control
> These exceptions need no special handling when they are thrown.
> 
> Regards
> 
> Jonathan
> 
> Personal email
> jgossage@xxxxxxxx
> 
> Business email
> jonathan@xxxxxxxxxxxxxx
> 
> 
> _______________________________________________
> stellation-res mailing list
> stellation-res@xxxxxxxxxxxxxxx
> http://dev.eclipse.org/mailman/listinfo/stellation-res
-- 
Mark Craig Chu-Carroll,  IBM T.J. Watson Research Center  
*** The Stellation project: Advanced SCM for Collaboration
***		http://www.eclipse.org/stellation
*** Work: mcc@xxxxxxxxxxxxxx/Home: markcc@xxxxxxxxxxx




Back to the top