Exception: Configurator::OptionLoopError

Inherits:
SystemStackError
  • Object
show all
Defined in:
lib/configurator/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ OptionLoopError

Returns a new instance of OptionLoopError.



46
47
48
49
# File 'lib/configurator/errors.rb', line 46

def initialize(*args)
  @stack = []
  super
end

Instance Attribute Details

#stackObject

Returns the value of attribute stack.



44
45
46
# File 'lib/configurator/errors.rb', line 44

def stack
  @stack
end

Instance Method Details

#to_sObject



51
52
53
# File 'lib/configurator/errors.rb', line 51

def to_s
  "Loop detected in #{stack.first}. Request Stack: #{stack.join(' -> ')}"
end