Exception: ESM::Exception::ChannelNotFound

Inherits:
Error
  • Object
show all
Defined in:
lib/esm/exception.rb

Overview

Raised when ESM can't find a channel passed into it's deliver method.

Instance Method Summary collapse

Constructor Details

#initialize(message, channel) ⇒ ChannelNotFound

Returns a new instance of ChannelNotFound.



58
59
60
61
62
63
# File 'lib/esm/exception.rb', line 58

def initialize(message, channel)
  error_message = "Failed to send message!\nMessage: #{message}\nAttempted to send to channel: "
  error_message += channel.to_s if channel.present?

  super(error_message)
end