Exception: Trio::Blog::API::SelectorNotFoundError

Inherits:
Error
  • Object
show all
Defined in:
lib/trio/blog/api/error/selector_not_found_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(selector) ⇒ SelectorNotFoundError

Returns a new instance of SelectorNotFoundError.



7
8
9
10
# File 'lib/trio/blog/api/error/selector_not_found_error.rb', line 7

def initialize(selector)
  super("Element not found with '#{selector}' selector")
  @selector = selector
end

Instance Attribute Details

#selectorObject (readonly)

Returns the value of attribute selector.



5
6
7
# File 'lib/trio/blog/api/error/selector_not_found_error.rb', line 5

def selector
  @selector
end