Exception: Insika::SubagentCycleError
- Inherits:
-
SubagentError
- Object
- StandardError
- Error
- ValidationError
- SubagentError
- Insika::SubagentCycleError
- Defined in:
- lib/insika/errors.rb
Instance Attribute Summary collapse
-
#cycle ⇒ Object
readonly
Returns the value of attribute cycle.
Instance Method Summary collapse
-
#initialize(message = nil, cycle: []) ⇒ SubagentCycleError
constructor
A new instance of SubagentCycleError.
Constructor Details
#initialize(message = nil, cycle: []) ⇒ SubagentCycleError
Returns a new instance of SubagentCycleError.
144 145 146 147 |
# File 'lib/insika/errors.rb', line 144 def initialize( = nil, cycle: []) @cycle = cycle super( || "subagent cycle detected: #{cycle.join(' -> ')}") end |
Instance Attribute Details
#cycle ⇒ Object (readonly)
Returns the value of attribute cycle.
142 143 144 |
# File 'lib/insika/errors.rb', line 142 def cycle @cycle end |