Exception: Toggly::EvaluationError

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

Overview

Raised when feature evaluation fails

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, feature_key: nil) ⇒ EvaluationError

Returns a new instance of EvaluationError.



28
29
30
31
# File 'lib/toggly/errors.rb', line 28

def initialize(message, feature_key: nil)
  super(message)
  @feature_key = feature_key
end

Instance Attribute Details

#feature_keyObject (readonly)

Returns the value of attribute feature_key.



26
27
28
# File 'lib/toggly/errors.rb', line 26

def feature_key
  @feature_key
end