C++, Java, and Ruby exception handling compared
C++ Java Ruby try {} try {} begin/end catch {} catch {} rescue keyword (or catch method) Not applicable finally ensure throw throw raise (or throw method)