Skip to content

Commit 53e68cb

Browse files
committed
[TASK] Descripe argument mapping exception-handling of ActionController
Closes TYPO3-Documentation/Changelog-To-Doc#1038 Releases: main, 13.4
1 parent 6c03522 commit 53e68cb

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

Documentation/TopLevelObjects/Plugin.rst

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,34 @@ plugins.
225225
Same as :ref:`setup-plugin-mvc-callDefaultActionIfActionCantBeResolved`
226226
but this will raise a "page not found" error.
227227

228+
.. confval:: mvc.showPageNotFoundIfTargetNotFoundException
229+
:name: plugin-mvc-showPageNotFoundIfTargetNotFoundException
230+
:type: :ref:`data-type-boolean`
231+
:Default: `false`
232+
233+
**Only for Extbase plugins**. By default, when calling an extbase controller action
234+
that is not registered for an Extbase plugin, a fatal exception is thrown
235+
(usually an internal error message is shown).
236+
237+
When this configuration option is set to `1` (true), instead the default
238+
"Page not Found" page will be shown instead (with a 404 HTTP header by default).
239+
240+
.. confval:: mvc.showPageNotFoundIfRequiredArgumentIsMissingException
241+
:name: plugin-mvc-showPageNotFoundIfRequiredArgumentIsMissingException
242+
:type: :ref:`data-type-boolean`
243+
:Default: `false`
244+
245+
**Only for Extbase plugins**. By default, when calling an extbase controller action
246+
with unsupported arguments a fatal exception is thrown (usually an internal error
247+
message is shown).
248+
249+
When this configuration option is set to `1` (true), instead the default
250+
"Page not Found" page will be shown instead (with a 404 HTTP header by default).
251+
252+
Note that extension authors can also implement the Controller method
253+
:php:`ActionController->handleArgumentMappingExceptions()` to individually operate
254+
on invalid arguments.
255+
228256
.. confval:: format
229257
:name: plugin-format
230258
:type: :ref:`data-type-string`

0 commit comments

Comments
 (0)