Exception: RactorShack::ShareableGuaranteed::NonShareableSentToRactorError

Inherits:
NonShareableError
  • Object
show all
Defined in:
lib/ractor_shack/shareable_guaranteed.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ractor_or_port, sent_message) ⇒ NonShareableSentToRactorError

Returns a new instance of NonShareableSentToRactorError.



49
50
51
52
# File 'lib/ractor_shack/shareable_guaranteed.rb', line 49

def initialize(ractor_or_port, sent_message)
  self.sent_message = sent_message
  super("Unshareable object sent to #{ractor_or_port}: #{sent_message.class}: #{sent_message}")
end

Instance Attribute Details

#sent_messageObject

Returns the value of attribute sent_message.



47
48
49
# File 'lib/ractor_shack/shareable_guaranteed.rb', line 47

def sent_message
  @sent_message
end