Exception: Rapid::TemplateRenderError
- Inherits:
-
TemplateError
- Object
- Exception
- Exception
- TemplateError
- Rapid::TemplateRenderError
- Defined in:
- lib/rapid/error.rb
Instance Attribute Summary collapse
-
#original_exception ⇒ Object
readonly
Returns the value of attribute original_exception.
-
#template_path ⇒ Object
readonly
Returns the value of attribute template_path.
Instance Method Summary collapse
-
#initialize(template_path, e) ⇒ TemplateRenderError
constructor
A new instance of TemplateRenderError.
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.}" @template_path = template_path @original_exception = e end |
Instance Attribute Details
#original_exception ⇒ Object (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_path ⇒ Object (readonly)
Returns the value of attribute template_path.
72 73 74 |
# File 'lib/rapid/error.rb', line 72 def template_path @template_path end |