yes, it should be piped to self, and thrown there so that the parent can handle the exception. Sorry if I was unclear.
On Mon, May 16, 2016 at 5:58 PM, Yan Pei <[email protected]> wrote: > Patrik, > I think I made it work by piped Status to itself(the child actor) and > 'throw' the matched contained exception. > > Thanks, > Yan > > On Friday, May 13, 2016 at 1:41:00 PM UTC-5, Patrik Nordwall wrote: >> >> When the child actor receives the piped Status.Failure you should *throw* >> the contained exception. Then the parent supervisor will handle it. >> /Patrik >> fre 13 maj 2016 kl. 16:53 skrev Yan Pei <[email protected]>: >> >>> Endre, >>> The following is suggested by Patrik the other day in other post: >>> >>> "The API should return a Future that you can pipe back the result to >>> the actor. When you receive the piped result message you can throw if it's >>> a akka.actor.Status.Failure, and the supervisor will handle that exception." >>> >>> Thanks, >>> Yan >>> >>> On Friday, May 13, 2016 at 3:10:41 AM UTC-5, Akka Team wrote: >>> >>>> You cannot invoke the supervisor strategy directly like above, it will >>>> just return a directive but not do anything else. The strategy is invoked >>>> by the actor cell if a child actor fails and then the returned directive is >>>> used to determine how to proceed. >>>> >>>> -Endre >>>> >>> On Thu, May 12, 2016 at 5:30 PM, Yan Pei <[email protected]> wrote: >>>> >>> Good morning, >>>>> >>>>> The child actor gets a Future for a API call, then the Future being >>>>> piped back to it's parent actor. >>>>> >>>>> After match(Failure.class) is true, the Parent actor call >>>>> this.supervisorStragety().decider().apply(throwable); >>>>> >>>>> >>>>> My question is if the parent's supervisorStragety knows which child >>>>> actor to act on for this exception? >>>>> >>>>> Thanks, >>>>> Yan >>>>> >>>> -- >>>>> >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>> >>>>>>>>>> Check the FAQ: >>>>> http://doc.akka.io/docs/akka/current/additional/faq.html >>>>> >>>>>>>>>> Search the archives: >>>>> https://groups.google.com/group/akka-user >>>>> --- >>>>> You received this message because you are subscribed to the Google >>>>> Groups "Akka User List" group. >>>>> >>>> To unsubscribe from this group and stop receiving emails from it, send >>>>> an email to [email protected]. >>>>> To post to this group, send email to [email protected]. >>>> >>>> >>>>> Visit this group at https://groups.google.com/group/akka-user. >>>>> For more options, visit https://groups.google.com/d/optout. >>>>> >>>> >>>> >>>> >>>> -- >>>> Akka Team >>>> Typesafe - Reactive apps on the JVM >>>> Blog: letitcrash.com >>>> Twitter: @akkateam >>>> >>> -- >>> >>>>>>>>>> Read the docs: http://akka.io/docs/ >>> >>>>>>>>>> Check the FAQ: >>> http://doc.akka.io/docs/akka/current/additional/faq.html >>> >>>>>>>>>> Search the archives: >>> https://groups.google.com/group/akka-user >>> --- >>> You received this message because you are subscribed to the Google >>> Groups "Akka User List" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> To post to this group, send email to [email protected]. >>> Visit this group at https://groups.google.com/group/akka-user. >>> For more options, visit https://groups.google.com/d/optout. >>> >> -- > >>>>>>>>>> Read the docs: http://akka.io/docs/ > >>>>>>>>>> Check the FAQ: > http://doc.akka.io/docs/akka/current/additional/faq.html > >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user > --- > You received this message because you are subscribed to the Google Groups > "Akka User List" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/akka-user. > For more options, visit https://groups.google.com/d/optout. > -- Patrik Nordwall Akka Tech Lead Lightbend <http://www.lightbend.com/> - Reactive apps on the JVM Twitter: @patriknw -- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ: >>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user --- You received this message because you are subscribed to the Google Groups "Akka User List" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.
