Hello !
The goal is to have all exception that occurs and send it to an external service, like sentry.
I managed to catch them for:
- exceptions when user is not connected
- exceptions during mount, liveview handle_event, live_component handle_event and handle_params
But I can’t catch when:
- exceptions during render
I could move all my heex into a render function, and manual catch for each render, but it would be very unpleasant.
I had hard time finding anything about good practice about it with liveview, I feel like I’m missing something obvious. My current approach is not good since it is very easy to forget something.
Anyone had the same trouble and found a graceful way of managing this ?
Have a nice day !