Exception: FunApi::TemplateNotFoundError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/funapi/exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(template_name) ⇒ TemplateNotFoundError

Returns a new instance of TemplateNotFoundError.



67
68
69
70
# File 'lib/funapi/exceptions.rb', line 67

def initialize(template_name)
  @template_name = template_name
  super("Template not found: #{template_name}")
end

Instance Attribute Details

#template_nameObject (readonly)

Returns the value of attribute template_name.



65
66
67
# File 'lib/funapi/exceptions.rb', line 65

def template_name
  @template_name
end