Exception: Omnes::Subscriber::Adapter::Method::UnknownMethodSubscriptionAttemptError

Inherits:
Error
  • Object
show all
Defined in:
lib/omnes/subscriber/adapter/method/errors.rb

Overview

Raised when trying to subscribe to a missing method

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(method_name:) ⇒ UnknownMethodSubscriptionAttemptError

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of UnknownMethodSubscriptionAttemptError.



14
15
16
17
# File 'lib/omnes/subscriber/adapter/method/errors.rb', line 14

def initialize(method_name:)
  @method_name = method_name
  super(default_message)
end

Instance Attribute Details

#method_nameObject (readonly)

Returns the value of attribute method_name.



11
12
13
# File 'lib/omnes/subscriber/adapter/method/errors.rb', line 11

def method_name
  @method_name
end