Exception: Mailkube::Error

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

Overview

Base class for every error this gem raises.

Rescue this to catch anything the SDK can raise, or a subclass to branch on the category. Ruby's idiom is an exception hierarchy rather than Go's sentinel values, so this mirrors the python, node and PHP SDKs one-for-one; the categories, and the status that selects each, are identical across all of them.