class

Crig::RerankError

Inherits Crig::ProviderResponseHelpers < Exception < Reference < Object

Constructors

from_http_response(status : Int32, body : String) : self
Source
from_provider_body(body : String) : self
Source
http_error(error : Exception) : self
Source
json_error(error : Exception) : self
Source
new(message : String, kind : Kind = Kind::ResponseError, source_error : Exception | Nil = nil, provider_response : ProviderResponseError | Nil = nil)
Source
provider_error(message : String) : self
Source
response_error(message : String) : self
Source
url_error(error : Exception) : self
Source

Instance methods

kind
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
source_error
Source

Nested types