Exception: Golden::Setting::Error::SettingNotFound

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/golden/setting/error.rb

Instance Method Summary collapse

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_sObject



10
11
12
# File 'lib/golden/setting/error.rb', line 10

def to_s
  "Setting name '#{@name}' not found!"
end