You are viewing a single comment's thread. Return to all comments →
private: class e: public exception { virtual const char* what() const throw() { return "n and p should be non-negative"; } } exp;
You can construct your own exception handler if you want. Just declare a new one inside Calculator.
Seems like cookies are disabled on this browser, please enable them to open this website
Day 17: More Exceptions
You are viewing a single comment's thread. Return to all comments →
You can construct your own exception handler if you want. Just declare a new one inside Calculator.