Exception: Rager::Errors::TemplateError
- Inherits:
-
Rager::Error
- Object
- StandardError
- Rager::Error
- Rager::Errors::TemplateError
- Extended by:
- T::Sig
- Defined in:
- lib/rager/errors/template_error.rb
Instance Method Summary collapse
-
#initialize(template, variables, details: nil) ⇒ TemplateError
constructor
A new instance of TemplateError.
Constructor Details
#initialize(template, variables, details: nil) ⇒ TemplateError
Returns a new instance of TemplateError.
12 13 14 15 16 17 18 19 20 21 |
# File 'lib/rager/errors/template_error.rb', line 12 def initialize(template, variables, details: nil) error_data = { type: "template", template: template, variables: variables, details: details } super(error_data.to_json) end |