onSubmissionError(error) {
        error = this.normalizeError(error);

        this.submitting = false;
        this.setPristine(false);
        this.emit('submitError', error || this.errors);

        // Allow for silent cancellations (no error message, no submit button error state)
        if (error && error.silent) {
            this.emit('change', { isValid: true }, { silent: true });
            return false;
        }

        const errors = this.showErrors(error, true);

        if (this.root && this.root.alert) {
            this.scrollIntoView(this.root.alert);
        }

        return errors;
    }
Called when an error occurs during the submission.
@param {object} error - The error that occured.
@returns {Array} errors - All errors.