Nested function and try/catch documentation