Structured error returned inside Result<T> on failure.
Every error carries a kind (category), a machine-readable code,
and a human-readable message. Optional cause preserves the
original exception, and metadata holds extra context.
The optional suggestion field provides actionable recovery hints.
Structured error returned inside
Result<T>on failure.Every error carries a
kind(category), a machine-readablecode, and a human-readablemessage. Optionalcausepreserves the original exception, andmetadataholds extra context.The optional
suggestionfield provides actionable recovery hints.