Exception: Ferrum::NodeIsMovingError

Inherits:
Error
  • Object
show all
Defined in:
lib/ferrum.rb

Instance Method Summary collapse

Constructor Details

#initialize(node, prev, current) ⇒ NodeIsMovingError

Returns a new instance of NodeIsMovingError.



61
62
63
64
# File 'lib/ferrum.rb', line 61

def initialize(node, prev, current)
  @node, @prev, @current = node, prev, current
  super(message)
end

Instance Method Details

#messageObject



66
67
68
69
70
# File 'lib/ferrum.rb', line 66

def message
  "#{@node.inspect} that you're trying to click is moving, hence " \
  "we cannot. Previosuly it was at #{@prev.inspect} but now at " \
  "#{@current.inspect}."
end