mirror of https://github.com/dspinellis/UMLGraph
Better error reporting.
This commit is contained in:
parent
1e52483a86
commit
fc1b199daf
|
|
@ -117,14 +117,18 @@ public class UmlGraphDoc {
|
||||||
|
|
||||||
ContextView view = null;
|
ContextView view = null;
|
||||||
for (ClassDoc classDoc : classDocs) {
|
for (ClassDoc classDoc : classDocs) {
|
||||||
if(view == null)
|
try {
|
||||||
view = new ContextView(outputFolder, classDoc, root, opt);
|
if(view == null)
|
||||||
else
|
view = new ContextView(outputFolder, classDoc, root, opt);
|
||||||
view.setContextCenter(classDoc);
|
else
|
||||||
UmlGraph.buildGraph(root, view, classDoc);
|
view.setContextCenter(classDoc);
|
||||||
runGraphviz(opt.dotExecutable, outputFolder, classDoc.containingPackage().name(), classDoc.name(), root);
|
UmlGraph.buildGraph(root, view, classDoc);
|
||||||
alterHtmlDocs(opt, outputFolder, classDoc.containingPackage().name(), classDoc.name(),
|
runGraphviz(opt.dotExecutable, outputFolder, classDoc.containingPackage().name(), classDoc.name(), root);
|
||||||
classDoc.name() + ".html", Pattern.compile(".*(Class|Interface|Enum) " + classDoc.name() + ".*") , root);
|
alterHtmlDocs(opt, outputFolder, classDoc.containingPackage().name(), classDoc.name(),
|
||||||
|
classDoc.name() + ".html", Pattern.compile(".*(Class|Interface|Enum) " + classDoc.name() + ".*") , root);
|
||||||
|
} catch (Exception e) {
|
||||||
|
throw new RuntimeException("Error generating " + classDoc.name(), e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue