Exception: Toggly::FeatureNotFoundError
- Defined in:
- lib/toggly/errors.rb
Overview
Raised when a feature is not found
Instance Attribute Summary collapse
-
#feature_key ⇒ Object
readonly
Returns the value of attribute feature_key.
Instance Method Summary collapse
-
#initialize(feature_key) ⇒ FeatureNotFoundError
constructor
A new instance of FeatureNotFoundError.
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_key ⇒ Object (readonly)
Returns the value of attribute feature_key.
49 50 51 |
# File 'lib/toggly/errors.rb', line 49 def feature_key @feature_key end |