Skuld.Coroutine.Error (skuld v0.28.0)

View Source

Canonical error representation for fiber failures.

Normalizes all error paths — Elixir exceptions (raise/rescue), Elixir throws and exits, Skuld Throw.throw, cancellation, and BEAM task crashes — into a single struct. Replaces the ad-hoc tuple conventions that previously required multi-clause unwrapping.

Summary

Types

t()

@type t() :: %Skuld.Coroutine.Error{
  error: term(),
  stacktrace: list() | nil,
  type: type()
}

type()

@type type() :: :exception | :throw | :exit | :cancelled