how to throw an integer exception cpp code example Example: c++ try try { //do } catch (...){ //if error do }