Class: Cline::Log::Error
- Defined in:
- lib/cline/log.rb
Overview
Top-level error wrapper (the err field in error logs)
Instance Attribute Summary
Attributes inherited from Schema
Public API collapse
-
#aggregate_errors ⇒ Array<ApiError>?
Aggregate errors from retry attempts.
-
#errors ⇒ Array<ApiError>?
Individual errors in a retry chain.
-
#last_error ⇒ ApiError?
Last error in a retry chain.
-
#message ⇒ String?
Human-readable error message.
-
#name ⇒ String?
Error class name (e.g. "AI_RetryError").
-
#reason ⇒ String?
Reason for the error (e.g. "maxRetriesExceeded").
-
#stack ⇒ String?
Error stack trace.
-
#type ⇒ String?
Error type identifier.
Methods inherited from Schema
#==, as_hash, cast, cline_snake_attributes, of_hash, #to_cline_json, #to_hash
Instance Method Details
#aggregate_errors ⇒ Array<ApiError>?
Returns Aggregate errors from retry attempts.
69 |
# File 'lib/cline/log.rb', line 69 attribute :aggregate_errors, Utils::Schema.collection(ApiError) |
#errors ⇒ Array<ApiError>?
Returns Individual errors in a retry chain.
66 |
# File 'lib/cline/log.rb', line 66 attribute :errors, Utils::Schema.collection(ApiError) |
#last_error ⇒ ApiError?
Returns Last error in a retry chain.
72 |
# File 'lib/cline/log.rb', line 72 attribute :last_error, ApiError |
#message ⇒ String?
Returns Human-readable error message.
54 |
# File 'lib/cline/log.rb', line 54 attribute :message, :string |
#name ⇒ String?
Returns Error class name (e.g. "AI_RetryError").
60 |
# File 'lib/cline/log.rb', line 60 attribute :name, :string |
#reason ⇒ String?
Returns Reason for the error (e.g. "maxRetriesExceeded").
63 |
# File 'lib/cline/log.rb', line 63 attribute :reason, :string |
#stack ⇒ String?
Returns Error stack trace.
57 |
# File 'lib/cline/log.rb', line 57 attribute :stack, :string |
#type ⇒ String?
Returns Error type identifier.
51 |
# File 'lib/cline/log.rb', line 51 attribute :type, :string |