[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: SAXException, checked, buy why?


Re:  SAXException
* Uche Ogbuji <uche.ogbuji@f...> [2005-01-03 18:51]:

> On Mon, 2005-01-03 at 11:20 -0500, Alan Gutierrez wrote:

> >     Let's say, rather than simply raise, pass, or log, you want to
> >     give the person who constructed this object a chance to fix.
> >     
> >     A chance to select a different enocoding, or some such.
> > 
> >     So, in addition to raise, pass, or log, how do you provide a
> >     means to fix.

> I would choose to do so by passing in a "fix_error" function of some
> sort from the parse-caller to the handler.  Functions are first-class
> objects in Python, so passing them around is a very common way of
> configuring complex behavior in that way.

    You have it too easy. You have a language specified means of
    mapping a set of exceptions to a specific handler.

    Java is making me think too hard.

    I'm thinking that I might like a way to implement a dispatch. A
    way to say that for this strategy, call this handler, for this
    strategy throwing these exceptions, call this handler.

    Hmm... Errors are not exceptions. Errors are simply more events.

--
Alan Gutierrez - alan@e...

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.