use specialized exception classes

This commit is contained in:
wmayer
2017-04-28 18:49:11 +02:00
parent 998c000516
commit fb7094bf31
60 changed files with 675 additions and 349 deletions

View File

@@ -83,7 +83,7 @@ Workbench* WorkbenchManager::createWorkbench (const std::string& name, const std
delete base;
std::stringstream str;
str << "'" << className << "' not a workbench type" << std::ends;
throw Base::Exception(str.str());
throw Base::TypeError(str.str());
}
wb = static_cast<Workbench*>(base);