<p dir="auto">The thrown TransformationFailedException is swallowed by the form component<br>
it is happening in the code block bellow</p>
<p dir="auto">excerpt from Form.php starting at line 631</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="          $modelData = $this-&gt;normToModel($normData);
            $viewData = $this-&gt;normToView($normData);
        }
    } catch (TransformationFailedException $e) {
        // the exception is caught here and is not throw again 
        $this-&gt;synchronized = false;

        // If $viewData was not yet set, set it to $submittedData so that
        // the erroneous data is accessible on the form.
        // Forms that inherit data never set any data, because the getters
        // forward to the parent form's getters anyway.
        if (null === $viewData &amp;&amp; !$this-&gt;config-&gt;getInheritData()) {
            $viewData = $submittedData;
        }
    }"><pre class="notranslate"><code class="notranslate">          $modelData = $this-&gt;normToModel($normData);
            $viewData = $this-&gt;normToView($normData);
        }
    } catch (TransformationFailedException $e) {
        // the exception is caught here and is not throw again 
        $this-&gt;synchronized = false;

        // If $viewData was not yet set, set it to $submittedData so that
        // the erroneous data is accessible on the form.
        // Forms that inherit data never set any data, because the getters
        // forward to the parent form's getters anyway.
        if (null === $viewData &amp;&amp; !$this-&gt;config-&gt;getInheritData()) {
            $viewData = $submittedData;
        }
    }
</code></pre></div>
<p dir="auto">Hey!</p>
<p dir="auto">I dig into an issue with the form component.</p>
<p dir="auto">First, the use case:</p>
<p dir="auto">A customer would like to have a date form field splitted in a single text field for the date  part and two dropdown fields for the hour and minute. For invalid input, it would like to get different error messages according to what was wrong. The different cases are:</p>
<ul dir="auto">
<li>The date is invalid (in case of wrong date input)</li>
<li>The hour is invalid (in case of wrong hour input)</li>
<li>The minute is invalid (in case of wrong minute input)</li>
</ul>
<p dir="auto">The problem:</p>
<p dir="auto">The issue is this kind of error is detected by the data transformer which can only result to one error message (invalid_message).</p>
<p dir="auto">An idea how the form component can provide this kind of error messages?</p>