Class: Cline::Log::ApiError

Inherits:
Schema
  • Object
show all
Defined in:
lib/cline/log.rb

Overview

Individual API call error (used in errors, aggregateErrors, and lastError)

Instance Attribute Summary

Attributes inherited from Schema

#extra_attributes

Public API collapse

Methods inherited from Schema

#==, as_hash, cast, cline_snake_attributes, of_hash, #to_cline_json, #to_hash

Instance Method Details

#causeErrorCause?

Returns Underlying cause of the error.

Returns:

  • (ErrorCause, nil)

    Underlying cause of the error



43
# File 'lib/cline/log.rb', line 43

attribute :cause, ErrorCause

#is_retryableBoolean?

Returns Whether the request is retryable.

Returns:

  • (Boolean, nil)

    Whether the request is retryable



40
# File 'lib/cline/log.rb', line 40

attribute :is_retryable, :boolean

#messageString?

Returns Human-readable error message.

Returns:

  • (String, nil)

    Human-readable error message



28
# File 'lib/cline/log.rb', line 28

attribute :message, :string

#nameString?

Returns Error class name (e.g. "AI_APICallError").

Returns:

  • (String, nil)

    Error class name (e.g. "AI_APICallError")



34
# File 'lib/cline/log.rb', line 34

attribute :name, :string

#stackString?

Returns Error stack trace.

Returns:

  • (String, nil)

    Error stack trace



31
# File 'lib/cline/log.rb', line 31

attribute :stack, :string

#typeString?

Returns Error type identifier.

Returns:

  • (String, nil)

    Error type identifier



25
# File 'lib/cline/log.rb', line 25

attribute :type, :string

#urlString?

Returns API endpoint URL.

Returns:

  • (String, nil)

    API endpoint URL



37
# File 'lib/cline/log.rb', line 37

attribute :url, :string