introduce ProtocolException

git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@807 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
andreas.schildbach@gmail.com 2011-10-04 14:59:53 +00:00
parent 6756794c66
commit c8fbfd3112
2 changed files with 50 additions and 1 deletions

View file

@ -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");