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.
32 33 34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/jitsu/errors.rb', line 32 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 |