SupervisorStrategy..::..HandleFailure Method

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 [[Akka.Actor.SupervisorStrategy#LogFailure]], which will log the failure unless it is escalated. You can customize the logging by setting [[Akka.Actor.SupervisorStrategy#LoggingEnabled]] to `false` and do the logging inside the `decider` or override the `LogFailure` method.

Namespace:  Akka.Actor
Assembly:  Akka (in Akka.dll)

Syntax


public bool HandleFailure(
	ActorCell actorCell,
	ActorRef child,
	Exception cause
)
Public Function HandleFailure ( _
	actorCell As ActorCell, _
	child As ActorRef, _
	cause As Exception _
) As Boolean
public:
bool^ HandleFailure(
	ActorCell^ actorCell, 
	ActorRef^ child, 
	Exception^ cause
)

Parameters

actorCell
Type: Akka.Actor..::..ActorCell
The actor cell.
child
Type: Akka.Actor..::..ActorRef
The child.
cause
Type: Exception
The cause.

Return Value

true if XXXX, false otherwise.