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.
88 89 90 91 |
# File 'lib/insika/errors.rb', line 88 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.
86 87 88 |
# File 'lib/insika/errors.rb', line 86 def cycle @cycle end |