Exception: LLM::Error::ResponseError

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

Overview

The superclass of all HTTP protocol errors

Constant Summary

Constants inherited from LLM::Error

FormatError, PromptError, RateLimit, Unauthorized

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from LLM::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



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

def response
  @response
end

Instance Method Details

#messageObject



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

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