The Designer provides two error functions which can be used to handle errors: