Error handling example.