[Seaside] Redirecting to an error page etc., if an exception is
caught using WAListenerAdapter
philippe.marschall at gmail.com
Tue Oct 11 07:10:05 UTC 2011
2011/10/11 John Toohey <jt at parspro.com>:
> I'm trapping all my apps exceptions in a custom exception handler, and
> would like to 1) redirect to an error page, or 2) emit custom HTML
> into the stream. However when an exception is raised and my handler is
> called, the WAStreamResponse is already committed, so I cannot do
> anything with it. Is there an easy solution to this problem?
There is no solution to this problem. You can't put on no safety belts
but still have them on in case of accidents. If you don't like this
behavior, don't use WAListenerAdapter.
More information about the seaside