X-Git-Url: http://www2.svjatoslav.eu/gitweb/?p=svjatoslav_commons.git;a=blobdiff_plain;f=src%2Fmain%2Fjava%2Feu%2Fsvjatoslav%2Fcommons%2Fnetwork%2Fnavigation%2FNavigationItem.java;h=14c8b0ab3f0fa2756f535346c001f0a416e673bc;hp=22ba6b046b558268711be58816e40f868cbfeec9;hb=aa03fa52face6f13f8da2e9b89e798671653a074;hpb=e49d583cb64523c584cd848c8a421140c5193514 diff --git a/src/main/java/eu/svjatoslav/commons/network/navigation/NavigationItem.java b/src/main/java/eu/svjatoslav/commons/network/navigation/NavigationItem.java index 22ba6b0..14c8b0a 100755 --- a/src/main/java/eu/svjatoslav/commons/network/navigation/NavigationItem.java +++ b/src/main/java/eu/svjatoslav/commons/network/navigation/NavigationItem.java @@ -99,7 +99,8 @@ public class NavigationItem { public String getTitle() { if (localeToTitle.size() != 1) - throw new RuntimeException("there shall be exactly one title"); + throw new RuntimeException( + "NavigationItem.getTitle() was called without locale parameter, but there there are multiple titles in diffirent locales available."); return localeToTitle.values().iterator().next(); }