Exception: Locomotive::Steam::RenderError

Inherits:
ParsingRenderingError show all
Defined in:
lib/locomotive/steam/errors.rb

Constant Summary

Constants inherited from ParsingRenderingError

ParsingRenderingError::LINES_RANGE

Instance Attribute Summary

Attributes inherited from ParsingRenderingError

#file, #line, #original_backtrace, #source

Instance Method Summary collapse

Methods inherited from ParsingRenderingError

#backtrace, #code_lines

Constructor Details

#initialize(error, file, source) ⇒ RenderError

Returns a new instance of RenderError.



48
49
50
51
52
53
54
# File 'lib/locomotive/steam/errors.rb', line 48

def initialize(error, file, source)
  message   = error.message
  line      = error.respond_to?(:line_number) ? error.line_number : error.line
  backtrace = error.backtrace

  super(message, file, source, line, backtrace)
end