EntityRemoveException should leverage the previous: $exception
constructor parameters
#6615
Labels
bug
good first issue
Ideal for your first contribution! (some experience with this bundle may be required)
help wanted
Issues and PRs which are looking for volunteers to complete them.
Milestone
Short description of what this feature will allow to do:
It will allow to have a more precise context of the original exception
Currently for
EntityRemoveException
(and certainly other exception in easyadmin bundle) the usage is the followingi.e
This allow to have the original CodeException message but not it's stacktrace , so information are loose
instead, PHP already have a builtin mechanism for that , which is the
previous: Exception $e
parameter in Exception constructors which allow to do the following construction (adminting you don't override the constructorThis allow to
(One short paragraph is enough)
Example of how to use this feature
(Show some PHP code and/or YAML config explaining how to use this feature in a real app)
transform
into
so that you could then do
The text was updated successfully, but these errors were encountered: