Exception: MultiXml::ParseError
- Inherits:
-
StandardError
- Object
- StandardError
- MultiXml::ParseError
- Defined in:
- lib/multi_xml/errors.rb
Overview
Raised when XML parsing fails
Preserves the original XML and underlying cause for debugging.
Instance Attribute Summary collapse
-
#cause ⇒ Exception?
readonly
The underlying parser exception.
-
#xml ⇒ String?
readonly
The original XML that failed to parse.
Instance Method Summary collapse
-
#initialize(message = nil, xml: nil, cause: nil) ⇒ ParseError
constructor
Create a new ParseError.
Constructor Details
#initialize(message = nil, xml: nil, cause: nil) ⇒ ParseError
Create a new ParseError
40 41 42 43 44 |
# File 'lib/multi_xml/errors.rb', line 40 def initialize( = nil, xml: nil, cause: nil) @xml = xml @cause = cause super() end |
Instance Attribute Details
#cause ⇒ Exception? (readonly)
The underlying parser exception
29 30 31 |
# File 'lib/multi_xml/errors.rb', line 29 def cause @cause end |
#xml ⇒ String? (readonly)
The original XML that failed to parse
21 22 23 |
# File 'lib/multi_xml/errors.rb', line 21 def xml @xml end |