Exception: Insika::SubagentDepthExceeded
- Inherits:
-
SubagentError
- Object
- StandardError
- Error
- ValidationError
- SubagentError
- Insika::SubagentDepthExceeded
- Defined in:
- lib/insika/errors.rb
Instance Attribute Summary collapse
-
#cap ⇒ Object
readonly
Returns the value of attribute cap.
-
#depth ⇒ Object
readonly
Returns the value of attribute depth.
Instance Method Summary collapse
-
#initialize(message = nil, depth: nil, cap: nil) ⇒ SubagentDepthExceeded
constructor
A new instance of SubagentDepthExceeded.
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( = nil, depth: nil, cap: nil) @depth = depth @cap = cap super( || "subagent depth #{depth} exceeds cap #{cap}") end |
Instance Attribute Details
#cap ⇒ Object (readonly)
Returns the value of attribute cap.
151 152 153 |
# File 'lib/insika/errors.rb', line 151 def cap @cap end |
#depth ⇒ Object (readonly)
Returns the value of attribute depth.
151 152 153 |
# File 'lib/insika/errors.rb', line 151 def depth @depth end |