cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tobia <>
Subject Calling map:handle-errors from flowscript
Date Wed, 27 Jun 2007 13:13:20 GMT

How can I invoke the default handler for, say, 404 Not Found errors from
my flowscript?

Sometimes I can only determine that a certain URL refers to a
non-existant resource from flowscript.  I'd like the user to see the
default error page configured in <map:handle-errors>

I've tried the following, but none of them seem to work:

	throw new
	throw new"")

The problem with the (send|set)(Status|Error) is that they don't invoke
the exception handlers defined in the sitemap.  The problem with
throwing new exceptions is that they are wrapped in a JavaScriptException
and thus are reported as a 500 error, while I need a 404.

Any ideas?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message