Exception: MultiXml::DisallowedTypeError
- Inherits:
-
StandardError
- Object
- StandardError
- MultiXml::DisallowedTypeError
- Defined in:
- lib/multi_xml/errors.rb
Overview
Raised when an XML type attribute is in the disallowed list
By default, 'yaml' and 'symbol' types are disallowed for security reasons.
Instance Attribute Summary collapse
-
#type ⇒ String
readonly
The disallowed type that was encountered.
Instance Method Summary collapse
-
#initialize(type) ⇒ DisallowedTypeError
constructor
Create a new DisallowedTypeError.
Constructor Details
#initialize(type) ⇒ DisallowedTypeError
Create a new DisallowedTypeError
88 89 90 91 |
# File 'lib/multi_xml/errors.rb', line 88 def initialize(type) @type = type super("Disallowed type attribute: #{type.inspect}") end |
Instance Attribute Details
#type ⇒ String (readonly)
The disallowed type that was encountered
79 80 81 |
# File 'lib/multi_xml/errors.rb', line 79 def type @type end |