mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-18 16:29:51 +00:00
introduce ProtocolException
git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@807 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
parent
6756794c66
commit
c8fbfd3112
2 changed files with 50 additions and 1 deletions
|
@ -58,6 +58,7 @@ import de.schildbach.pte.dto.ResultHeader;
|
|||
import de.schildbach.pte.dto.StationDepartures;
|
||||
import de.schildbach.pte.dto.Stop;
|
||||
import de.schildbach.pte.exception.ParserException;
|
||||
import de.schildbach.pte.exception.ProtocolException;
|
||||
import de.schildbach.pte.exception.SessionExpiredException;
|
||||
import de.schildbach.pte.util.ParserUtils;
|
||||
import de.schildbach.pte.util.XmlPullUtil;
|
||||
|
@ -2171,7 +2172,7 @@ public abstract class AbstractEfaProvider extends AbstractNetworkProvider
|
|||
pp.next();
|
||||
|
||||
if (XmlPullUtil.test(pp, "html"))
|
||||
throw new IllegalStateException("html");
|
||||
throw new ProtocolException("html");
|
||||
|
||||
XmlPullUtil.require(pp, "itdRequest");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue