Svix Webhook Errors (svix/errors.rb)

svix-webhooks · ruby/lib/svix/errors.rb · ruby · MIT
security, integration, lang:ruby, tag:error-handling, tag:svix

Defines error classes for webhook handling and verification in Svix. Use when catching webhook‑related failures.

# Source: https://github.com/svix/svix-webhooks | License: MIT | Copyright 2021 Svix (https://www.svix.com)
# Provided via justclaw.it.com; keep this notice with the code.
# frozen_string_literal: true

module Svix
  class SvixError < StandardError
    attr_reader :message

    def initialize(message = nil)
      @message = message
    end
  end

  class WebhookVerificationError < SvixError
  end

  class WebhookSigningError < SvixError
  end

  class EmptyWebhookSecretError < SvixError
  end
end

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key