Click or drag to resize
Akka.NETSupervisorStrategy.HandleFailure Method (ActorCell, IActorRef, Exception, ChildRestartStats, IReadOnlyCollection<ChildRestartStats>)
This is the main entry point: in case of a child’s failure, this method must try to handle the failure by resuming, restarting or stopping the child (and returning `true`), or it returns `false` to escalate the failure, which will lead to this actor re-throwing the exception which caused the failure. The exception will not be wrapped. This method calls SupervisorStrategy, which will log the failure unless it is escalated. You can customize the logging by setting SupervisorStrategy to `false` and do the logging inside the `decider` or override the `LogFailure` method.

Namespace:  Akka.Actor
Assembly:  Akka (in Akka.dll) Version: 1.2.3.42 (1.2.3.42)
Syntax
public bool HandleFailure(
	ActorCell actorCell,
	IActorRef child,
	Exception cause,
	ChildRestartStats stats,
	IReadOnlyCollection<ChildRestartStats> children
)

Parameters

actorCell
Type: Akka.Actor.ActorCell
The actor cell.
child
Type: Akka.Actor.IActorRef
The child actor.
cause
Type: System.Exception
The cause.
stats
Type: Akka.Actor.Internal.ChildRestartStats
The stats for the failed child.
children
Type: System.Collections.Generic.IReadOnlyCollection<ChildRestartStats>
TBD

Return Value

Type: Boolean
true if XXXX, false otherwise.
See Also