case INCOMING_HORIZONTAL_EDGE:
return fIncomingHorizontal;
default:
- throw new IllegalStateException();
+ throw new IllegalStateException("Unknown edge direction type : " + dir); //$NON-NLS-1$
}
}
fIncomingHorizontal = null;
break;
default:
- throw new IllegalStateException();
+ throw new IllegalStateException("Unknown edge direction type : " + dir); //$NON-NLS-1$
}
}
case INCOMING_HORIZONTAL_EDGE:
return edge.getVertexFrom();
default:
- throw new IllegalStateException();
+ throw new IllegalStateException("Unknown edge direction type : " + dir); //$NON-NLS-1$
}
}
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;
TmfTraceUtils.getAnalysisModulesOfClass(trace, CriticalPathModule.class),
null);
if (module == null) {
- throw new IllegalStateException();
+ throw new IllegalStateException("View requires an analysis module"); //$NON-NLS-1$
}
module.schedule();
CriticalPathModule module = Iterables.<@Nullable CriticalPathModule> getFirst(
TmfTraceUtils.getAnalysisModulesOfClass(trace, CriticalPathModule.class), null);
if (module == null) {
- throw new IllegalStateException();
+ throw new IllegalStateException("View requires an analysis module"); //$NON-NLS-1$
}
final TmfGraph graph = module.getCriticalPath();