Try and catch, are used to try some code, and catch any errors. It is also possible to create errors using the throw command.
Example: