File: element_not_found_error.rb

package info (click to toggle)
ruby-mechanize 2.14.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,516 kB
  • sloc: ruby: 11,754; makefile: 7; sh: 2
file content (20 lines) | stat: -rw-r--r-- 434 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# frozen_string_literal: true
##
# Raised when an an element was not found on the Page

class Mechanize::ElementNotFoundError < Mechanize::Error

  attr_reader :source
  attr_reader :element
  attr_reader :conditions

  def initialize source, element, conditions
    @source     = source
    @element    = element 
    @conditions = conditions

    super "Element #{element} with conditions #{conditions} was not found"
  end
  
end