Exception: OpenFeature::GoFeatureFlag::FlagNotFoundError
- Inherits:
-
StandardError
- Object
- StandardError
- OpenFeature::GoFeatureFlag::FlagNotFoundError
- Defined in:
- lib/openfeature/go-feature-flag/error/errors.rb
Instance Attribute Summary collapse
-
#error_code ⇒ Object
readonly
Returns the value of attribute error_code.
-
#error_message ⇒ Object
readonly
Returns the value of attribute error_message.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(response, flag_key) ⇒ FlagNotFoundError
constructor
A new instance of FlagNotFoundError.
Constructor Details
#initialize(response, flag_key) ⇒ FlagNotFoundError
Returns a new instance of FlagNotFoundError.
9 10 11 12 13 14 15 |
# File 'lib/openfeature/go-feature-flag/error/errors.rb', line 9 def initialize(response, flag_key) = "Flag not found: #{flag_key}" @response = response @error_code = SDK::Provider::ErrorCode::FLAG_NOT_FOUND = super() end |
Instance Attribute Details
#error_code ⇒ Object (readonly)
Returns the value of attribute error_code.
7 8 9 |
# File 'lib/openfeature/go-feature-flag/error/errors.rb', line 7 def error_code @error_code end |
#error_message ⇒ Object (readonly)
Returns the value of attribute error_message.
7 8 9 |
# File 'lib/openfeature/go-feature-flag/error/errors.rb', line 7 def end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
7 8 9 |
# File 'lib/openfeature/go-feature-flag/error/errors.rb', line 7 def response @response end |