Exception: VistarClient::AuthenticationError

Inherits:
Error
  • Object
show all
Defined in:
lib/vistar_client/error.rb

Overview

Raised when API authentication fails (HTTP 401).

This typically indicates invalid or missing API credentials.

Examples:

Handle authentication errors

begin
  client.request_ad(params)
rescue VistarClient::AuthenticationError => e
  puts "Authentication failed: #{e.message}"
  puts "Please check your API key and network ID"
end