SupervisorStrategy..::..DefaultDecider Method

When supervisorStrategy is not specified for an actor this [[Decider]] is used by default in the supervisor strategy. The child will be stopped when [[Akka.Actor.ActorInitializationException]], [[Akka.Actor.ActorKilledException]], or [[Akka.Actor.DeathPactException]] is thrown. It will be restarted for other `Exception` types. The error is escalated if it's a `Exception`, i.e. `Error`.

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

Syntax


public static Directive DefaultDecider(
	Exception exception
)
Public Shared Function DefaultDecider ( _
	exception As Exception _
) As Directive
public:
static Directive^ DefaultDecider(
	Exception^ exception
)

Parameters

exception
Type: Exception
The exception.

Return Value

Directive.