Class: Concurrent::Actor::UnknownMessage

Inherits:
Error
  • Object
show all
Includes:
TypeCheck
Defined in:
lib/concurrent/actor/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from TypeCheck

#Child!, #Child?, #Match!, #Match?, #Type!, #Type?

Constructor Details

#initialize(envelope) ⇒ UnknownMessage

Returns a new instance of UnknownMessage.



21
22
23
24
# File 'lib/concurrent/actor/errors.rb', line 21

def initialize(envelope)
  @envelope = Type! envelope, Envelope
  super envelope.message.inspect
end

Instance Attribute Details

#envelopeObject (readonly)



19
20
21
# File 'lib/concurrent/actor/errors.rb', line 19

def envelope
  @envelope
end