cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefano Mazzocchi <stef...@apache.org>
Subject Re: Error Handler
Date Mon, 20 Dec 1999 13:14:25 GMT
CHRISTOPH.OEHLER@SBB.CH wrote:
> 
> --- Erhalten von  I0.U150033 0512 20 5221                  20.12.99 09.16
> 
> We discussed this matter 2 days ago. Here's our proposal:
> 
> In cocoon.properties one specifies what exception-handler (I like it
> better than Error-Handler):
> exceptionhandler.default =
> org.apache.cocoon.exceptionhandler.HtmlExeptionHandler
> exceptionhandler.debug =
> org.apache.cocoon.exceptionhandler.DebugExeptionHandler (used for
> debugging -> displays stacktrace)
> exceptionhandler.html =
> org.apache.cocoon.exceptionhandler.HtmlExeptionHandler
> exceptionhandler.wml =
> org.apache.cocoon.exceptionhandler.WmlExeptionHandler
> 
> -> every ExceptionHandler that implements the ExceptionHandlerInterface
> can be plugged in.
> 
> In case of an exception it would be propagated up to Cocoon.java with then
> calls Frontend.error.
> 
> Frontend.error has to be rewritten. It calls an ExceptionHandlerFactory
> witch return the appropriate ExceptionHandler (-> User-agend &
> cocoon.properties).
> 
> Then we use the method "handle" of the returned
> ExceptionHandler-Reference. The Exception Handler can then return a
> message to the user.
> 
> If anything goes wrong (ExceptionHandler can't be instanciated ... ) then
> we would return Error 500.
> 
> What do you think?? (We're actually planning on implementing this stuff
> before the end of the year)

I say: go for it!

-- 
Stefano Mazzocchi      One must still have chaos in oneself to be
                          able to give birth to a dancing star.
<stefano@apache.org>                             Friedrich Nietzsche
--------------------------------------------------------------------
 Come to the first official Apache Software Foundation Conference!  
------------------------- http://ApacheCon.Com ---------------------



Mime
View raw message