Exception: Freshen::FreshenerLoadError
- Inherits:
-
LoadError
- Object
- LoadError
- Freshen::FreshenerLoadError
- Defined in:
- lib/freshen/errors.rb
Overview
A LoadError subclass for when a freshener failed to load.
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name) ⇒ FreshenerLoadError
constructor
A new instance of FreshenerLoadError.
- #to_s ⇒ Object
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
#name ⇒ Object (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_s ⇒ Object
62 63 64 |
# File 'lib/freshen/errors.rb', line 62 def to_s "Unable to load freshener #{@name}" end |