Feature #104321
closedProvide method to handle argument mapping exceptions in ActionController
100%
Description
Extbase extension authors usually work with actions and arguments. When an action has a required argument and the argument is not provided, a RequiredArgumentMissingException
is thrown. Extension authors however only have limited possibilities (e.g. overwrite internal processRequest() function
) to catch those exceptions. The same applies to extbase property mapping, when the PersistentObjectConverter
throws a TargetNotFoundException
exception, when a given entitiy is not found.
Extbase extension authors should have the possiblity to handle those exceptions either manually or by configuration, so the exception is not thrown but a dedicated response can be generated. To do so, a new function should be available in ActionController, which extension authors can overwrite if required.