Exception: VistarClient::Error

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

Overview

Base error class for all VistarClient gem errors.

All custom errors in this gem inherit from this class, allowing you to rescue all gem-specific errors with a single rescue clause.

Examples:

Rescue all VistarClient errors

begin
  client.request_ad(params)
rescue VistarClient::Error => e
  puts "VistarClient error: #{e.message}"
end

Direct Known Subclasses

APIError, AuthenticationError, ConnectionError