fix exception

This commit is contained in:
Andrey Kassaev 2024-03-02 20:38:02 +04:00
parent 917bec9239
commit 558abd7a26
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ private:
triangleSideValueList.push_back(tmp); triangleSideValueList.push_back(tmp);
return true; return true;
} }
throw exception("Triangle side must be positive number.\n"); throw runtime_error("Triangle side must be positive number.\n");
} }
catch (const std::exception& e) catch (const std::exception& e)