refactoring: added a new exception + test of impossible resolve