Re: XmlSerializer and consistent use of exceptions
Aleksander Slominski <[email protected]>
| Newsgroups | gmane.text.xml.xmlpull.devel |
|---|---|
| Message-ID | <[email protected]> |
Stefan Haustein wrote: > 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? i like that exception takes instance of XmlPullParser as it allows to extract any information it needs. but dependency is also not good. maybe we should have a clean separate exception just for serializer XmlSerializerException? changing constructor in XmlPullParserException is backward incompatible change that i would like to avoid ... thanks, alek