refactored exception in Row into a method