add error handling examples