throw and catch a default exception in c++ code example Example: c++ try try { //do } catch (...){ //if error do }