Exception: Moxml::ParseError
- Defined in:
- lib/moxml/errors.rb
Overview
Parsing related errors
Direct Known Subclasses
DuplicateAttributeError, MalformedXMLError, UnbalancedTagError, UndefinedEntityError
Instance Attribute Summary collapse
-
#column ⇒ Object
readonly
Returns the value of attribute column.
-
#line ⇒ Object
readonly
Returns the value of attribute line.
-
#source ⇒ Object
readonly
Returns the value of attribute source.
Instance Method Summary collapse
-
#initialize(message, line: nil, column: nil, source: nil) ⇒ ParseError
constructor
A new instance of ParseError.
Constructor Details
#initialize(message, line: nil, column: nil, source: nil) ⇒ ParseError
Returns a new instance of ParseError.
10 11 12 13 14 15 |
# File 'lib/moxml/errors.rb', line 10 def initialize(, line: nil, column: nil, source: nil) @line = line @column = column @source = source super(()) end |
Instance Attribute Details
#column ⇒ Object (readonly)
Returns the value of attribute column.
8 9 10 |
# File 'lib/moxml/errors.rb', line 8 def column @column end |
#line ⇒ Object (readonly)
Returns the value of attribute line.
8 9 10 |
# File 'lib/moxml/errors.rb', line 8 def line @line end |
#source ⇒ Object (readonly)
Returns the value of attribute source.
8 9 10 |
# File 'lib/moxml/errors.rb', line 8 def source @source end |