Forcola.Stream.Error exception (forcola v0.1.0)

Copy Markdown View Source

Raised when a streamed run does not end with a clean zero exit.

Fields:

  • :status - exit code, {:signal, n} for death by signal, or {:signal, :unconfirmed} when the shim never confirmed death
  • :timed_out - whether the run hit :timeout_ms
  • :stderr - stderr captured before termination (empty when merge_stderr: true routed it into the line stream)
  • :reason - spawn failure reason, nil for a run that started

Summary

Types

t()

@type t() :: %Forcola.Stream.Error{
  __exception__: true,
  reason: String.t() | atom() | nil,
  status: non_neg_integer() | {:signal, atom() | non_neg_integer()} | nil,
  stderr: binary(),
  timed_out: boolean()
}