Skip to content

Conversation

abadb
Copy link

@abadb abadb commented Nov 29, 2024

The InMemorySymfonyQueryBus.php implementation should catch HandlerFailedExceptions to get the throwed exception from the query handler.

This way, ApiExceptionListener can correctly map the status code for the exception.

Without this fix, all exceptions throwed by the query bus, while the ApiExceptionListener is on, would read as an HandlerFailedException, regardless of the exception mappings defined in the controller.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant