Index: trunk/src/org/openstreetmap/josm/data/validation/tests/MapCSSTagChecker.java
===================================================================
--- trunk/src/org/openstreetmap/josm/data/validation/tests/MapCSSTagChecker.java	(revision 7210)
+++ trunk/src/org/openstreetmap/josm/data/validation/tests/MapCSSTagChecker.java	(revision 7213)
@@ -162,4 +162,19 @@
         }
 
+        static final String POSSIBLE_THROWS = possibleThrows();
+
+        static final String possibleThrows() {
+            StringBuffer sb = new StringBuffer();
+            for (Severity s : Severity.values()) {
+                if (sb.length() > 0) {
+                    sb.append('/');
+                }
+                sb.append("throw")
+                .append(s.name().charAt(0))
+                .append(s.name().substring(1).toLowerCase());
+            }
+            return sb.toString();
+        }
+
         static TagCheck ofMapCSSRule(final GroupedMapCSSRule rule) {
             final TagCheck check = new TagCheck(rule);
@@ -178,6 +193,10 @@
                             : null;
                     if (ai.key.startsWith("throw")) {
-                        final Severity severity = Severity.valueOf(ai.key.substring("throw".length()).toUpperCase());
-                        check.errors.put(ai, severity);
+                        try {
+                            final Severity severity = Severity.valueOf(ai.key.substring("throw".length()).toUpperCase());
+                            check.errors.put(ai, severity);
+                        } catch (IllegalArgumentException e) {
+                            Main.warn("Unsupported "+ai.key+" instruction. Allowed instructions are "+POSSIBLE_THROWS);
+                        }
                     } else if ("fixAdd".equals(ai.key)) {
                         final PrimitiveToTag toTag = PrimitiveToTag.ofMapCSSObject(ai.val, false);
@@ -203,7 +222,7 @@
             }
             if (check.errors.isEmpty() && !containsSetClassExpression) {
-                throw new RuntimeException("No throwError/throwWarning/throwOther given! You should specify a validation error message for " + rule.selectors);
+                throw new RuntimeException("No "+POSSIBLE_THROWS+" given! You should specify a validation error message for " + rule.selectors);
             } else if (check.errors.size() > 1) {
-                throw new RuntimeException("More than one throwError/throwWarning/throwOther given! You should specify a single validation error message for " + rule.selectors);
+                throw new RuntimeException("More than one "+POSSIBLE_THROWS+" given! You should specify a single validation error message for " + rule.selectors);
             }
             return check;
