Exception: Rookout::Exceptions::RookLineMoved

Inherits:
ToolException
  • Object
show all
Defined in:
lib/rookout/exceptions.rb

Instance Attribute Summary

Attributes inherited from ToolException

#parameters

Instance Method Summary collapse

Constructor Details

#initialize(filepath, old_line_no, new_line_no) ⇒ RookLineMoved

Returns a new instance of RookLineMoved.



196
197
198
199
200
201
202
203
# File 'lib/rookout/exceptions.rb', line 196

def initialize filepath, old_line_no, new_line_no
  super "Line has moved! path: #{filepath}, original line no: #{old_line_no}, new line no: #{new_line_no}",
        {
          "filepath" => filepath,
          "old_line_no" => old_line_no,
          "new_line_no" => new_line_no
        }
end