Exception: Yast::XMLSerializationError

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

Overview

Exception used when trying to serialize a Ruby object that we cannot represent in XML: - non-String Hash key - a special object, like a Regexp - nil

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, object) ⇒ XMLSerializationError

Returns a new instance of XMLSerializationError.



37
38
39
40
# File 'library/xml/src/modules/XML.rb', line 37

def initialize(message, object)
  @object = object
  super(message)
end

Instance Attribute Details

#objectObject (readonly)

Returns the value of attribute object.



35
36
37
# File 'library/xml/src/modules/XML.rb', line 35

def object
  @object
end