Skip to content

Errors

ErrorImport pathWhen it appears
EngineErrormlform/runtimeBase class for engine failures.
RegistryErrormlform/runtimeDuplicate registration or missing registry contract.
ValidationErrormlform/runtimesubmit() was blocked by validation. Includes result.
SubmitErrormlform/runtimeTransport or response processing failed. Includes cause.
SubmissionAbortedErrormlform/runtimePending submit was aborted.
try {
await mounted.form.submit();
} catch (error) {
if (error instanceof ValidationError) {
console.log(error.result.fields);
}
}

Related: Error Handling.