Second stab at revised error handling. See #1310

This commit is contained in:
Patrik Nordwall 2012-01-31 14:44:14 +01:00
parent 4c2a44ec7a
commit f13b5356f7
9 changed files with 152 additions and 50 deletions

View file

@ -197,7 +197,7 @@ private[akka] abstract class Mailbox(val actor: ActorCell) extends MessageQueue
if (nextMessage eq null) nextMessage = systemDrain()
}
} catch {
case e
case NonFatal(e)
actor.system.eventStream.publish(Error(e, actor.self.path.toString, this.getClass, "exception during processing system messages, dropping " + SystemMessage.size(nextMessage) + " messages!"))
throw e
}