The try keyword[edit | edit source]
The try keyword is used to be sure that a number of commands to follow will not cause an unhandled exception. If one of the lines causes an exception, the code inside the catch clause will be executed. If the try statement does have a finally clause, this part will execute irrespective of what happened before.
Examples[edit | edit source]