Executes an action when an error is thrown. In the previous example, an email gets send, upon occuring an error.