Re: XmlSerializer and consistent use of exceptions

Stefan Haustein <[email protected]>
Newsgroups gmane.text.xml.xmlpull.devel
Organization Univ. Dortmund FB 4 LS 8
Message-ID <[email protected]>
Aleksander Slominski wrote:
> hi,
> 
> a bit late but i was reviewing pending changes - it is one of them.


There is one problem: The XmlPullParser exception creates a dependency
on the XmlPullParser.

I think the cleanest solution would be to replace this constructor
by one taking the line number etc. directly?

Best,
Stefan




> 
> alek
> 
> Stefan Haustein wrote:
> 
> 
>>>in XmlPullParser we use XmlPullParserException to indicate API or
>>>XML related exceptions that are different IOException that is used
>>>to signal exception in underlying IO operations. however in XmlSerializer
>>>we use only IOException and API or XML related exceptions may
>>>be only reported by RunitmeException (with subclasses NPE and
>>>IllegalArgumentException etc.) or IOException can be used to carry
>>>all exceptions. i think that we should be consistent and also use
>>>XmlPullParserException in XmlSerializer.
>>>
>>>any opinions about it?
>>
>>Would be fine with me...
>>
>>Best,
>>Stefan
>>
>>--
>>Stefan Haustein
>>Univ. Dortmund, FB 4, LS 8   tel: +49 231 755 2499
>>Baroper Str. 301             fax: +49 231 755 5105
>>D-44221 Dortmund (Germany)   www-ai.cs.uni-dortmund.de
>>
>>
>>To unsubscribe from this group, send an email to:
>>[email protected]
>>
>>
>>
>>Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
> 
> 
> 
> 
> To unsubscribe from this group, send an email to:
> [email protected]
> 
>  
> 
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 
> 
> 


-- 
Stefan Haustein
Univ. Dortmund, FB 4, LS 8   tel: +49 231 755 2499
Baroper Str. 301             fax: +49 231 755 5105
D-44221 Dortmund (Germany)   www-ai.cs.uni-dortmund.de
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.