module ReVIEW::ErrorUtils
Public Instance Methods
error(msg)
click to toggle source
# File lib/review/preprocessor.rb, line 25 def error(msg) @errutils_err = true raise ApplicationError, "#{location}: #{msg}" end
filename()
click to toggle source
# File lib/review/preprocessor.rb, line 34 def filename @errutils_file.path end
init_errorutils(f)
click to toggle source
# File lib/review/preprocessor.rb, line 16 def init_errorutils(f) @errutils_file = f @errutils_err = false end
lineno()
click to toggle source
# File lib/review/preprocessor.rb, line 38 def lineno @errutils_file.lineno end
location()
click to toggle source
# File lib/review/preprocessor.rb, line 30 def location "#{filename}:#{lineno}" end
warn(msg)
click to toggle source
# File lib/review/preprocessor.rb, line 21 def warn(msg) @logger.warn "#{location}: #{msg}" end