Exception: OllamaChat::Utils::Fetcher::RetryWithoutStreaming

Inherits:
StandardError
  • Object
show all
Defined in:
lib/ollama_chat/utils/fetcher.rb

Overview

A custom error class raised when retrying HTTP requests without streaming.

This exception is specifically used in the Fetcher class to indicate that an HTTP request should be retried using a non-streaming approach when a streaming attempt fails or is not supported.

Examples:

Handling the RetryWithoutStreaming error

begin
  fetcher.get('https://example.com')
rescue RetryWithoutStreaming
  # Handle retry with non-streaming method
end