Skip to content

Error Handling

MLForm separates validation errors from submit errors.

ErrorCause
ValidationErrorSubmit attempted while the form is invalid.
SubmitErrorTransport failed or backend returned an error.
SubmissionAbortedErrorSubmit was aborted by unmount, reset, or explicit abort.
RegistryErrorUnknown field/report kind or duplicate registration.

The default transport uses backend { "message": "..." } payloads when available.

{
"message": "Model is temporarily unavailable."
}

Report payload failures are report-local: a single report can enter an error state without making the whole submit fail. Use this when multiple reports are resolved from one backend response.