ctf: Better explain IllegalStateException
[deliverable/tracecompass.git] / ctf / org.eclipse.tracecompass.ctf.core / src / org / eclipse / tracecompass / internal / ctf / core / event / types / ArrayDeclaration.java
index 4a4572c4d366bd06160aae05a7c7f06e09ff2430..23c80e949eb29e0f272b00f866d61a4e27eb9244 100644 (file)
@@ -132,7 +132,7 @@ public final class ArrayDeclaration extends CompoundDeclaration {
         for (int i = 0; i < fLength; i++) {
             String name = elemNames.get(i);
             if (name == null) {
-                throw new IllegalStateException();
+                throw new IllegalStateException("Field " + fieldName + " has a nameless field");  //$NON-NLS-1$//$NON-NLS-2$
             }
             definitions.add(fElemType.createDefinition(definitionScope, name, input));
         }
This page took 0.024955 seconds and 5 git commands to generate.