Exception: OpenFeature::GoFeatureFlag::InvalidOptionError

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(error_code, error_message) ⇒ InvalidOptionError

Returns a new instance of InvalidOptionError.



33
34
35
36
37
# File 'lib/openfeature/go-feature-flag/error/errors.rb', line 33

def initialize(error_code, error_message)
  @error_code = error_code
  @error_message = error_message
  super(error_message)
end

Instance Attribute Details

#error_codeObject (readonly)

Returns the value of attribute error_code.



31
32
33
# File 'lib/openfeature/go-feature-flag/error/errors.rb', line 31

def error_code
  @error_code
end

#error_messageObject (readonly)

Returns the value of attribute error_message.



31
32
33
# File 'lib/openfeature/go-feature-flag/error/errors.rb', line 31

def error_message
  @error_message
end