mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-22 06:12:05 +01:00
smack-xmlparser: Improve ISE message
This commit is contained in:
parent
28ef30b4b3
commit
be0830fc8f
1 changed files with 2 additions and 1 deletions
|
@ -31,7 +31,8 @@ public class SmackXmlParser {
|
||||||
public static XmlPullParserFactory getXmlPullParserFactory() {
|
public static XmlPullParserFactory getXmlPullParserFactory() {
|
||||||
Iterator<XmlPullParserFactory> iterator = xmlPullParserFactoryServiceLoader.iterator();
|
Iterator<XmlPullParserFactory> iterator = xmlPullParserFactoryServiceLoader.iterator();
|
||||||
if (!iterator.hasNext()) {
|
if (!iterator.hasNext()) {
|
||||||
throw new IllegalStateException("Could not load a XmlPullParserFactory via Service Provider Interface (SPI)");
|
throw new IllegalStateException(
|
||||||
|
"No XmlPullParserFactory registered with Service Provider Interface (SPI). Is smack-xmlparser-xpp3 or smack-xmlparser-stax in classpath?");
|
||||||
}
|
}
|
||||||
return iterator.next();
|
return iterator.next();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue