Given an Akka.net-based actor system with some basic structure like:
/user
/coordinator
/child (x1000, with RoundRobinPool router)
Coordinator actor defines supervision strategy with Directive.Restart
used.
Child actors could fail for several reasons (for example, with ArithmeticException
, InvalidOperationException
and MyCustomException
).
But when a child fails with MyCustomException
, I'd like to have an ability to somehow additionally handle it without changing the default supervision mechanism (restart approach should still work here).
For example, to add Console.Writeline
with exception details.
How do I implement it?