title: How to catch the exceptions thrown inside an actor?
body: <p>In my actor, the methods may throw exception:</p>
  
  <pre><code>class ServerActor extends Actor {
    override def receive: Receive = {
      case "Start" =&gt;
        println("### actor started")
        throw new Exception("My exception when starting")
      case msg =&gt;
        println("### actor get other message: " + msg)
        throw new Exception("another exception for other messages: " + msg)
    }
  }
  </code></pre>
  
  <p>Is there any way to handle all the exception in a single place? I want to handle them together, e.g. logging them</p>