Refactored exceptions.