Exception: OpenFeature::OFREP::ParseError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/openfeature/ofrep/provider/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ ParseError

Returns a new instance of ParseError.



56
57
58
59
60
61
62
# File 'lib/openfeature/ofrep/provider/errors.rb', line 56

def initialize(response)
  error_message = "Parse error"
  @response = response
  @error_code = SDK::Provider::ErrorCode::PARSE_ERROR
  @error_message = error_message
  super(error_message)
end

Instance Attribute Details

#error_codeObject (readonly)

Returns the value of attribute error_code.



54
55
56
# File 'lib/openfeature/ofrep/provider/errors.rb', line 54

def error_code
  @error_code
end

#error_messageObject (readonly)

Returns the value of attribute error_message.



54
55
56
# File 'lib/openfeature/ofrep/provider/errors.rb', line 54

def error_message
  @error_message
end

#responseObject (readonly)

Returns the value of attribute response.



54
55
56
# File 'lib/openfeature/ofrep/provider/errors.rb', line 54

def response
  @response
end