Return-Path: Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 74493 invoked from network); 24 Nov 2000 23:31:53 -0000 Received: from stargazer2.dataway.ch (HELO dataway.ch) (195.216.80.34) by locus.apache.org with SMTP; 24 Nov 2000 23:31:53 -0000 Received: (qmail 18548 invoked from network); 24 Nov 2000 23:31:51 -0000 X-dataway-Spamcheck: 195.216.80.157: RBL=- DUL=- RSS=- ORBS=- Received: from unknown (HELO pwr.ch) (195.216.80.157) by stargazer.dataway.ch with SMTP; 24 Nov 2000 23:31:51 -0000 Received: (qmail 4408 invoked from network); 24 Nov 2000 23:00:07 -0000 Received: from unknown (HELO apache.org) (giacomo@10.20.30.111) by simba.pwr.ch with SMTP; 24 Nov 2000 23:00:07 -0000 Sender: giacomo Message-ID: <3A1EF40E.6F9F8BB4@apache.org> Date: Sat, 25 Nov 2000 00:04:46 +0100 From: Giacomo Pati Organization: Apache Software Foundation X-Mailer: Mozilla 4.74 [en] (X11; U; Linux 2.2.16 i686) X-Accept-Language: de-DE, de-CH, en MIME-Version: 1.0 To: cocoon-dev@xml.apache.org Subject: Re: [C2]Action proposal (long) References: <3A119876.19728.8C44B4@localhost> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N maciejka@tiger.com.pl wrote: > > On 14 Nov 2000, at 0:50, Giacomo Pati wrote: > > > > > --- maciejka@tiger.com.pl wrote: > > > ... > > > Why not to let actions throw exceptions and catch them in sitemap: > > > > It's already there! A can have a element > > which you can fillup with and to suit your > > need. The thrown exception will be handled by an internal generator > > which converts the Exception into a defined DTD (see > > org.apache.cocoon.Notifier). > > > > My itention is to use exceptions to break execution of chained > actions and communicate reason of the break to the sitemap. To break the chain we could define a BreakChainException to signal it to the sitemap. But you still need to set some values in the context to make other components able to verify it (i.e a selector). > purpose is to handle fatal situations, I suppose, and > can't be used to handle exceptional, but not fatal situations > ocurring during action execution. Correct. > Other problem with I see: > If administrator can't choose generator for given error than > error handling is up to transformation author, not up to site > administrator? Is it constistent with Cocoon goal to keep contexts > (management and style) from overlaping? Well, there is no need to select another generator for an error situation. An error is an error, point. It's descibed in a DTD and thats it. You are able to style the error if you want to present it to the client. Giacomo > > Maciek Kaminski > maciejka@tiger.com.pl