class RubyLLM::Error
Custom error class that wraps API errors from different providers into a consistent format with helpful error messages.
Attributes
Public Class Methods
# File lib/ruby_llm/error.rb, line 9 def initialize(response = nil, message = nil) if response.is_a?(String) message = response response = nil end @response = response super(message || response&.body) end
Calls superclass method