Backend

io.worxbend.tui.runtime.RunnerError.Backend
final case class Backend(error: BackendError, queuedTasks: Option[QueuedTaskFailures] = ...)

The backend failed, which ends the loop. queuedTasks carries whatever queued-body failures the loop had already absorbed, so they are still reported when a terminal failure happens to follow them.

Attributes

Members list

Value members

Inherited methods

def cleanupFailures: Vector[Throwable]

Secondary teardown failures, in release order. The error case and its primary failure are unchanged. Populated by the owning runner before returning; read only after run finishes.

Secondary teardown failures, in release order. The error case and its primary failure are unchanged. Populated by the owning runner before returning; read only after run finishes.

Identity-bound: the record lives on the instance the runner returned, not in the case's value. Equality, hashCode, toString and pattern matching see only the case's own fields, so two errors that differ only here compare equal, and a value rebuilt from an extracted payload — RunnerError.Backend(error, tasks) — starts with none. The durable record is the suppressed chain on the primary throwable, where every failure is attached as well; message reports how many there were.

Attributes

Inherited from:
RunnerError
def message: String

One human-readable line describing the failure, for an app that reports it to the user before exiting.

One human-readable line describing the failure, for an app that reports it to the user before exiting.

The generated toString of an enum case is a constructor call — Backend(Io(java.io.IOException: ...),None) — which is a fine debugging string and a poor thing to print at someone. This is the sentence to print instead; RunnerError.Backend delegates to BackendError.message for its half. When teardown failed as well, the line ends with how many cleanupFailures there were — (+2 cleanup failures) — so the one line an app prints admits that onStop or the terminal restore went wrong too, rather than leaving that to a field nobody reads.

Attributes

Inherited from:
RunnerError
def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product