Exception: ReductoAI::AuthenticationError

Inherits:
Error
  • Object
show all
Defined in:
lib/reducto_ai/errors.rb

Overview

Raised on 401 Unauthorized responses.

Indicates invalid or missing API key.

Examples:

# Raised when API key is invalid
client = ReductoAI::Client.new(api_key: "invalid-key")
client.parse.sync(input: "https://example.com/doc.pdf")
# => ReductoAI::AuthenticationError: Unauthorized (401): check API key

Instance Attribute Summary

Attributes inherited from Error

#body, #status

Method Summary

Methods inherited from Error

#initialize

Constructor Details

This class inherits a constructor from ReductoAI::Error