Exception: Nombaone::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/nombaone/errors.rb,
sig/nombaone/errors.rbs

Overview

Base class for everything this SDK raises — API failures, connection problems, webhook verification failures, and client misconfiguration. Rescue Nombaone::Error to catch anything the SDK can throw.

Examples:

begin
  nombaone.subscriptions.create(customer_id: cus, price_id: prc)
rescue Nombaone::Error => e
  warn e.message
end