class

Crig::Embeddings::EmbeddingError

Inherits Crig::ProviderResponseHelpers < Exception < Reference < Object

Constructors

document_error(error : Exception) : self
Source
from_http_response(status : Int32, body : String) : self
Source
from_provider_body(body : String) : self
Source
http_error(error : Exception) : self
Source
invalid_parameter_value(provider : String, parameter : String, requirement : String) : self
Source
json_error(error : Exception) : self
Source
missing_usage(provider : String) : self
Source
new(kind : Kind = Kind::Other, message : String | Nil = nil, source_error : Exception | Nil = nil, detail : String | Nil = nil, provider_response : ProviderResponseError | Nil = nil, provider : String | Nil = nil, parameter : String | Nil = nil, requirement : String | Nil = nil, encoding_format : String | Nil = nil)
Source
new(message : String)
Source
provider_error(detail : String) : self
Source
response_error(detail : String) : self
Source
unsupported_parameter(provider : String, parameter : String) : self
Source
unsupported_response_encoding(provider : String, encoding_format : String) : self
Source
url_error(error : Exception) : self
Source

Instance methods

detail
Source
encoding_format
Source
kind
Source
parameter
Source
provider
Source
provider_response
Source
provider_response_body

Returns the raw provider response body when available via ProviderResponse or HttpError.

Source
provider_response_status

Returns the HTTP status code when preserved.

Source
requirement
Source
source_error
Source

Nested types