Adding try-catch documentation