Handle exceptions when reading error content.