Error conditions refactored.