Exception: BetterTranslate::ProviderError

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

Overview

Raised when a provider encounters an error

Examples:

Provider initialization error

raise ProviderError.new(
  "Provider not initialized",
  context: { provider: :chatgpt }
)

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