graph: add messages to IllegalStateExceptions
[deliverable/tracecompass.git] / analysis / org.eclipse.tracecompass.analysis.graph.core / src / org / eclipse / tracecompass / analysis / graph / core / criticalpath / CriticalPathModule.java
index 6064f3b345158bc1e5846e97db3fe3fd34f34e48..9b989ad9563d15720dfaf4792f63731cb8807303 100644 (file)
@@ -85,7 +85,7 @@ public class CriticalPathModule extends TmfAbstractAnalysisModule {
             return false;
         }
         if (!(workerObj instanceof IGraphWorker)) {
-            throw new IllegalStateException();
+            throw new IllegalStateException("Worker parameter must be an IGraphWorker"); //$NON-NLS-1$
         }
         IGraphWorker worker = (IGraphWorker) workerObj;
 
This page took 0.02625 seconds and 5 git commands to generate.