Exception: Rack::Insight::Config::ConfigurationError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/rack/insight/config.rb

Class Method Summary collapse

Class Method Details

.new(key, expected) ⇒ Object



125
126
127
128
# File 'lib/rack/insight/config.rb', line 125

def self.new(key, expected)
  actual = Rack::Insight::Config.config[key].class
  super("Rack::Insight::Config.config[:#{key}] is invalid: Expected kind of #{expected} but got #{actual}")
end