Skip to content
Snippets Groups Projects
Commit dfd0dee2 authored by Meik Selig's avatar Meik Selig
Browse files

catch out_of_range exception

parent ebda9b13
No related branches found
No related tags found
No related merge requests found
......@@ -19,7 +19,8 @@ int main() {
} catch (const std::domain_error& e){
std::cout << "encountered div by zero" << e.what() << "\n";
return -1;
} catch(const std::out_of_range& e){
std::cout << "encountered " << 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