Exception: DebugAgent::RetriableError
- Inherits:
-
StandardError
- Object
- StandardError
- DebugAgent::RetriableError
- Defined in:
- lib/debug_agent/llm_client.rb
Instance Attribute Summary collapse
-
#status_code ⇒ Object
readonly
Returns the value of attribute status_code.
Instance Method Summary collapse
-
#initialize(status_code, message) ⇒ RetriableError
constructor
A new instance of RetriableError.
- #retriable? ⇒ Boolean
Constructor Details
#initialize(status_code, message) ⇒ RetriableError
Returns a new instance of RetriableError.
212 213 214 215 |
# File 'lib/debug_agent/llm_client.rb', line 212 def initialize(status_code, ) super() @status_code = status_code end |
Instance Attribute Details
#status_code ⇒ Object (readonly)
Returns the value of attribute status_code.
210 211 212 |
# File 'lib/debug_agent/llm_client.rb', line 210 def status_code @status_code end |
Instance Method Details
#retriable? ⇒ Boolean
217 218 219 |
# File 'lib/debug_agent/llm_client.rb', line 217 def retriable? [429, 500, 502, 503, 504].include?(@status_code) end |