localized navigation menu
[svjatoslav_commons.git] / src / main / java / eu / svjatoslav / commons / network / navigation / NavigationItem.java
index 22ba6b0..14c8b0a 100755 (executable)
@@ -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();
        }