Exception: ReveAI::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/reve_ai/errors.rb

Overview

Base error class for all ReveAI errors.

All library exceptions inherit from this class.

Examples:

Catching all ReveAI errors

begin
  client.images.create(prompt: "A cat")
rescue ReveAI::Error => e
  puts "ReveAI error: #{e.message}"
end