Class: Cline::Log::ApiError
- Defined in:
- lib/cline/log.rb
Overview
Individual API call error (used in errors, aggregateErrors, and lastError)
Instance Attribute Summary
Attributes inherited from Schema
Public API collapse
-
#cause ⇒ ErrorCause?
Underlying cause of the error.
-
#is_retryable ⇒ Boolean?
Whether the request is retryable.
-
#message ⇒ String?
Human-readable error message.
-
#name ⇒ String?
Error class name (e.g. "AI_APICallError").
-
#stack ⇒ String?
Error stack trace.
-
#type ⇒ String?
Error type identifier.
-
#url ⇒ String?
API endpoint URL.
Methods inherited from Schema
#==, as_hash, cast, cline_snake_attributes, of_hash, #to_cline_json, #to_hash
Instance Method Details
#cause ⇒ ErrorCause?
Returns Underlying cause of the error.
43 |
# File 'lib/cline/log.rb', line 43 attribute :cause, ErrorCause |
#is_retryable ⇒ Boolean?
Returns Whether the request is retryable.
40 |
# File 'lib/cline/log.rb', line 40 attribute :is_retryable, :boolean |
#message ⇒ String?
Returns Human-readable error message.
28 |
# File 'lib/cline/log.rb', line 28 attribute :message, :string |
#name ⇒ String?
Returns Error class name (e.g. "AI_APICallError").
34 |
# File 'lib/cline/log.rb', line 34 attribute :name, :string |
#stack ⇒ String?
Returns Error stack trace.
31 |
# File 'lib/cline/log.rb', line 31 attribute :stack, :string |
#type ⇒ String?
Returns Error type identifier.
25 |
# File 'lib/cline/log.rb', line 25 attribute :type, :string |
#url ⇒ String?
Returns API endpoint URL.
37 |
# File 'lib/cline/log.rb', line 37 attribute :url, :string |