Exception: Brut::Framework::Errors::MissingConfiguration

Inherits:
Brut::Framework::Error show all
Defined in:
lib/brut/framework/errors/missing_configuration.rb

Overview

Raised when Brut configuration is missing an expected value. This is mostly raised when values that must be set per app have not been set.

Instance Method Summary collapse

Constructor Details

#initialize(config_name, context) ⇒ MissingConfiguration

Create the exception

Parameters:

  • config_name (String|Symbol)

    the name of the missing configuration parameter

  • context (String)

    Any additional context to understand the error



8
9
10
# File 'lib/brut/framework/errors/missing_configuration.rb', line 8

def initialize(config_name, context)
  super("Configuration parameter '#{config_name}' did not have a value, but was expected to. #{context}")
end