Exception: Dozuki::NotFound
- Inherits:
-
StandardError
- Object
- StandardError
- Dozuki::NotFound
- Defined in:
- lib/dozuki/exceptions.rb
Instance Attribute Summary collapse
-
#node ⇒ Object
Returns the value of attribute node.
-
#xpath ⇒ Object
Returns the value of attribute xpath.
Instance Method Summary collapse
-
#initialize(msg = nil, opts = {}) ⇒ NotFound
constructor
A new instance of NotFound.
Constructor Details
#initialize(msg = nil, opts = {}) ⇒ NotFound
Returns a new instance of NotFound.
5 6 7 8 9 |
# File 'lib/dozuki/exceptions.rb', line 5 def initialize(msg=nil, opts={}) super msg self.xpath = opts[:xpath] self.node = opts[:node] end |
Instance Attribute Details
#node ⇒ Object
Returns the value of attribute node.
3 4 5 |
# File 'lib/dozuki/exceptions.rb', line 3 def node @node end |
#xpath ⇒ Object
Returns the value of attribute xpath.
3 4 5 |
# File 'lib/dozuki/exceptions.rb', line 3 def xpath @xpath end |