Exception: Hooksmith::MultipleProcessorsError

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

Overview

Raised when multiple processors can handle the same event.

Instance Method Summary collapse

Constructor Details

#initialize(provider, event, payload) ⇒ MultipleProcessorsError

Initializes the error with details about the provider, event, and payload.

Parameters:

  • provider (Symbol)

    the provider name.

  • event (Symbol)

    the event name.

  • payload (Hash)

    the webhook payload.



71
72
73
# File 'lib/hooksmith/dispatcher.rb', line 71

def initialize(provider, event, payload)
  super("Multiple processors found for #{provider} event #{event}. Payload: #{payload}")
end