Exception: KairosMcp::Daemon::DaemonLlmCaller::LlmCallError
- Inherits:
-
StandardError
- Object
- StandardError
- KairosMcp::Daemon::DaemonLlmCaller::LlmCallError
- Defined in:
- lib/kairos_mcp/daemon/daemon_llm_caller.rb
Instance Attribute Summary collapse
-
#attempts ⇒ Object
readonly
Returns the value of attribute attempts.
-
#http_code ⇒ Object
readonly
Returns the value of attribute http_code.
-
#retry_after ⇒ Object
readonly
Returns the value of attribute retry_after.
-
#retryable ⇒ Object
readonly
Returns the value of attribute retryable.
Instance Method Summary collapse
-
#initialize(msg, http_code: nil, retryable: false, retry_after: nil, attempts: 0) ⇒ LlmCallError
constructor
A new instance of LlmCallError.
Constructor Details
#initialize(msg, http_code: nil, retryable: false, retry_after: nil, attempts: 0) ⇒ LlmCallError
Returns a new instance of LlmCallError.
36 37 38 39 40 41 42 |
# File 'lib/kairos_mcp/daemon/daemon_llm_caller.rb', line 36 def initialize(msg, http_code: nil, retryable: false, retry_after: nil, attempts: 0) super(msg) @http_code = http_code @retryable = retryable @retry_after = retry_after @attempts = attempts end |
Instance Attribute Details
#attempts ⇒ Object (readonly)
Returns the value of attribute attempts.
34 35 36 |
# File 'lib/kairos_mcp/daemon/daemon_llm_caller.rb', line 34 def attempts @attempts end |
#http_code ⇒ Object (readonly)
Returns the value of attribute http_code.
34 35 36 |
# File 'lib/kairos_mcp/daemon/daemon_llm_caller.rb', line 34 def http_code @http_code end |
#retry_after ⇒ Object (readonly)
Returns the value of attribute retry_after.
34 35 36 |
# File 'lib/kairos_mcp/daemon/daemon_llm_caller.rb', line 34 def retry_after @retry_after end |
#retryable ⇒ Object (readonly)
Returns the value of attribute retryable.
34 35 36 |
# File 'lib/kairos_mcp/daemon/daemon_llm_caller.rb', line 34 def retryable @retryable end |