Exception: Namabar::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/namabar.rb

Overview

Base error class for all Namabar-related errors

All errors raised by the Namabar gem inherit from this class, making it easy to rescue all gem-related errors with a single rescue clause.

Examples:

Rescuing all Namabar errors

begin
  client.send_message(...)
rescue Namabar::Error => e
  puts "Namabar error: #{e.message}"
end