linux.core: Add messages to IllegalStateExceptions
[deliverable/tracecompass.git] / analysis / org.eclipse.tracecompass.analysis.os.linux.core / src / org / eclipse / tracecompass / analysis / os / linux / core / contextswitch / KernelContextSwitchAnalysis.java
index d616281130384b0494d45f33221267a8deb1448a..7dc6b2ceaf4d4d8e9f0af1f659c6e06bc37ede17 100644 (file)
@@ -84,7 +84,7 @@ public class KernelContextSwitchAnalysis extends TmfStateSystemAnalysisModule {
 
         ITmfTrace trace = getTrace();
         if (trace == null) {
-            throw new IllegalStateException();
+            throw new IllegalStateException("Analysis requires a trace"); //$NON-NLS-1$
         }
         /*
          * This analysis depends on the LTTng kernel analysis, so it's added to
This page took 0.025629 seconds and 5 git commands to generate.