Exception: Configurator::OptionLoopError
- Inherits:
-
SystemStackError
- Object
- SystemStackError
- Configurator::OptionLoopError
- Defined in:
- lib/configurator/errors.rb
Instance Attribute Summary collapse
-
#stack ⇒ Object
Returns the value of attribute stack.
Instance Method Summary collapse
-
#initialize(*args) ⇒ OptionLoopError
constructor
A new instance of OptionLoopError.
- #to_s ⇒ Object
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
#stack ⇒ Object
Returns the value of attribute stack.
44 45 46 |
# File 'lib/configurator/errors.rb', line 44 def stack @stack end |
Instance Method Details
#to_s ⇒ Object
51 52 53 |
# File 'lib/configurator/errors.rb', line 51 def to_s "Loop detected in #{stack.first}. Request Stack: #{stack.join(' -> ')}" end |