Exception: Jitsu::SyntaxError
- Inherits:
-
JitsuError
- Object
- StandardError
- JitsuError
- Jitsu::SyntaxError
- Defined in:
- lib/jitsu/errors.rb
Overview
Jitsufile syntax error.
Instance Method Summary collapse
-
#initialize(jitsufile, msg, errors = nil) ⇒ SyntaxError
constructor
Construct a new SyntaxError.
Constructor Details
#initialize(jitsufile, msg, errors = nil) ⇒ SyntaxError
Construct a new SyntaxError.
19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/jitsu/errors.rb', line 19 def initialize(jitsufile, msg, errors=nil) = msg if errors and errors.is_a?(Enumerable)and not errors.empty? << ":" errors.each do |err| << "\n" << (err.filename ? err.filename : jitsufile) << ":" << (err.linenum ? "#{err.linenum}" : "0") << ":" << err.path << " -- " << err. end end super() end |