Exception: Statecraft::ChainDepthExceeded

Inherits:
Error
  • Object
show all
Defined in:
lib/statecraft/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(chain:) ⇒ ChainDepthExceeded

Returns a new instance of ChainDepthExceeded.



105
106
107
108
# File 'lib/statecraft/errors.rb', line 105

def initialize(chain:)
  @chain = chain
  super("transition chain exceeded depth #{chain.length}: #{chain.join(" -> ")}")
end

Instance Attribute Details

#chainObject (readonly)

Returns the value of attribute chain.



103
104
105
# File 'lib/statecraft/errors.rb', line 103

def chain
  @chain
end