Publish UnhandledMessage to EventStream

This commit is contained in:
Viktor Klang 2011-12-20 10:38:37 +01:00
parent e82ea3c8b0
commit 2adb042bf7
2 changed files with 8 additions and 3 deletions

View file

@ -47,8 +47,8 @@ Please note that the Akka Actor ``receive`` message loop is exhaustive, which is
different compared to Erlang and Scala Actors. This means that you need to
provide a pattern match for all messages that it can accept and if you want to
be able to handle unknown messages then you need to have a default case as in
the example above. Otherwise an ``UnhandledMessageException`` will be
thrown and the actor is restarted when an unknown message is received.
the example above. Otherwise an ``akka.actor.UnhandledMessage(message, actor)`` will be
published to the ``ActorSystem``'s ``EventStream``.
Creating Actors with default constructor
----------------------------------------