Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

C++ try catch

try {
   //do something
} catch (const std::exception& e) {
     std::cout << e.what(); // information from error printed
}
 
PREVIOUS NEXT
Tagged: #catch
ADD COMMENT
Topic
Name
9+1 =