Exception: OpenFeature::OFREP::FlagNotFoundError
- Inherits:
-
StandardError
- Object
- StandardError
- OpenFeature::OFREP::FlagNotFoundError
- Defined in:
- lib/openfeature/ofrep/provider/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.
10 11 12 13 14 15 16 |
# File 'lib/openfeature/ofrep/provider/errors.rb', line 10 def initialize(response, flag_key) = "Flag not found: #{flag_key}" @response = response @error_code = SDK::Provider::ErrorCode::FLAG_NOT_FOUND @error_message = super() end |
Instance Attribute Details
#error_code ⇒ Object (readonly)
Returns the value of attribute error_code.
8 9 10 |
# File 'lib/openfeature/ofrep/provider/errors.rb', line 8 def error_code @error_code end |
#error_message ⇒ Object (readonly)
Returns the value of attribute error_message.
8 9 10 |
# File 'lib/openfeature/ofrep/provider/errors.rb', line 8 def @error_message end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
8 9 10 |
# File 'lib/openfeature/ofrep/provider/errors.rb', line 8 def response @response end |