Class: Concurrent::Actor::Behaviour::ErrorsOnUnknownMessage

Inherits:
Abstract
  • Object
show all
Defined in:
lib/concurrent-ruby-edge/concurrent/actor/behaviour/errors_on_unknown_message.rb

Overview

Simply fails when message arrives here. It's usually the last behaviour.

Instance Method Summary collapse

Constructor Details

This class inherits a constructor from Concurrent::Actor::Behaviour::Abstract

Instance Method Details

#on_envelope(envelope) ⇒ undocumented

Raises:



8
9
10
# File 'lib/concurrent-ruby-edge/concurrent/actor/behaviour/errors_on_unknown_message.rb', line 8

def on_envelope(envelope)
  raise UnknownMessage, envelope
end