Exception: Unleash::OpenFeature::Provider::VariantResolutionError
- Inherits:
-
StandardError
- Object
- StandardError
- Unleash::OpenFeature::Provider::VariantResolutionError
- Defined in:
- lib/unleash/open_feature/provider/unleash_flag_provider.rb
Instance Attribute Summary collapse
-
#error_code ⇒ Object
readonly
Returns the value of attribute error_code.
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
-
#variant_name ⇒ Object
readonly
Returns the value of attribute variant_name.
Instance Method Summary collapse
-
#initialize(message, variant_name:, reason: ::OpenFeature::SDK::Provider::Reason::ERROR, error_code: nil) ⇒ VariantResolutionError
constructor
A new instance of VariantResolutionError.
Constructor Details
#initialize(message, variant_name:, reason: ::OpenFeature::SDK::Provider::Reason::ERROR, error_code: nil) ⇒ VariantResolutionError
Returns a new instance of VariantResolutionError.
193 194 195 196 197 198 |
# File 'lib/unleash/open_feature/provider/unleash_flag_provider.rb', line 193 def initialize(, variant_name:, reason: ::OpenFeature::SDK::Provider::Reason::ERROR, error_code: nil) super() @variant_name = variant_name @reason = reason @error_code = error_code end |
Instance Attribute Details
#error_code ⇒ Object (readonly)
Returns the value of attribute error_code.
191 192 193 |
# File 'lib/unleash/open_feature/provider/unleash_flag_provider.rb', line 191 def error_code @error_code end |
#reason ⇒ Object (readonly)
Returns the value of attribute reason.
191 192 193 |
# File 'lib/unleash/open_feature/provider/unleash_flag_provider.rb', line 191 def reason @reason end |
#variant_name ⇒ Object (readonly)
Returns the value of attribute variant_name.
191 192 193 |
# File 'lib/unleash/open_feature/provider/unleash_flag_provider.rb', line 191 def variant_name @variant_name end |