Skip to content
scalive
Menu
ConnectingLiveReconnectingOffline
GitHub
e

HandlerFailed

enum HandlerFailed(lifecycle: ConnectedLifecycleContext, commandId: Option[Long], kind: LifecycleTurnKind, durationNanos: Long, error: LifecycleError) extends LifecycleEvent

A LiveView or LiveComponent handler or hook failed during a connected turn.

This covers every application callback a turn runs, including the bootstrap turn, except the LiveView's own mount, which MountFailed reports. Scalive also reports the enclosing turn as TurnFailed, with the same failure, and stops the lifecycle.

Parameters

lifecycle

The lifecycle whose handler failed.

commandId

The ID of the command the handler was processing, or None when Scalive started the turn itself.

kind

The source of the work the handler was processing.

durationNanos

The time from the start of the turn until the handler failed, in nanoseconds.

error

The failure, classified by the stage of the callback, such as Handler or ComponentMessage, with the callback's error as its cause.

Defined by scalive.LifecycleEvent.HandlerFailed. View source (scalive/api/src/scalive/LifecycleObserver.scala:468-473)

Values5

commandId

val commandId: Option[Long]

The ID of the command the handler was processing, or None when Scalive started the turn itself.

Defined by scalive.LifecycleEvent.HandlerFailed.commandId. View source (scalive/api/src/scalive/LifecycleObserver.scala:470-470)

durationNanos

val durationNanos: Long

The time from the start of the turn until the handler failed, in nanoseconds.

Defined by scalive.LifecycleEvent.HandlerFailed.durationNanos. View source (scalive/api/src/scalive/LifecycleObserver.scala:472-472)

error

val error: LifecycleError

The failure, classified by the stage of the callback, such as Handler or ComponentMessage, with the callback's error as its cause.

Defined by scalive.LifecycleEvent.HandlerFailed.error. View source (scalive/api/src/scalive/LifecycleObserver.scala:473-473)

kind

val kind: LifecycleTurnKind

The source of the work the handler was processing.

Defined by scalive.LifecycleEvent.HandlerFailed.kind. View source (scalive/api/src/scalive/LifecycleObserver.scala:471-471)

lifecycle

val lifecycle: ConnectedLifecycleContext

The lifecycle whose handler failed.

Defined by scalive.LifecycleEvent.HandlerFailed.lifecycle. View source (scalive/api/src/scalive/LifecycleObserver.scala:469-469)