Exception: HubClustersCreator::Errors::ConfigurationError
- Inherits:
-
StandardError
- Object
- StandardError
- HubClustersCreator::Errors::ConfigurationError
- Defined in:
- lib/hub-clusters-creator/errors.rb
Overview
ConfigurationError defines an error related to configuration
Instance Attribute Summary collapse
-
#field ⇒ Object
Returns the value of attribute field.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(msg = 'invalid configuration', field:, value:) ⇒ ConfigurationError
constructor
A new instance of ConfigurationError.
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
#field ⇒ Object
Returns the value of attribute field.
31 32 33 |
# File 'lib/hub-clusters-creator/errors.rb', line 31 def field @field end |
#value ⇒ Object
Returns the value of attribute value.
31 32 33 |
# File 'lib/hub-clusters-creator/errors.rb', line 31 def value @value end |