Exception: Dirwatch::TemplateNotFoundError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/dirwatch/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(template, msg = nil) ⇒ TemplateNotFoundError

Returns a new instance of TemplateNotFoundError.



34
35
36
37
# File 'lib/dirwatch/errors.rb', line 34

def initialize template, msg = nil
  super msg || "Could not find the template #{template}"
  @template = template
end

Instance Attribute Details

#templateObject (readonly)

Returns the value of attribute template.



33
34
35
# File 'lib/dirwatch/errors.rb', line 33

def template
  @template
end