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 75405 invoked from network); 31 Jul 2000 01:19:28 -0000 Received: from e21.nc.us.ibm.com (32.97.136.227) by locus.apache.org with SMTP; 31 Jul 2000 01:19:28 -0000 Received: from southrelay02.raleigh.ibm.com (southrelay02.raleigh.ibm.com [9.37.3.209]) by e21.nc.us.ibm.com (8.9.3/8.9.3) with ESMTP id VAA35114 for ; Sun, 30 Jul 2000 21:08:37 -0500 From: rubys@us.ibm.com Received: from d54mta04.raleigh.ibm.com (d54mta04.raleigh.ibm.com [9.67.228.36]) by southrelay02.raleigh.ibm.com (8.8.8m3/NCO v4.92) with SMTP id VAA26302 for ; Sun, 30 Jul 2000 21:19:27 -0400 Received: by d54mta04.raleigh.ibm.com(Lotus SMTP MTA v4.6.5 (863.2 5-20-1999)) id 8525692D.000742DA ; Sun, 30 Jul 2000 21:19:18 -0400 X-Lotus-FromDomain: IBMUS To: cocoon-dev@xml.apache.org Message-ID: <8525692D.0007410D.00@d54mta04.raleigh.ibm.com> Date: Sun, 30 Jul 2000 21:17:35 -0400 Subject: error generator (was re: C2 status) Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N My understanding of the sitemap proposal is that it allows the definition of at most one series of processors to handle errors per pipeline. I'd like to suggest that this definition be expanded to allow multiple error processors to be defined, and that an additional attribute be defined on the map:handle-errors element to indicate what exception this series of processors is designed to handle. The reason for this request is that I would like to define an error handler specific for PHP - it may do things such as display an excerpt of lines from the original file, with the line on which the error occurred highlighted somehow. Other information such as the line number, column number, and error text would also be present. This information would obviously be specific to the type of error being handled. The code generated by the sitemap compiler could be as simple as a series of if (exception instanceof exception1) { execute map 1 } else if (exception instanceof exception2) { execute map 2 } ... The default could be that an error handler handles java.lang.Exception (or java.lang.Throwable). - Sam Ruby