Exception: Kwartz::ConvertError
- Inherits:
-
KwartzError
- Object
- StandardError
- KwartzError
- Kwartz::ConvertError
- Defined in:
- lib/kwartz/converter.rb
Instance Attribute Summary collapse
-
#linenum ⇒ Object
Returns the value of attribute linenum.
Instance Method Summary collapse
-
#initialize(message, filename, linenum) ⇒ ConvertError
constructor
A new instance of ConvertError.
- #to_s ⇒ Object
Constructor Details
#initialize(message, filename, linenum) ⇒ ConvertError
Returns a new instance of ConvertError.
24 25 26 27 28 |
# File 'lib/kwartz/converter.rb', line 24 def initialize(, filename, linenum) super() @filename = filename @linenum = linenum end |
Instance Attribute Details
#linenum ⇒ Object
Returns the value of attribute linenum.
30 31 32 |
# File 'lib/kwartz/converter.rb', line 30 def linenum @linenum end |
Instance Method Details
#to_s ⇒ Object
33 34 35 36 37 |
# File 'lib/kwartz/converter.rb', line 33 def to_s s = super return "#{@filename}:#{@linenum}: #{s}" #return "#{s}(line #{@linenum})" end |