ExBurn.Error exception (ex_burn v0.1.0)

Copy Markdown View Source

Structured error type for ExBurn operations.

Fields

  • :op — the operation that failed (e.g., :add, :matmul, :conv)
  • :reason — a human-readable error message
  • :details — optional map with additional context (shapes, types, etc.)

Examples

raise ExBurn.Error, op: :matmul, reason: "shape mismatch",
  details:: %{lhs: [3, 4], rhs: [5, 6]}

Summary

Types

t()

@type t() :: %ExBurn.Error{
  __exception__: true,
  details: map() | nil,
  op: atom(),
  reason: String.t()
}