I didn't know it was just there for debugging. I think it is useful for
production as well because it shows a stacktrace (and the
InternalErrorPage can't show it).

Is there any way to access the exception from an internal error page? If
so then InternalErrorPage is good for me too.

Bart.

Johan Compagner wrote:
I think we had that method on application but that was moved again.

But why do you want to change the ExceptionErrorPage?
That is just there for debugging, Normally in production you would see the
InternalErrorPage
that can be set through the settings.

johan


On 5/8/07, Bart Molenkamp <[EMAIL PROTECTED]> wrote:

Hi,

I think it's currently too hard to show a custom exception page. To do
so, I need to override Application.getRequestCycleFactory(), return my
own IRequestCycleFactory implementation, that can build my subclass of
WebRequestCycle that overrides the onRuntimeException() method.

Maybe it's easier to define a method on WebApplication:

Page onRuntimeException(Page page, RuntimeException e) {
   return null;
}

And call this method from WebRequestCycle.onRuntimeException. By default
this would have the same behavior as it is implemented now, but it's
much easier to create a custom error page because I only have to
override onRuntimeException in my WebApplication subclass.

Bart.



Reply via email to