mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-14 08:40:29 +00:00
AbstractNavitiaProvider: Fix some exception messages.
This commit is contained in:
parent
976e5567d7
commit
a0a5db7a02
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue