Exception: RubyLlmMesh::ProviderError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, provider: nil, status: nil, body: nil) ⇒ ProviderError

Returns a new instance of ProviderError.



11
12
13
14
15
16
# File 'lib/ruby_llm_mesh/errors.rb', line 11

def initialize(message, provider: nil, status: nil, body: nil)
  @provider = provider
  @status = status
  @body = body
  super(message)
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



9
10
11
# File 'lib/ruby_llm_mesh/errors.rb', line 9

def body
  @body
end

#providerObject (readonly)

Returns the value of attribute provider.



9
10
11
# File 'lib/ruby_llm_mesh/errors.rb', line 9

def provider
  @provider
end

#statusObject (readonly)

Returns the value of attribute status.



9
10
11
# File 'lib/ruby_llm_mesh/errors.rb', line 9

def status
  @status
end