Exception: Ibex::Configuration::Conflict

Inherits:
Error
  • Object
show all
Defined in:
lib/ibex/configuration.rb,
sig/ibex/configuration.rbs

Overview

A fixed/minimum request that contradicts the declared contract.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key, declared, requested) ⇒ Conflict

Returns a new instance of Conflict.

RBS:

  • (Key key, Value declared, Value requested) -> void

Parameters:



269
270
271
272
273
274
275
276
277
278
# File 'lib/ibex/configuration.rb', line 269

def initialize(key, declared, requested)
  @key = key
  @declared = declared
  @requested = requested
  super(
    "configuration conflict for #{key.name}: " \
    "#{declared.origin.label} selected #{declared.value.inspect}, " \
    "#{requested.origin.label} requested #{requested.value.inspect}"
  )
end

Instance Attribute Details

#declaredValue (readonly)

Signature:

  • Value

Returns:



265
266
267
# File 'lib/ibex/configuration.rb', line 265

def declared
  @declared
end

#keyKey (readonly)

Signature:

  • Key

Returns:



264
265
266
# File 'lib/ibex/configuration.rb', line 264

def key
  @key
end

#requestedValue (readonly)

Signature:

  • Value

Returns:



266
267
268
# File 'lib/ibex/configuration.rb', line 266

def requested
  @requested
end