By default, the Akka system looks for a few exception types from failure messages received from child Actors. Let's take a look at those scenarios.
The default supervision strategy will stop the failing child Actor in case of:
- ActorInitializationException
- ActorKilledException
- DeathPactException
Note that in case of exception, it'll restart the failing Actor.
With this information, let's try implementing one strategy on our own.