c++ try

C++
try {
	//do
} catch (...){
	//if error do
}
Source

Also in C++: