Exception: Kwartz::ConvertError

Inherits:
KwartzError
  • Object
show all
Defined in:
lib/kwartz/converter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(message, filename, linenum)
  super(message)
  @filename = filename
  @linenum = linenum
end

Instance Attribute Details

#linenumObject

Returns the value of attribute linenum.



30
31
32
# File 'lib/kwartz/converter.rb', line 30

def linenum
  @linenum
end

Instance Method Details

#to_sObject



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