The error message.
The error options, including the issues.
Optional ReadonlycauseOptional ReadonlycodeReadonlyissuesThe normalised validation issues.
Optional ReadonlymetadataA plain, serialisable representation (suitable as a problem+json errors payload).
The issues keyed by dotted path.
Converts the error to a formatted string representation.
Optionalmultiline: boolean
Determine if output value must be multiline or not.
A formatted error string.
StaticcreateCreate a RuntimeError.
Optionaloptions: ErrorOptions
The options to create a RuntimeError.
A new RuntimeError instance.
Thrown when a value fails validation.
It carries the normalised ValidationIssues so any layer can render them (an HTTP error handler into
422+ problem+json, a CLI into a table, a form into field errors). The error itself stays platform-agnostic — it knows nothing about HTTP.