Exception: BetterTranslate::ProviderNotFoundError

Inherits:
Error
  • Object
show all
Defined in:
lib/better_translate/errors.rb

Overview

Raised when a provider is not found

Examples:

Provider not found

raise ProviderNotFoundError.new(
  "Provider 'unknown' not found",
  context: { provider: :unknown, available: [:chatgpt, :gemini, :anthropic] }
)

Instance Attribute Summary

Attributes inherited from Error

#context

Method Summary

Methods inherited from Error

#initialize

Constructor Details

This class inherits a constructor from BetterTranslate::Error