Added try-catch snippets for c++-mode.