AbstractNavitiaProvider: Fix some exception messages.

This commit is contained in:
Andreas Schildbach 2016-12-12 12:48:34 +01:00
parent 976e5567d7
commit a0a5db7a02

View file

@ -542,7 +542,7 @@ public abstract class AbstractNavitiaProvider extends AbstractNetworkProvider {
// Do not add leg in case of waiting on the peer.
}
default:
throw new IllegalArgumentException("Unhandled place type: " + type);
throw new IllegalArgumentException("Unhandled leg type: " + type);
}
} catch (final JSONException jsonExc) {
throw new ParserException(jsonExc);
@ -627,7 +627,7 @@ public abstract class AbstractNavitiaProvider extends AbstractNetworkProvider {
case OTHER:
return null;
default:
throw new IllegalArgumentException("Unhandled place type: " + modeId);
throw new IllegalArgumentException("Unhandled physical mode: " + modeId);
}
}