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

Defined Under Namespace

Classes: ResponseError

Constant Summary collapse

Unauthorized =

HTTPUnauthorized

Class.new(ResponseError)
RateLimit =

HTTPTooManyRequests

Class.new(ResponseError)

Instance Method Summary collapse

Constructor Details

#initializeError

Returns a new instance of Error.



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

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