Exception: AwesomeXML::Type::UnknownNodeType

Inherits:
StandardError
  • Object
show all
Defined in:
lib/awesome_xml/type.rb

Overview

An excception of this type is raised if ‘type` is given as a Symbol to `.for`, but does not represent one of the native `AwesomeXML` types.

Instance Method Summary collapse

Constructor Details

#initialize(type) ⇒ UnknownNodeType

Returns a new instance of UnknownNodeType.



34
35
36
# File 'lib/awesome_xml/type.rb', line 34

def initialize(type)
  super("Cannot create node with unknown node type '#{type}'.")
end