Replace Base::Exception with appropriate subclass
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user