Exception: Kameleoon::Exception::FeatureEnvironmentDisabled

Inherits:
FeatureError show all
Defined in:
lib/kameleoon/exceptions.rb

Overview

Feature Environment Disabled

Instance Method Summary collapse

Constructor Details

#initialize(feature_key, environment = nil) ⇒ FeatureEnvironmentDisabled

Returns a new instance of FeatureEnvironmentDisabled.



49
50
51
52
# File 'lib/kameleoon/exceptions.rb', line 49

def initialize(feature_key, environment = nil)
  environment = environment.nil? ? 'default' : "'#{environment}'"
  super("Feature '#{feature_key}' is disabled for #{environment} environment'")
end