Exception: OpenFeature::GoFeatureFlag::UnauthorizedError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/openfeature/go-feature-flag/error/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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)
  error_message = "unauthorized"
  @response = response
  @error_code = SDK::Provider::ErrorCode::GENERAL
  @error_message = error_message
  super(error_message)
end

Instance Attribute Details

#error_codeObject (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_messageObject (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
  @error_message
end

#responseObject (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