title: Akka : How to get actor causing exception on supervisor
body: <p>How can i get which child actor had exception on supervisor.
  Basically i want to process other things like logging failure to DB, etc..
  before stopping the failing actor. But for this i had to know exactly which actor
  had the exception.</p>
  
  <p>My supervisorStrategy code block like </p>
  
  <pre><code>/* stop task actor on unhandled exception */
  private static SupervisorStrategy strategy = new OneForOneStrategy(
          1,
          Duration.create(1, TimeUnit.MINUTES),
          new Function&lt;Throwable, SupervisorStrategy.Directive&gt;() {
              @Override
              public SupervisorStrategy.Directive apply(Throwable t) throws Exception {
                  return SupervisorStrategy.stop();
              }
          }
  );
  
  @Override
  public SupervisorStrategy supervisorStrategy() {
      return strategy;
  }
  </code></pre>