try-catch

The try... catch statement marks a block of statements to try and specifies a response should an exception be thrown.
The code in the try block is run normally. If any of the statements throw an exception that can be caught by the exception type listed in the catch block, the try block stops running and execution goes to the catch statement. If none of the statements in the try block throw an exception that can be caught, the catch clause is not run.