Exception event should set the event throwable if the model throws an exception

Created on 30 January 2025, about 1 month ago

Problem/Motivation

ECA listens to exceptions and dispatches the EcaExceptionEvent event so that models can do something in that scenario. However, if such a model throws an exception itself, that's currently just exiting with that exception and Drupal's exception handling is taken out of the loop.

Proposed resolution

Instead, the ECA exception listener needs to add the exception as the throwable to the original event and return back to the kernel which will handle the rest.

🐛 Bug report
Status

Active

Version

2.1

Component

Code

Created by

🇩🇪Germany jurgenhaas Gottmadingen

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024