Use our own exception type for HTTP_NOT_FOUND, rather than reusing FileNotFoundException.

This commit is contained in:
Andreas Schildbach 2014-07-13 13:52:11 +02:00
parent 0999b3ba7f
commit bff85b9f6c
3 changed files with 34 additions and 8 deletions

View file

@ -17,7 +17,6 @@
package de.schildbach.pte;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.io.Serializable;
@ -70,7 +69,6 @@ import de.schildbach.pte.dto.SuggestLocationsResult;
import de.schildbach.pte.dto.Trip;
import de.schildbach.pte.exception.InvalidDataException;
import de.schildbach.pte.exception.ParserException;
import de.schildbach.pte.exception.SessionExpiredException;
import de.schildbach.pte.util.ParserUtils;
import de.schildbach.pte.util.XmlPullUtil;
@ -2256,10 +2254,6 @@ public abstract class AbstractEfaProvider extends AbstractNetworkProvider
{
throw new ParserException("cannot parse xml: " + firstChars, x);
}
catch (final FileNotFoundException x)
{
throw new SessionExpiredException();
}
catch (final RuntimeException x)
{
throw new RuntimeException("uncategorized problem while processing " + uri, x);