Exception: LLM::Error

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

Overview

The superclass of all LLM errors

Direct Known Subclasses

ResponseError

Instance Method Summary collapse

Constructor Details

#initializeError

Returns a new instance of Error.

[View source]

7
8
9
10
# File 'lib/llm/error.rb', line 7

def initialize(...)
  block_given? ? yield(self) : nil
  super
end