I have an exception that has been generated in a certain context of my application.I would like to be able to collect it, send it to the logger and recover the previous state.
The problem is that this error-bound exception cannot be accessed since its current exception property is protected.
What would be the solution?