Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


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

From: Karl Waclawek <karl@--------.--->
To: Alan Gutierrez <alan-xml-dev@-----.--->
Date: 1/4/2005 7:32:00 PM
Alan Gutierrez wrote:

>>>   The class in final because a SAX error is really just a wrapper
>>>   for a real, application error. No message either. That is found
>>>   in the real cause. Eh?
> 
> 
>>If you made your class abstract, then your content handler and application
>>could agree on some shared way of exchanging information (through a subclass
>>known to both of them) that is best suited to the problem at hand, without
>>involving the API too much.
> 
> 
>>Did you say "Eh?" to point out my Canadian domain name?
>>Well, its true, I live there, but if you heard my accent ... ;-)
> 
> 
>     No. It was just to solicit a response.
> 
>     Why Canadians are to touchy a boot their accents?

I am not touchy at all about it, I just find it amusing.
I don't think Canadians have an accent worth mentioning.
Btw, I am not a Canadian ...

>     I think the API sticks it's nose in. I think API provides a
>     conduit for XML message events coming in, and it needs to
>     provide a conduit for error events going, er, where ever.

Yes, a conduit, but it should not care about what goes through that conduit.
This would create unnecessary dependencies.

> 
>     Did I already state that I see errors as simply more events? I
>     do for now, at lest. Within handling, an error is an event, to
>     be handled, and is thrown as a last resort.

There are always multiple view points.
In an event based API it is natural to see errors as events.
The design challenge often is to come up with a solution
that looks reasonable from different view points.

Karl


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