Is there something similar like "try ... catch" in c++.