Add `try-catch` snippet