Exception: Moxml::NodeError
- Defined in:
- lib/moxml/errors.rb
Overview
Node manipulation errors
Direct Known Subclasses
InvalidNodeTypeError, InvalidOperationError, NodeNotFoundError
Instance Attribute Summary collapse
-
#node ⇒ Object
readonly
Returns the value of attribute node.
Instance Method Summary collapse
-
#initialize(message, node) ⇒ NodeError
constructor
A new instance of NodeError.
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(, node) @node = node super("#{} (Node: #{node.class})") end |
Instance Attribute Details
#node ⇒ Object (readonly)
Returns the value of attribute node.
72 73 74 |
# File 'lib/moxml/errors.rb', line 72 def node @node end |