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
142 143 144 145 |
# File 'lib/multi_xml/errors.rb', line 142 def initialize(type) @type = type super("Disallowed type attribute: #{type.inspect}") end |
Instance Attribute Details
#type ⇒ String (readonly)
The disallowed type that was encountered
133 134 135 |
# File 'lib/multi_xml/errors.rb', line 133 def type @type end |