module ReVIEW::ErrorUtils
Public Instance Methods
error(msg)
click to toggle source
# File ../../../../../lib/review/preprocessor.rb, line 30 def error(msg) @errutils_err = true raise ApplicationError, "#{location()}: #{msg}" end
filename()
click to toggle source
# File ../../../../../lib/review/preprocessor.rb, line 39 def filename @errutils_file.path end
init_ErrorUtils(f)
click to toggle source
# File ../../../../../lib/review/preprocessor.rb, line 21 def init_ErrorUtils(f) @errutils_file = f @errutils_err = false end
lineno()
click to toggle source
# File ../../../../../lib/review/preprocessor.rb, line 43 def lineno @errutils_file.lineno end
location()
click to toggle source
# File ../../../../../lib/review/preprocessor.rb, line 35 def location "#{filename()}:#{lineno()}" end
warn(msg)
click to toggle source
# File ../../../../../lib/review/preprocessor.rb, line 26 def warn(msg) $stderr.puts "#{location()}: warning: #{msg}" end