Use FileNotFoundException in favour of own NotFoundException on HTTP status "not found".

This commit is contained in:
Andreas Schildbach 2014-06-05 12:52:39 +02:00
parent 7fcaf904dd
commit 84d47b6202
3 changed files with 5 additions and 51 deletions

View file

@ -18,6 +18,7 @@
package de.schildbach.pte;
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
@ -69,7 +70,6 @@ import de.schildbach.pte.dto.StationDepartures;
import de.schildbach.pte.dto.Stop;
import de.schildbach.pte.dto.Trip;
import de.schildbach.pte.exception.InvalidDataException;
import de.schildbach.pte.exception.NotFoundException;
import de.schildbach.pte.exception.ParserException;
import de.schildbach.pte.exception.ProtocolException;
import de.schildbach.pte.exception.SessionExpiredException;
@ -2225,7 +2225,7 @@ public abstract class AbstractEfaProvider extends AbstractNetworkProvider
{
throw new ParserException(x);
}
catch (final NotFoundException x)
catch (final FileNotFoundException x)
{
throw new SessionExpiredException();
}