Exception: Rapid::TemplateRenderError

Inherits:
TemplateError show all
Defined in:
lib/rapid/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(template_path, e) ⇒ TemplateRenderError

Returns a new instance of TemplateRenderError.



74
75
76
77
78
# File 'lib/rapid/error.rb', line 74

def initialize template_path, e
  super "Error rendering #{template_path}: #{e.message}"
  @template_path = template_path
  @original_exception = e
end

Instance Attribute Details

#original_exceptionObject (readonly)

Returns the value of attribute original_exception.



72
73
74
# File 'lib/rapid/error.rb', line 72

def original_exception
  @original_exception
end

#template_pathObject (readonly)

Returns the value of attribute template_path.



72
73
74
# File 'lib/rapid/error.rb', line 72

def template_path
  @template_path
end