Exception: OpenFeature::OFREP::InternalServerError
- Inherits:
-
StandardError
- Object
- StandardError
- OpenFeature::OFREP::InternalServerError
- 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) ⇒ InternalServerError
constructor
A new instance of InternalServerError.
Constructor Details
#initialize(response) ⇒ InternalServerError
Returns a new instance of InternalServerError.
22 23 24 25 26 27 28 |
# File 'lib/openfeature/ofrep/provider/errors.rb', line 22 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.
20 21 22 |
# File 'lib/openfeature/ofrep/provider/errors.rb', line 20 def error_code @error_code end |
#error_message ⇒ Object (readonly)
Returns the value of attribute error_message.
20 21 22 |
# File 'lib/openfeature/ofrep/provider/errors.rb', line 20 def @error_message end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
20 21 22 |
# File 'lib/openfeature/ofrep/provider/errors.rb', line 20 def response @response end |