Exception: SyntaxError

Inherits:
Exception
  • Object
show all
Defined in:
lib/rubinius/bridge/exception.rb

Class Method Summary collapse

Class Method Details

.from(message, column, line, code, file) ⇒ Object



2
3
4
5
# File 'lib/rubinius/bridge/exception.rb', line 2

def self.from(message, column, line, code, file)
  message << " #{file}:#{line}:#{column}\n  #{code}"
  SyntaxError.new message
end