Class: Rubino::LLM::ClassifiedError
- Inherits:
-
Data
- Object
- Data
- Rubino::LLM::ClassifiedError
- Defined in:
- lib/rubino/llm/error_classifier.rb
Overview
Structured classification of an API error with recovery hints, mirroring the reference ClassifiedError. The retry loop checks the ‘retryable` hint instead of re-classifying the error itself.
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
-
#retryable ⇒ Object
readonly
Returns the value of attribute retryable.
-
#status_code ⇒ Object
readonly
Returns the value of attribute status_code.
Instance Method Summary collapse
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message
33 34 35 |
# File 'lib/rubino/llm/error_classifier.rb', line 33 def @message end |
#reason ⇒ Object (readonly)
Returns the value of attribute reason
33 34 35 |
# File 'lib/rubino/llm/error_classifier.rb', line 33 def reason @reason end |
#retryable ⇒ Object (readonly)
Returns the value of attribute retryable
33 34 35 |
# File 'lib/rubino/llm/error_classifier.rb', line 33 def retryable @retryable end |
#status_code ⇒ Object (readonly)
Returns the value of attribute status_code
33 34 35 |
# File 'lib/rubino/llm/error_classifier.rb', line 33 def status_code @status_code end |
Instance Method Details
#auth? ⇒ Boolean
34 35 36 |
# File 'lib/rubino/llm/error_classifier.rb', line 34 def auth? reason == FailoverReason::AUTH end |