Exception: LLM::ResponseError

Inherits:
Error
  • Object
show all
Defined in:
lib/llm/error.rb

Overview

The superclass of all HTTP protocol errors

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Error

#initialize

Constructor Details

This class inherits a constructor from LLM::Error

Instance Attribute Details

#responseNet::HTTPResponse

Returns the response associated with an error

Returns:

  • (Net::HTTPResponse)

    Returns the response associated with an error



19
20
21
# File 'lib/llm/error.rb', line 19

def response
  @response
end

Instance Method Details

#messageObject



21
22
23
# File 'lib/llm/error.rb', line 21

def message
  [super, response.body].join("\n")
end