in reply to pass code block to function (PROTOTYPES)

Because your catch { ... } block doesn't reraise the exception.