Refactoring exception