add specialized exception type for bad graphs

This commit is contained in:
wmayer
2018-11-26 14:15:19 +01:00
parent 88a35a05bb
commit 1647eee92c
5 changed files with 45 additions and 5 deletions

View File

@@ -2040,7 +2040,7 @@ Document::getDependencyList(const std::vector<App::DocumentObject*>& objs) const
std::stringstream ss;
ss << "Gathering all dependencies failed, probably due to circular dependencies. Error: ";
ss << e.what();
throw Base::RuntimeError(ss.str().c_str());
throw Base::BadGraphError(ss.str().c_str());
}
std::set<Vertex> out;