fix exception
This commit is contained in:
parent
917bec9239
commit
558abd7a26
|
|
@ -66,7 +66,7 @@ private:
|
|||
triangleSideValueList.push_back(tmp);
|
||||
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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue