mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-20 09:19:57 +00:00
A bit of exception message cosmetics.
This commit is contained in:
parent
96c449ccc8
commit
9e0ecf1251
1 changed files with 2 additions and 2 deletions
|
@ -41,7 +41,7 @@ public final class Location implements Serializable
|
|||
this.name = name;
|
||||
|
||||
if (name == null && place != null)
|
||||
throw new IllegalArgumentException("places without name cannot exist");
|
||||
throw new IllegalArgumentException("place '" + place + "' without name cannot exist");
|
||||
}
|
||||
|
||||
public Location(final LocationType type, final String id, final String place, final String name)
|
||||
|
@ -54,7 +54,7 @@ public final class Location implements Serializable
|
|||
this.name = name;
|
||||
|
||||
if (name == null && place != null)
|
||||
throw new IllegalArgumentException("places without name cannot exist");
|
||||
throw new IllegalArgumentException("place '" + place + "' without name cannot exist");
|
||||
}
|
||||
|
||||
public Location(final LocationType type, final String id, final int lat, final int lon)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue