RE: Proper n tiered exception handling

2005-02-15 Thread jgkennedy
I'm sure your right Dan. That code is pretty old now and I would do it differently today. But at the time given my understanding, this is what I came up with. Actually couldn't tell you why I did it that way :) The thing to focus on here in the example is the use of HTML comments to "embed"

RE: Proper n tiered exception handling

2005-02-15 Thread jgkennedy
I probably have not shown you enough in terms of setup. There is more to configure this completely. I will try to outline this shortly. To answer your question , I don't rethrow anything. It's not necessary. Your struts actions have the following signature: public ActionForward exe

Re: Proper n tiered exception handling

2005-02-15 Thread jgkennedy
I use declaritive exception handling which is built into Struts. Works great for me. I really don't use custom exceptions that much any more because it's harder to track the original error. Also, I don't clutter my code with alot of try/catch blocks unless it's absolutely necessary. I allow