Supervise

final class Supervise[T]
class Object
trait Matchable
class Any

Value members

Concrete methods

def onFailure[Thr <: Throwable](clazz: Class[Thr], strategy: SupervisorStrategy): Behavior[T]

Specify the SupervisorStrategy to be invoked when the wrapped behavior throws.

Specify the SupervisorStrategy to be invoked when the wrapped behavior throws.

Only exceptions of the given type (and their subclasses) will be handled by this supervision behavior.

Source:
Behaviors.scala

Specify the SupervisorStrategy to be invoked when the wrapped behavior throws.

Specify the SupervisorStrategy to be invoked when the wrapped behavior throws.

All non-fatal (see scala.util.control.NonFatal) exceptions types will be handled using the given strategy.

Source:
Behaviors.scala