Class: YUICompressor::JRuby::ErrorReporter
- Inherits:
-
Object
- Object
- YUICompressor::JRuby::ErrorReporter
- Defined in:
- lib/yuicompressor/jruby.rb
Overview
:nodoc:
Instance Method Summary collapse
Instance Method Details
#error(message, source_name, line, line_source, line_offset) ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/yuicompressor/jruby.rb', line 17 def error(, source_name, line, line_source, line_offset) if line < 0 "\n[ERROR] %s" % else "\n[ERROR] %s:%s:%s" % [line, line_offset, ] end end |
#runtimeError(*args) ⇒ Object
25 26 27 |
# File 'lib/yuicompressor/jruby.rb', line 25 def runtimeError(*args) raise RuntimeError, 'Compression failed. %s' % error(*args) end |