class Blinkist::Config::ErrorHandler

Public Class Methods

new(env, app_name) click to toggle source
# File lib/blinkist/config/error_handlers/error_handler.rb, line 4
def initialize(env, app_name)
  @env = env
  @app_name = app_name
end

Public Instance Methods

call(key, scope) click to toggle source
# File lib/blinkist/config/error_handlers/error_handler.rb, line 9
def call(key, scope)
  raise ValueMissingError, "Missing value for #{key} in the scope: #{scope || '<default>'} (Please check the configuration for missing keys)"
end