Exception: OpenFeature::GoFeatureFlag::UnauthorizedError
- Inherits:
-
StandardError
- Object
- StandardError
- OpenFeature::GoFeatureFlag::UnauthorizedError
- 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) ⇒ UnauthorizedError
constructor
A new instance of UnauthorizedError.
Constructor Details
#initialize(response) ⇒ UnauthorizedError
Returns a new instance of UnauthorizedError.
43 44 45 46 47 48 49 |
# File 'lib/openfeature/go-feature-flag/error/errors.rb', line 43 def initialize(response) = "unauthorized" @response = response @error_code = SDK::Provider::ErrorCode::GENERAL @error_message = super() end |
Instance Attribute Details
#error_code ⇒ Object (readonly)
Returns the value of attribute error_code.
41 42 43 |
# File 'lib/openfeature/go-feature-flag/error/errors.rb', line 41 def error_code @error_code end |
#error_message ⇒ Object (readonly)
Returns the value of attribute error_message.
41 42 43 |
# File 'lib/openfeature/go-feature-flag/error/errors.rb', line 41 def @error_message end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
41 42 43 |
# File 'lib/openfeature/go-feature-flag/error/errors.rb', line 41 def response @response end |