Exception: Freshen::FreshenerLoadError

Inherits:
LoadError
  • Object
show all
Defined in:
lib/freshen/errors.rb

Overview

A LoadError subclass for when a freshener failed to load.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ FreshenerLoadError

Returns a new instance of FreshenerLoadError.



58
59
60
# File 'lib/freshen/errors.rb', line 58

def initialize(name)
  @name = name
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



56
57
58
# File 'lib/freshen/errors.rb', line 56

def name
  @name
end

Instance Method Details

#to_sObject



62
63
64
# File 'lib/freshen/errors.rb', line 62

def to_s
  "Unable to load freshener #{@name}"
end