Exception: HubClustersCreator::Errors::ConfigurationError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/hub-clusters-creator/errors.rb

Overview

ConfigurationError defines an error related to configuration

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg = 'invalid configuration', field:, value:) ⇒ ConfigurationError

Returns a new instance of ConfigurationError.



33
34
35
36
37
# File 'lib/hub-clusters-creator/errors.rb', line 33

def initialize(msg = 'invalid configuration', field:, value:)
  @field = field
  @value = value
  super(msg)
end

Instance Attribute Details

#fieldObject

Returns the value of attribute field.



31
32
33
# File 'lib/hub-clusters-creator/errors.rb', line 31

def field
  @field
end

#valueObject

Returns the value of attribute value.



31
32
33
# File 'lib/hub-clusters-creator/errors.rb', line 31

def value
  @value
end