Open
Description
Right now when using the factory
option together with expected_exception
, all caught exceptions are transformed into form errors that are mapped to the form holding the factory
option.
A simple approach to better map errors to the real cause could be the following: When an exception is caught, check each child form for the expected_exception
option. If one and only one child form declares to handle the caught exception too, map the error to this very form. In all other cases, the behaviour must not change.