Skip to content
Snippets Groups Projects
Commit fec21d85 authored by Jacek Galowicz's avatar Jacek Galowicz
Browse files

Merge branch 'master' into 'master'

explicitely catching domain_errors

See merge request jg943598/rpn_collab!8
parents 23b5a305 87b25ad5
No related branches found
No related tags found
No related merge requests found
......@@ -16,6 +16,10 @@ int main() {
} catch (const std::invalid_argument& e){
std::cout << "encountered invalid argument" << e.what() << "\n";
return -1;
} catch (const std::domain_error& e){
std::cout << "encountered div by zero" << e.what() << "\n";
return -1;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment