Does XMLEventReader/XMLStreamReader throws IllegalArgumentException

If there is any illegal argument corresponding an attribute (say date) inside the tags in the xml string passed to XMLEventReader/XMLStreamReader, then does XMLEventReader/XMLStreamReader throws a IllegalArgumentException or just sets the date attribute to null ?

If it doesn't throw any exception,in that case is there any way to make it throw a desired exception in case of IllegalArgument passed for any attribute ?

链接地址: http://www.djcxy.com/p/76236.html

上一篇: Guava Preconditions RuntimeExceptions处理

下一篇: XMLEventReader / XMLStreamReader是否引发IllegalArgumentException