Samples of error handling