Exception: Toggly::FeatureNotFoundError

Inherits:
Error
  • Object
show all
Defined in:
lib/toggly/errors.rb

Overview

Raised when a feature is not found

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(feature_key) ⇒ FeatureNotFoundError

Returns a new instance of FeatureNotFoundError.



51
52
53
54
# File 'lib/toggly/errors.rb', line 51

def initialize(feature_key)
  @feature_key = feature_key
  super("Feature not found: #{feature_key}")
end

Instance Attribute Details

#feature_keyObject (readonly)

Returns the value of attribute feature_key.



49
50
51
# File 'lib/toggly/errors.rb', line 49

def feature_key
  @feature_key
end