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.



83
84
85
86
# File 'lib/statecraft/errors.rb', line 83

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

Instance Attribute Details

#chain ⇒ Object (readonly)

Returns the value of attribute chain.



81
82
83
# File 'lib/statecraft/errors.rb', line 81

def chain
  @chain
end