Exception: RubyLlmMesh::AllProvidersFailedError
- Defined in:
- lib/ruby_llm_mesh/errors.rb
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
Instance Method Summary collapse
-
#initialize(errors) ⇒ AllProvidersFailedError
constructor
A new instance of AllProvidersFailedError.
Constructor Details
#initialize(errors) ⇒ AllProvidersFailedError
Returns a new instance of AllProvidersFailedError.
27 28 29 30 31 |
# File 'lib/ruby_llm_mesh/errors.rb', line 27 def initialize(errors) @errors = errors summary = errors.map { |provider, err| "#{provider}: #{err.}" }.join("; ") super("All providers failed — #{summary}") end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
25 26 27 |
# File 'lib/ruby_llm_mesh/errors.rb', line 25 def errors @errors end |