try catch in cpp without throw code example Example: c++ try try { //do } catch (...){ //if error do }