Exception: Yast::XMLSerializationError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Yast::XMLSerializationError
- 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
-
#object ⇒ Object
readonly
Returns the value of attribute object.
Instance Method Summary collapse
-
#initialize(message, object) ⇒ XMLSerializationError
constructor
A new instance of XMLSerializationError.
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(, object) @object = object super() end |
Instance Attribute Details
#object ⇒ Object (readonly)
Returns the value of attribute object.
35 36 37 |
# File 'library/xml/src/modules/XML.rb', line 35 def object @object end |