Exception: Dozuki::NotFound

Inherits:
StandardError
  • Object
show all
Defined in:
lib/dozuki/exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nodeObject

Returns the value of attribute node.



3
4
5
# File 'lib/dozuki/exceptions.rb', line 3

def node
  @node
end

#xpathObject

Returns the value of attribute xpath.



3
4
5
# File 'lib/dozuki/exceptions.rb', line 3

def xpath
  @xpath
end