XmlSerializer and consistent use of exceptions
Aleksander Slominski <[email protected]>
| Newsgroups | gmane.text.xml.xmlpull.devel |
|---|---|
| Message-ID | <[email protected]> |
hi, 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? thanks, alek