Added error handling example.