Exception: CPEE::LLM::LLMError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/cpee/llm/rubyllm_requests.rb

Overview

own llm error class

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = "Something went wrong", http_response = 500) ⇒ LLMError

Returns a new instance of LLMError.



28
29
30
31
# File 'lib/cpee/llm/rubyllm_requests.rb', line 28

def initialize(message = "Something went wrong", http_response = 500)
  @http_response = http_response
  super(message)
end

Instance Attribute Details

#http_responseObject (readonly)

{{{



27
28
29
# File 'lib/cpee/llm/rubyllm_requests.rb', line 27

def http_response
  @http_response
end