cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Donald Ball <ba...@webslingerZ.com>
Subject Re: Error Handler
Date Mon, 20 Dec 1999 19:25:49 GMT
On Mon, 20 Dec 1999 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)

+1, looks good to me. it'd be nice if we could set the handlers on a
per-site or per-directory basis, but i think that'll be easy to integrate
after we get a functioning sitemap.

- donald


Mime
View raw message