Exception: RailsAiBridge::Registry::ContextProviderError
- Defined in:
- lib/rails_ai_bridge/registry/context_provider_error.rb
Overview
Stable base class for outbound context-provider failures. Subclasses expose a safe category and message; they never carry raw SDK, Faraday, response-body, or credential details.
Direct Known Subclasses
AuthenticationError, ConnectionError, PolicyError, ProtocolError, RemoteToolError, ResponseTooLargeError, TimeoutError
Instance Attribute Summary collapse
-
#category ⇒ Symbol
readonly
Stable error category for callers and logs.
-
#provider_name ⇒ String?
Provider name associated with this error.
Instance Method Summary collapse
Constructor Details
#initialize(message, category: :unknown, provider_name: nil) ⇒ ContextProviderError
19 20 21 22 23 |
# File 'lib/rails_ai_bridge/registry/context_provider_error.rb', line 19 def initialize(, category: :unknown, provider_name: nil) super() @category = category @provider_name = provider_name end |
Instance Attribute Details
#category ⇒ Symbol (readonly)
Returns stable error category for callers and logs.
10 11 12 |
# File 'lib/rails_ai_bridge/registry/context_provider_error.rb', line 10 def category @category end |
#provider_name ⇒ String?
Returns provider name associated with this error.
13 14 15 |
# File 'lib/rails_ai_bridge/registry/context_provider_error.rb', line 13 def provider_name @provider_name end |