Exception: Golden::Setting::Error::SettingNotFound
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Golden::Setting::Error::SettingNotFound
- Defined in:
- lib/golden/setting/error.rb
Instance Method Summary collapse
-
#initialize(name, msg = nil) ⇒ SettingNotFound
constructor
A new instance of SettingNotFound.
- #to_s ⇒ Object
Constructor Details
#initialize(name, msg = nil) ⇒ SettingNotFound
Returns a new instance of SettingNotFound.
5 6 7 8 |
# File 'lib/golden/setting/error.rb', line 5 def initialize name, msg = nil @name = name super msg end |
Instance Method Details
#to_s ⇒ Object
10 11 12 |
# File 'lib/golden/setting/error.rb', line 10 def to_s "Setting name '#{@name}' not found!" end |