Exception: Statecraft::ChainDepthExceeded
- Defined in:
- lib/statecraft/errors.rb
Instance Attribute Summary collapse
-
#chain ⇒ Object
readonly
Returns the value of attribute chain.
Instance Method Summary collapse
-
#initialize(chain:) ⇒ ChainDepthExceeded
constructor
A new instance of ChainDepthExceeded.
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
#chain ⇒ Object (readonly)
Returns the value of attribute chain.
103 104 105 |
# File 'lib/statecraft/errors.rb', line 103 def chain @chain end |