Exception: Kameleoon::Exception::FeatureEnvironmentDisabled
- Inherits:
-
FeatureError
- Object
- StandardError
- KameleoonError
- FeatureError
- Kameleoon::Exception::FeatureEnvironmentDisabled
- Defined in:
- lib/kameleoon/exceptions.rb
Overview
Feature Environment Disabled
Instance Method Summary collapse
-
#initialize(feature_key, environment = nil) ⇒ FeatureEnvironmentDisabled
constructor
A new instance of FeatureEnvironmentDisabled.
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 |