Combined error handling functions