Exception: SystemRDL::ParseError
- Defined in:
- lib/systemrdl/error.rb
Instance Attribute Summary collapse
-
#position ⇒ Object
readonly
Returns the value of attribute position.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(message, position) ⇒ ParseError
constructor
A new instance of ParseError.
- #to_s ⇒ Object
Constructor Details
#initialize(message, position) ⇒ ParseError
Returns a new instance of ParseError.
14 15 16 17 |
# File 'lib/systemrdl/error.rb', line 14 def initialize(, position) super() @position = position end |
Instance Attribute Details
#position ⇒ Object (readonly)
Returns the value of attribute position.
19 20 21 |
# File 'lib/systemrdl/error.rb', line 19 def position @position end |
Instance Method Details
#to_s ⇒ Object
21 22 23 |
# File 'lib/systemrdl/error.rb', line 21 def to_s (@position && "#{super} -- #{@position}") || super end |