HandlerFailed
enum HandlerFailed(lifecycle: ConnectedLifecycleContext, commandId: Option[Long], kind: LifecycleTurnKind, durationNanos: Long, error: LifecycleError) extends LifecycleEventA 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
lifecycleThe lifecycle whose handler failed.
commandIdThe ID of the command the handler was processing, or
Nonewhen Scalive started the turn itself.kindThe source of the work the handler was processing.
durationNanosThe time from the start of the turn until the handler failed, in nanoseconds.
errorThe 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: LongThe 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: LifecycleErrorThe 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: LifecycleTurnKindThe 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: ConnectedLifecycleContextThe lifecycle whose handler failed.
Defined by scalive.LifecycleEvent.HandlerFailed.lifecycle. View source (scalive/api/src/scalive/LifecycleObserver.scala:469-469)