M
mlt
In my code I use throw:
if (someCondition) {
std::cout << "time to throw!\n";
throw std::invalid_argument("very bad error!");
}
I then test for what happens when someCondition is true. "time to throw!"
gets printed but "very bad error!" is not printed. A box just pops up
saying:
Debug Error!
Program: ...
This application has requested the Runtime to terminate.....
(Press retry to debug application)
Should "very bad error!" not pop up somewhere?
if (someCondition) {
std::cout << "time to throw!\n";
throw std::invalid_argument("very bad error!");
}
I then test for what happens when someCondition is true. "time to throw!"
gets printed but "very bad error!" is not printed. A box just pops up
saying:
Debug Error!
Program: ...
This application has requested the Runtime to terminate.....
(Press retry to debug application)
Should "very bad error!" not pop up somewhere?