Exception: AutomationObject::Dsl::Error::ElementDoesNotExistError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/automation_object/dsl/_error.rb

Overview

Error for non-existent element

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ ElementDoesNotExistError

Returns a new instance of ElementDoesNotExistError

Parameters:

  • name (Symbol, String)

    element name



19
20
21
22
# File 'lib/automation_object/dsl/_error.rb', line 19

def initialize(name)
  message = "#{name} element does not exist"
  super(message)
end