Exception: ReveAI::InsufficientCreditsError

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

Overview

Raised on 402 Payment Required responses.

Indicates the account has run out of credits.

Examples:

# Account has insufficient credits
client.images.create(prompt: "A cat")
# => ReveAI::InsufficientCreditsError: Your budget has run out

Instance Attribute Summary

Attributes inherited from APIError

#body, #headers, #status

Method Summary

Methods inherited from APIError

#error_code, #initialize, #request_id

Constructor Details

This class inherits a constructor from ReveAI::APIError