Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xml-dev] SAXException, checked, buy why?

From: Alan Gutierrez <alan-xml-dev@-----.--->
To: Karl Waclawek <karl@--------.--->
Date: 1/5/2005 6:21:00 AM
* Karl Waclawek <karl@w...> [2005-01-05 00:47]:
> 
> 
> Alan Gutierrez wrote:
> >* Karl Waclawek <karl@w...> [2005-01-04 19:30]:
> >
> >    This is a common problem I see arrising in frameworks. You want
> >    to be extensiable, so you have to forgo some typing, or else use
> >    reflection, which also forgos typing.
> 
> Or you allow types to be constrained later.
> Generics could be a way to achieve that.
> Tried it in .NET 2.0. Opens new possibilities.

    Yup. yup. Trying not to get into JDK 1.5 yet, though.

> >    For SAX Strategy, my library, the current strategy, and the
> >    current event (because I create event objects to encasualte
> >    event data).
> 
> Again, leave it to error producer and consumer.
> The API does not have to know.

    ?

    Maybe, if I said, in SAX Strategy, the SAX events are
    encapsulated in Event objects, that contain the SAX event data.

    I'm not talking about attempting to encapsulate error event data
    for the producer or consumer.

> > ~B On behavior.
> >
> >    That's hard. What behavior is common to all error handling?
> >    
> >    I'd like to know, really, because I'd like to take some time to
> >    develop some error handling best practices, and perhaps, and
> >    error event library is a project in itself.
> 
> Rolling back to a previous consistent state, then retry, maybe
> with a different code path.

> Or logging, displaying a message,...

> But again, if the Error class is abstract, one can subclass with
> appropriate behaviour, known to the producer and consumer, but not
> the API that just forwards the error.

    Do you have this sketched out somewhere?

--
Alan Gutierrez - alan@e...


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent