Refactoring name of exception