Class ParseMsg
In: fileproc.rb
Parent: StandardError

Message from FileProcessor

Methods
message    new    to_s   
Public Class methods
new(lvl, msg, trace)
lvl
severity level (string)
msg
message describing error
trace
array (stack) of [file,line] showing input location
# File fileproc.rb, line 50
  def initialize(lvl, msg, trace)
    @lvl = lvl
    @msg = msg
    @trace = trace
  end
Public Instance methods
message()

produce printable message, parsable by most editors

# File fileproc.rb, line 58
  def message()
    to_s
  end
to_s()

produce printable message, parsable by most editors

# File fileproc.rb, line 64
  def to_s()
    msg = ""
    if (start = @trace.size - 2) >= 0
      start.downto(0) {
	|i| msg += "\tIn file included from: #{@trace[i].join(":")}\n"
      }
    end
    msg += "#{@lvl}: #{@trace.last.join(":")}: #{@msg}.\n"
  end