Exception: Caesars::SyntaxError

Inherits:
Error
  • Object
show all
Defined in:
lib/caesars/exceptions.rb

Instance Attribute Summary

Attributes inherited from Error

#backtrace

Instance Method Summary collapse

Methods inherited from Error

#initialize

Constructor Details

This class inherits a constructor from Caesars::Error

Instance Method Details

#messageObject



10
11
12
13
14
15
# File 'lib/caesars/exceptions.rb', line 10

def message
  msg = "Syntax error in #{@obj}"
  bt = @backtrace 
  msg << " in " << bt.first.scan(/\`(.+?)'/).flatten.first if bt
  msg
end