Replace Base::Exception with appropriate subclass

This commit is contained in:
wmayer
2018-11-14 17:47:43 +01:00
parent c5a5eb6a83
commit f9e487e4b2
7 changed files with 12 additions and 12 deletions

View File

@@ -307,7 +307,7 @@ void Tooltable::deleteTool(int pos)
if (Tools.find(pos) != Tools.end()) {
Tools.erase(pos);
} else {
throw Base::Exception("Index not found");
throw Base::IndexError("Index not found");
}
}