Exception: Insika::SubagentDepthExceeded

Inherits:
SubagentError show all
Defined in:
lib/insika/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, depth: nil, cap: nil) ⇒ SubagentDepthExceeded

Returns a new instance of SubagentDepthExceeded.



97
98
99
100
101
# File 'lib/insika/errors.rb', line 97

def initialize(message = nil, depth: nil, cap: nil)
  @depth = depth
  @cap = cap
  super(message || "subagent depth #{depth} exceeds cap #{cap}")
end

Instance Attribute Details

#capObject (readonly)

Returns the value of attribute cap.



95
96
97
# File 'lib/insika/errors.rb', line 95

def cap
  @cap
end

#depthObject (readonly)

Returns the value of attribute depth.



95
96
97
# File 'lib/insika/errors.rb', line 95

def depth
  @depth
end