|
catch aBlock [aSymbol]
Executes a code block and checks if any errors were thrown.
If the execution of aBlock concludes with no error then the variable identified by aSymbol will receive the result of the execution of aBlock. In this case the catch will return the false boolean value. The result of the execution of a block is the value returned by the last statement executed inside the block.
If there is no variable identified by aSymbol accessible in the current context then one will be created in the current context.
|