Exception: XmlUtils::ParseException
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- XmlUtils::ParseException
- Defined in:
- lib/xmlutils/node.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#line ⇒ Object
readonly
Returns the value of attribute line.
-
#position ⇒ Object
readonly
Returns the value of attribute position.
Instance Method Summary collapse
-
#initialize(message, line = nil, position = nil) ⇒ ParseException
constructor
A new instance of ParseException.
- #to_s ⇒ Object
Constructor Details
#initialize(message, line = nil, position = nil) ⇒ ParseException
Returns a new instance of ParseException.
22 23 24 25 26 |
# File 'lib/xmlutils/node.rb', line 22 def initialize(, line = nil, position = nil) @line = line @position = position super() end |
Instance Attribute Details
#line ⇒ Object (readonly)
Returns the value of attribute line.
20 21 22 |
# File 'lib/xmlutils/node.rb', line 20 def line @line end |
#position ⇒ Object (readonly)
Returns the value of attribute position.
20 21 22 |
# File 'lib/xmlutils/node.rb', line 20 def position @position end |
Instance Method Details
#to_s ⇒ Object
28 29 30 31 |
# File 'lib/xmlutils/node.rb', line 28 def to_s base = super @line ? "#{base} (line #{@line}, pos #{@position})" : base end |