Exception: Yast::XMLDeserializationError

Inherits:
RuntimeError
  • Object
show all
Defined in:
library/xml/src/modules/XML.rb

Overview

Exception used when parsing a XML string:

  • syntax error (Nokogiri::XML::SyntaxError is reraised as this)
  • cannot be represented as Ruby data

Class Method Summary collapse

Class Method Details

.for_node(node, message) ⇒ Object



47
48
49
# File 'library/xml/src/modules/XML.rb', line 47

def self.for_node(node, message)
  new("Element <#{node.name}> at line #{node.line}: #{message}")
end