Why in symfony in ExceptionListenet gets only the original exception?

Standard situation: somewhere exception1 is thrown, then caught, and instead throws exception2, exception1 goes to previous. Then exception2 is caught and instead exception3 is thrown and exception2 is also rooted in the previous.

I declare ExceptionListenet and expect to receive the most recent thrown exception, in this case exception3, and through previous to unleash the entire chain. But instead I only get exception1. And all the data that was stored in exception2 and exception3 lost.

Why is this happening? And is it possible somehow to reconfigure to get the listener last abandoned acceptn?
June 3rd 19 at 19:14
1 answer
June 3rd 19 at 19:16
Security component put your own ExceptionListener, which is looking among the entire hierarchy of exceptions that apply to a component (in your case CustomUserMessageAuthenticationException is a subclass of AuthenticationException) and processes them in svoym.

Can try to play with the priority of your listener, but it is likely that will break the logic component
I think the most reasonable solution in this situation would be simply to abandon the use of accessnow sekyuriti-component in favor of any other. - Cassandre_Boy commented on June 3rd 19 at 19:19

Find more questions by tags ExceptionsSymfony