Exception: Rager::Errors::TemplateError

Inherits:
Rager::Error
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/rager/errors/template_error.rb

Instance Method Summary collapse

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