import net.jaekl.qd.QDException;
import net.jaekl.qd.util.ExceptionUtils;
+import net.jaekl.qd.xml.ParseErrorHandler;
import net.jaekl.qd.xml.ParseHandler;
import net.jaekl.qd.xml.ParseResult;
import org.apache.http.impl.client.HttpClientBuilder;
import org.xml.sax.InputSource;
import org.xml.sax.SAXException;
+import org.xml.sax.SAXParseException;
import org.xml.sax.XMLReader;
import org.xml.sax.helpers.XMLReaderFactory;
is = doSubmit(method, passedParams);
XMLReader reader = XMLReaderFactory.createXMLReader();
ParseHandler ph = new ParseHandler(result);
+ ParseErrorHandler peh = new ParseErrorHandler();
reader.setContentHandler(ph);
+ reader.setErrorHandler(peh);
reader.parse(new InputSource(is));
}
+ catch ( SAXParseException saxpe ) {
+ throw new InvalidResponseException(m_gatewayUrl, method, saxpe);
+ }
catch ( InstantiationException
| InvocationTargetException
| IllegalAccessException