Add @throws snippet