smack-xmlparser: Improve ISE message

Este commit está contenido en:
Florian Schmaus 2019-09-23 15:18:06 +02:00
padre 28ef30b4b3
commit be0830fc8f
Se han modificado 1 ficheros con 2 adiciones y 1 borrados

Ver fichero

@ -31,7 +31,8 @@ public class SmackXmlParser {
public static XmlPullParserFactory getXmlPullParserFactory() {
Iterator<XmlPullParserFactory> iterator = xmlPullParserFactoryServiceLoader.iterator();
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();
}