try catch c++ exception handling code example Example: c++ try try { //do } catch (...){ //if error do }