Exception: Omnes::Subscriber::Adapter::Method::PrivateMethodSubscriptionAttemptError

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

Overview

Raised when trying to subscribe to a private method

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(method_name:) ⇒ PrivateMethodSubscriptionAttemptError

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 PrivateMethodSubscriptionAttemptError.



34
35
36
37
# File 'lib/omnes/subscriber/adapter/method/errors.rb', line 34

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.



31
32
33
# File 'lib/omnes/subscriber/adapter/method/errors.rb', line 31

def method_name
  @method_name
end