Exception: OpenFeature::GoFeatureFlag::InternalServerError
- Inherits:
-
StandardError
- Object
- StandardError
- OpenFeature::GoFeatureFlag::InternalServerError
- 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) ⇒ InternalServerError
constructor
A new instance of InternalServerError.
Constructor Details
#initialize(response) ⇒ InternalServerError
Returns a new instance of InternalServerError.
21 22 23 24 25 26 27 |
# File 'lib/openfeature/go-feature-flag/error/errors.rb', line 21 def initialize(response) = "Internal Server Error" @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.
19 20 21 |
# File 'lib/openfeature/go-feature-flag/error/errors.rb', line 19 def error_code @error_code end |
#error_message ⇒ Object (readonly)
Returns the value of attribute error_message.
19 20 21 |
# File 'lib/openfeature/go-feature-flag/error/errors.rb', line 19 def @error_message end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
19 20 21 |
# File 'lib/openfeature/go-feature-flag/error/errors.rb', line 19 def response @response end |