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.



153
154
155
156
157
# File 'lib/insika/errors.rb', line 153

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.



151
152
153
# File 'lib/insika/errors.rb', line 151

def cap
  @cap
end

#depthObject (readonly)

Returns the value of attribute depth.



151
152
153
# File 'lib/insika/errors.rb', line 151

def depth
  @depth
end