Exception: Moxml::NodeError

Inherits:
Error
  • Object
show all
Defined in:
lib/moxml/errors.rb

Overview

Node manipulation errors

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, node) ⇒ NodeError

Returns a new instance of NodeError.



74
75
76
77
# File 'lib/moxml/errors.rb', line 74

def initialize(message, node)
  @node = node
  super("#{message} (Node: #{node.class})")
end

Instance Attribute Details

#nodeObject (readonly)

Returns the value of attribute node.



72
73
74
# File 'lib/moxml/errors.rb', line 72

def node
  @node
end