Error handling examples