cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeremy Quinn <jer...@media.demon.co.uk>
Subject Re: [C1] Get TomCat to handle Errors & Exceptions?
Date Mon, 26 Mar 2001 17:16:46 GMT
At 5:54 PM +0100 26/3/01, Robin Green wrote:
>
>This could be the problem:
>src/org/apache/cocoon/Cocoon.java
>
>
>                } catch (Throwable t) {
>                    if (errorsInternally) {
>                        Frontend.error(response, "Error found handling the
>request.", t);
>                    } else {
>                        response.sendError(500,
>Utils.getStackTraceAsString(t));
>                    }
>                }
>
>Try changing the last statement to throw new ServletException (t);
>
>I should probably change this (and the other one in the same method) in CVS,
>right?

Hmmm,

Would it not be more useful to throw the original Exception type instead of
a ServletException?


Thanks for your reply

regards Jeremy
-- 
   ___________________________________________________________________

   Jeremy Quinn                                           Karma Divers
                                                       webSpace Design
                                            HyperMedia Research Centre

   <mailto:sharkbait@mac.com>     		 <http://www.media.demon.co.uk>
    <phone:+44.[0].20.7737.6831>        <pager:jermq@sms.genie.co.uk>

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message